Re: BUG: KASAN: vmalloc-out-of-bounds in copy_to_kernel_nofault+0xd8/0x1c8 (v6.13-rc6, PowerMac G4)

2025-02-01 Thread Christophe Leroy
Le 01/02/2025 à 15:14, Erhard Furtner a écrit : On Wed, 22 Jan 2025 19:23:00 +0100 Christophe Leroy wrote: I was able to reproduce it with v6.13 with QEMU when loading test_bpf module. On my side, the problem doesn't disappear when reverting of commit 32913f348229 ("futex: fix user access

[PATCH] powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC

2025-02-01 Thread Christophe Leroy
Erhard reported the following KASAN hit while booting his PowerMac G4 with a KASAN-enabled kernel 6.13-rc6: BUG: KASAN: vmalloc-out-of-bounds in copy_to_kernel_nofault+0xd8/0x1c8 Write of size 8 at addr f100 by task chronyd/1293 CPU: 0 UID: 123 PID: 1293 Comm: chronyd Tainted: GW