hulk inclusion category: feature bugzilla: https://atomgit.com/openeuler/kernel/issues/8787 ------------------------------------------ After a critical RAS event is triggered, user data for this task becomes inaccessible. During __access_remote_vm, task data will be accessed. Terminate this to prevent wider system impact. Signed-off-by: Wupeng Ma <mawupeng1@huawei.com> --- mm/memory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/memory.c b/mm/memory.c index 70f979d82ed5..794233ef55eb 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -6658,6 +6658,11 @@ int __access_remote_vm(struct mm_struct *mm, unsigned long addr, void *buf, break; } else { int ret = 0; + + if (mm_is_critical_error(mm)) { + mmap_read_unlock(mm); + return 0; + } bytes = len; offset = addr & (PAGE_SIZE-1); if (bytes > PAGE_SIZE-offset) -- 2.43.0