Hay
Date
July 25, 2025, 3:13 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.552781] ==================================================================
[   36.552882] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   36.552882] 
[   36.552977] Out-of-bounds write at 0x00000000625a8668 (1B left of kfence-#126):
[   36.553039]  test_out_of_bounds_write+0x100/0x240
[   36.553097]  kunit_try_run_case+0x170/0x3f0
[   36.553142]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.553188]  kthread+0x328/0x630
[   36.553226]  ret_from_fork+0x10/0x20
[   36.553268] 
[   36.553292] kfence-#126: 0x00000000332878e5-0x00000000cd886ff5, size=32, cache=kmalloc-32
[   36.553292] 
[   36.553350] allocated by task 323 on cpu 0 at 36.552334s (0.001013s ago):
[   36.553426]  test_alloc+0x29c/0x628
[   36.553466]  test_out_of_bounds_write+0xc8/0x240
[   36.553507]  kunit_try_run_case+0x170/0x3f0
[   36.553556]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.553602]  kthread+0x328/0x630
[   36.553658]  ret_from_fork+0x10/0x20
[   36.553701] 
[   36.553757] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   36.553851] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   36.553895] Hardware name: linux,dummy-virt (DT)
[   36.553931] ==================================================================
[   36.759848] ==================================================================
[   36.760072] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   36.760072] 
[   36.760242] Out-of-bounds write at 0x00000000bfaf1df0 (1B left of kfence-#128):
[   36.760308]  test_out_of_bounds_write+0x100/0x240
[   36.760356]  kunit_try_run_case+0x170/0x3f0
[   36.760586]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.760680]  kthread+0x328/0x630
[   36.760798]  ret_from_fork+0x10/0x20
[   36.760842] 
[   36.760868] kfence-#128: 0x000000008bc07da7-0x0000000013f1d3ad, size=32, cache=test
[   36.760868] 
[   36.760971] allocated by task 325 on cpu 0 at 36.759758s (0.001164s ago):
[   36.761047]  test_alloc+0x230/0x628
[   36.761087]  test_out_of_bounds_write+0xc8/0x240
[   36.761145]  kunit_try_run_case+0x170/0x3f0
[   36.761389]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.761452]  kthread+0x328/0x630
[   36.761491]  ret_from_fork+0x10/0x20
[   36.761531] 
[   36.761578] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250725 #1 PREEMPT 
[   36.761710] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   36.761759] Hardware name: linux,dummy-virt (DT)
[   36.761795] ==================================================================

[   30.916164] ==================================================================
[   30.916562] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   30.916562] 
[   30.917100] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#90):
[   30.917780]  test_out_of_bounds_write+0x10d/0x260
[   30.918049]  kunit_try_run_case+0x1a5/0x480
[   30.918282]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.918509]  kthread+0x337/0x6f0
[   30.918676]  ret_from_fork+0x116/0x1d0
[   30.918854]  ret_from_fork_asm+0x1a/0x30
[   30.919045] 
[   30.919580] kfence-#90: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.919580] 
[   30.920070] allocated by task 340 on cpu 1 at 30.916039s (0.004028s ago):
[   30.920529]  test_alloc+0x364/0x10f0
[   30.920740]  test_out_of_bounds_write+0xd4/0x260
[   30.921129]  kunit_try_run_case+0x1a5/0x480
[   30.921316]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.921732]  kthread+0x337/0x6f0
[   30.921930]  ret_from_fork+0x116/0x1d0
[   30.922156]  ret_from_fork_asm+0x1a/0x30
[   30.922524] 
[   30.922644] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   30.923314] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.923604] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.924081] ==================================================================
[   31.020158] ==================================================================
[   31.020532] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   31.020532] 
[   31.020902] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#91):
[   31.021262]  test_out_of_bounds_write+0x10d/0x260
[   31.021463]  kunit_try_run_case+0x1a5/0x480
[   31.021679]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.021900]  kthread+0x337/0x6f0
[   31.022063]  ret_from_fork+0x116/0x1d0
[   31.022282]  ret_from_fork_asm+0x1a/0x30
[   31.022464] 
[   31.022536] kfence-#91: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.022536] 
[   31.022919] allocated by task 342 on cpu 0 at 31.020103s (0.002813s ago):
[   31.023270]  test_alloc+0x2a6/0x10f0
[   31.023452]  test_out_of_bounds_write+0xd4/0x260
[   31.023653]  kunit_try_run_case+0x1a5/0x480
[   31.023867]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.024085]  kthread+0x337/0x6f0
[   31.024254]  ret_from_fork+0x116/0x1d0
[   31.024447]  ret_from_fork_asm+0x1a/0x30
[   31.024618] 
[   31.024721] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) 
[   31.025108] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.025274] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.025723] ==================================================================