aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorShuai Xue <[email protected]>2022-09-14 14:49:35 +0800
committerAndrew Morton <[email protected]>2022-09-26 12:14:34 -0700
commit77677cdbc2aa4b5d5d839562793d3d126201d18d (patch)
treeaa8a70e7ea30366a2e207000f3923e01515e7cbd /lib/mpi/mpi-sub-ui.c
parent317314527d173e1f139ceaf8cb87cb1746abf240 (diff)
mm,hwpoison: check mm when killing accessing process
The GHES code calls memory_failure_queue() from IRQ context to queue work into workqueue and schedule it on the current CPU. Then the work is processed in memory_failure_work_func() by kworker and calls memory_failure(). When a page is already poisoned, commit a3f5d80ea401 ("mm,hwpoison: send SIGBUS with error virutal address") make memory_failure() call kill_accessing_process() that: - holds mmap locking of current->mm - does pagetable walk to find the error virtual address - and sends SIGBUS to the current process with error info. However, the mm of kworker is not valid, resulting in a null-pointer dereference. So check mm when killing the accessing process. [[email protected]: remove unrelated whitespace alteration] Link: https://lkml.kernel.org/r/[email protected] Fixes: a3f5d80ea401 ("mm,hwpoison: send SIGBUS with error virutal address") Signed-off-by: Shuai Xue <[email protected]> Reviewed-by: Miaohe Lin <[email protected]> Acked-by: Naoya Horiguchi <[email protected]> Cc: Huang Ying <[email protected]> Cc: Baolin Wang <[email protected]> Cc: Bixuan Cui <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions