Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

From: Peter Zijlstra
Date: Thu Mar 11 2021 - 11:58:24 EST


On Thu, Mar 11, 2021 at 04:52:10PM +0000, Luck, Tony wrote:
> > I think we need to at least fix the existing bug before we add more
> > signals. AFAICS the MCE_IN_KERNEL_COPYIN code is busted for kernel
> > threads.
>
> Can a kernel thread do get_user() or copy_from_user()? Do we have kernel threads
> that have an associated user address space to copy from?

kthread_use_mm()