Re: [PATCH] HWPOISON: add a pr_err message when forcibly send a sigbus

From: Helge Deller
Date: Sat Aug 19 2023 - 07:52:46 EST


On 8/19/23 12:22, Shuai Xue wrote:
When a process tries to access a page that is already offline, the
kernel will send a sigbus signal with the BUS_MCEERR_AR code. This
signal is typically handled by a registered sigbus handler in the
process. However, if the process does not have a registered sigbus
handler, it is important for end users to be informed about what
happened.

To address this, add an error message similar to those implemented on
the x86, powerpc, and parisc platforms.

Signed-off-by: Shuai Xue <xueshuai@xxxxxxxxxxxxxxxxx>
---
arch/arm64/mm/fault.c | 2 ++
arch/parisc/mm/fault.c | 5 ++---
arch/x86/mm/fault.c | 3 +--
3 files changed, 5 insertions(+), 5 deletions(-)

Acked-by: Helge Deller <deller@xxxxxx> # parisc