Re: [PATCH v2] x86: disable non-instrumented version of copy_mc when KMSAN is enabled

From: Tetsuo Handa
Date: Tue Mar 05 2024 - 06:33:14 EST


Ping?

This is current top crasher.
I hope this patch is applied before the merge window opens.

On 2024/03/02 7:52, Tetsuo Handa wrote:
> dump_emit_page() caused a false-positive KMSAN warning, for
> memcpy_from_iter_mc() is called via iterate_bvec() by setting "struct
> iov_iter"->copy_mc to true.
>
> Fallback to memcpy()/copy_user_generic() when KMSAN is enabled.
>
> Reported-by: syzbot <syzbot+d7521c1e3841ed075a42@xxxxxxxxxxxxxxxxxxxxxxxxx>
> Closes: https://syzkaller.appspot.com/bug?extid=d7521c1e3841ed075a42
> Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
> Tested-by: syzbot <syzbot+d7521c1e3841ed075a42@xxxxxxxxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Alexander Potapenko <glider@xxxxxxxxxx>
> ---
> Changes in v2:
> Update description.
>
> arch/x86/lib/copy_mc.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)