Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.517732] ==================================================================
[   32.517880] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   32.517880] 
[   32.518053] Out-of-bounds write at 0x00000000128ca38b (1B left of kfence-#129):
[   32.518186]  test_out_of_bounds_write+0x100/0x240
[   32.518295]  kunit_try_run_case+0x170/0x3f0
[   32.520374]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.520547]  kthread+0x328/0x630
[   32.520628]  ret_from_fork+0x10/0x20
[   32.520683] 
[   32.520718] kfence-#129: 0x00000000a56eb345-0x00000000e95609df, size=32, cache=test
[   32.520718] 
[   32.520932] allocated by task 293 on cpu 0 at 32.516551s (0.004362s ago):
[   32.521135]  test_alloc+0x230/0x628
[   32.521404]  test_out_of_bounds_write+0xc8/0x240
[   32.521688]  kunit_try_run_case+0x170/0x3f0
[   32.521899]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.522431]  kthread+0x328/0x630
[   32.522538]  ret_from_fork+0x10/0x20
[   32.523025] 
[   32.523146] CPU: 0 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   32.523585] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.523921] Hardware name: linux,dummy-virt (DT)
[   32.523967] ==================================================================
[   31.864583] ==================================================================
[   31.865650] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   31.865650] 
[   31.866615] Out-of-bounds write at 0x0000000077669080 (1B left of kfence-#123):
[   31.866854]  test_out_of_bounds_write+0x100/0x240
[   31.867705]  kunit_try_run_case+0x170/0x3f0
[   31.867829]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.868695]  kthread+0x328/0x630
[   31.869153]  ret_from_fork+0x10/0x20
[   31.869274] 
[   31.869773] kfence-#123: 0x000000004091c0c8-0x0000000099a37d7e, size=32, cache=kmalloc-32
[   31.869773] 
[   31.869905] allocated by task 291 on cpu 0 at 31.862834s (0.007062s ago):
[   31.870826]  test_alloc+0x29c/0x628
[   31.870987]  test_out_of_bounds_write+0xc8/0x240
[   31.871598]  kunit_try_run_case+0x170/0x3f0
[   31.871823]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.872482]  kthread+0x328/0x630
[   31.872801]  ret_from_fork+0x10/0x20
[   31.873256] 
[   31.873715] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   31.873911] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.873984] Hardware name: linux,dummy-virt (DT)
[   31.875011] ==================================================================


[   16.412372] ==================================================================
[   16.412794] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.412794] 
[   16.413295] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#64):
[   16.413948]  test_out_of_bounds_write+0x10d/0x260
[   16.414207]  kunit_try_run_case+0x1a5/0x480
[   16.414424]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.414946]  kthread+0x337/0x6f0
[   16.415144]  ret_from_fork+0x116/0x1d0
[   16.415397]  ret_from_fork_asm+0x1a/0x30
[   16.415568] 
[   16.415768] kfence-#64: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.415768] 
[   16.416181] allocated by task 308 on cpu 0 at 16.412263s (0.003916s ago):
[   16.416479]  test_alloc+0x364/0x10f0
[   16.416957]  test_out_of_bounds_write+0xd4/0x260
[   16.417169]  kunit_try_run_case+0x1a5/0x480
[   16.417355]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.417761]  kthread+0x337/0x6f0
[   16.418005]  ret_from_fork+0x116/0x1d0
[   16.418156]  ret_from_fork_asm+0x1a/0x30
[   16.418465] 
[   16.418578] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   16.419244] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.419581] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.420047] ==================================================================
[   16.620331] ==================================================================
[   16.620783] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.620783] 
[   16.621262] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#66):
[   16.621538]  test_out_of_bounds_write+0x10d/0x260
[   16.621929]  kunit_try_run_case+0x1a5/0x480
[   16.622126]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.622337]  kthread+0x337/0x6f0
[   16.622506]  ret_from_fork+0x116/0x1d0
[   16.622680]  ret_from_fork_asm+0x1a/0x30
[   16.622829] 
[   16.622912] kfence-#66: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.622912] 
[   16.623473] allocated by task 310 on cpu 1 at 16.620275s (0.003196s ago):
[   16.623805]  test_alloc+0x2a6/0x10f0
[   16.623963]  test_out_of_bounds_write+0xd4/0x260
[   16.624153]  kunit_try_run_case+0x1a5/0x480
[   16.624360]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.624612]  kthread+0x337/0x6f0
[   16.624770]  ret_from_fork+0x116/0x1d0
[   16.624941]  ret_from_fork_asm+0x1a/0x30
[   16.625089] 
[   16.625184] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   16.625663] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.625829] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.626214] ==================================================================