Hay
Date
July 15, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.063646] ==================================================================
[   20.063769] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   20.063769] 
[   20.063904] Out-of-bounds write at 0x000000009890eb69 (1B left of kfence-#88):
[   20.064000]  test_out_of_bounds_write+0x100/0x240
[   20.064052]  kunit_try_run_case+0x170/0x3f0
[   20.064110]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.064265]  kthread+0x328/0x630
[   20.064344]  ret_from_fork+0x10/0x20
[   20.064388] 
[   20.064441] kfence-#88: 0x0000000071f1ca98-0x00000000b358e7df, size=32, cache=test
[   20.064441] 
[   20.064501] allocated by task 294 on cpu 0 at 20.063066s (0.001431s ago):
[   20.064572]  test_alloc+0x230/0x628
[   20.064831]  test_out_of_bounds_write+0xc8/0x240
[   20.064892]  kunit_try_run_case+0x170/0x3f0
[   20.064955]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.065067]  kthread+0x328/0x630
[   20.065106]  ret_from_fork+0x10/0x20
[   20.065156] 
[   20.065594] CPU: 0 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.065754] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.065843] Hardware name: linux,dummy-virt (DT)
[   20.065884] ==================================================================
[   19.847759] ==================================================================
[   19.847825] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   19.847825] 
[   19.847912] Out-of-bounds write at 0x00000000defba307 (1B left of kfence-#86):
[   19.847966]  test_out_of_bounds_write+0x100/0x240
[   19.848010]  kunit_try_run_case+0x170/0x3f0
[   19.848052]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.848096]  kthread+0x328/0x630
[   19.848133]  ret_from_fork+0x10/0x20
[   19.848172] 
[   19.848211] kfence-#86: 0x0000000072b4e606-0x000000008fd736a3, size=32, cache=kmalloc-32
[   19.848211] 
[   19.848265] allocated by task 292 on cpu 0 at 19.847623s (0.000639s ago):
[   19.848334]  test_alloc+0x29c/0x628
[   19.848372]  test_out_of_bounds_write+0xc8/0x240
[   19.848414]  kunit_try_run_case+0x170/0x3f0
[   19.848455]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.848498]  kthread+0x328/0x630
[   19.848730]  ret_from_fork+0x10/0x20
[   19.848788] 
[   19.848835] CPU: 0 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   19.848963] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.849121] Hardware name: linux,dummy-virt (DT)
[   19.849160] ==================================================================

[   17.603777] ==================================================================
[   17.604194] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   17.604194] 
[   17.604645] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#66):
[   17.604981]  test_out_of_bounds_write+0x10d/0x260
[   17.605212]  kunit_try_run_case+0x1a5/0x480
[   17.605367]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.605712]  kthread+0x337/0x6f0
[   17.605868]  ret_from_fork+0x116/0x1d0
[   17.606110]  ret_from_fork_asm+0x1a/0x30
[   17.606320] 
[   17.606431] kfence-#66: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.606431] 
[   17.606817] allocated by task 308 on cpu 1 at 17.603630s (0.003184s ago):
[   17.607118]  test_alloc+0x364/0x10f0
[   17.607264]  test_out_of_bounds_write+0xd4/0x260
[   17.607510]  kunit_try_run_case+0x1a5/0x480
[   17.607664]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.607854]  kthread+0x337/0x6f0
[   17.608025]  ret_from_fork+0x116/0x1d0
[   17.608219]  ret_from_fork_asm+0x1a/0x30
[   17.608418] 
[   17.608582] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.608927] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.609139] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.609648] ==================================================================
[   17.707769] ==================================================================
[   17.708157] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   17.708157] 
[   17.708655] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#67):
[   17.708935]  test_out_of_bounds_write+0x10d/0x260
[   17.709637]  kunit_try_run_case+0x1a5/0x480
[   17.709815]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.710086]  kthread+0x337/0x6f0
[   17.710249]  ret_from_fork+0x116/0x1d0
[   17.710774]  ret_from_fork_asm+0x1a/0x30
[   17.710985] 
[   17.711069] kfence-#67: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.711069] 
[   17.711580] allocated by task 310 on cpu 0 at 17.707697s (0.003880s ago):
[   17.712060]  test_alloc+0x2a6/0x10f0
[   17.712234]  test_out_of_bounds_write+0xd4/0x260
[   17.712599]  kunit_try_run_case+0x1a5/0x480
[   17.712818]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.713052]  kthread+0x337/0x6f0
[   17.713213]  ret_from_fork+0x116/0x1d0
[   17.713383]  ret_from_fork_asm+0x1a/0x30
[   17.713795] 
[   17.714080] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.714565] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.714842] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.715306] ==================================================================