Hay
Date
July 3, 2025, 10:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.088853] ==================================================================
[   36.088951] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   36.088951] 
[   36.089047] Out-of-bounds write at 0x000000006b076a26 (1B left of kfence-#137):
[   36.089105]  test_out_of_bounds_write+0x100/0x240
[   36.089155]  kunit_try_run_case+0x170/0x3f0
[   36.089201]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.089248]  kthread+0x328/0x630
[   36.089288]  ret_from_fork+0x10/0x20
[   36.089330] 
[   36.089354] kfence-#137: 0x000000000ece4cc7-0x000000006820354e, size=32, cache=test
[   36.089354] 
[   36.089406] allocated by task 325 on cpu 0 at 36.088751s (0.000651s ago):
[   36.089477]  test_alloc+0x230/0x628
[   36.089519]  test_out_of_bounds_write+0xc8/0x240
[   36.089562]  kunit_try_run_case+0x170/0x3f0
[   36.089602]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.089649]  kthread+0x328/0x630
[   36.089685]  ret_from_fork+0x10/0x20
[   36.089726] 
[   36.089770] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   36.089862] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.089892] Hardware name: linux,dummy-virt (DT)
[   36.089924] ==================================================================
[   35.984928] ==================================================================
[   35.985036] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   35.985036] 
[   35.985140] Out-of-bounds write at 0x00000000a78fc994 (1B left of kfence-#136):
[   35.985197]  test_out_of_bounds_write+0x100/0x240
[   35.985249]  kunit_try_run_case+0x170/0x3f0
[   35.985294]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.985343]  kthread+0x328/0x630
[   35.985382]  ret_from_fork+0x10/0x20
[   35.985424] 
[   35.985448] kfence-#136: 0x00000000b0950572-0x00000000b5493875, size=32, cache=kmalloc-32
[   35.985448] 
[   35.985500] allocated by task 323 on cpu 0 at 35.984741s (0.000756s ago):
[   35.985571]  test_alloc+0x29c/0x628
[   35.985613]  test_out_of_bounds_write+0xc8/0x240
[   35.985655]  kunit_try_run_case+0x170/0x3f0
[   35.985699]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.985745]  kthread+0x328/0x630
[   35.985780]  ret_from_fork+0x10/0x20
[   35.985821] 
[   35.985881] CPU: 0 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   35.985970] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.985999] Hardware name: linux,dummy-virt (DT)
[   35.986034] ==================================================================

[   28.321517] ==================================================================
[   28.321928] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   28.321928] 
[   28.322515] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#91):
[   28.322779]  test_out_of_bounds_write+0x10d/0x260
[   28.322992]  kunit_try_run_case+0x1a5/0x480
[   28.323138]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.323515]  kthread+0x337/0x6f0
[   28.323684]  ret_from_fork+0x116/0x1d0
[   28.323819]  ret_from_fork_asm+0x1a/0x30
[   28.324013] 
[   28.324103] kfence-#91: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.324103] 
[   28.324435] allocated by task 340 on cpu 1 at 28.321389s (0.003044s ago):
[   28.324782]  test_alloc+0x364/0x10f0
[   28.324959]  test_out_of_bounds_write+0xd4/0x260
[   28.325135]  kunit_try_run_case+0x1a5/0x480
[   28.325278]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.325564]  kthread+0x337/0x6f0
[   28.325736]  ret_from_fork+0x116/0x1d0
[   28.325928]  ret_from_fork_asm+0x1a/0x30
[   28.326127] 
[   28.326242] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   28.326629] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.326817] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.327245] ==================================================================
[   28.529485] ==================================================================
[   28.529879] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   28.529879] 
[   28.530362] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#93):
[   28.530654]  test_out_of_bounds_write+0x10d/0x260
[   28.530883]  kunit_try_run_case+0x1a5/0x480
[   28.531056]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.531229]  kthread+0x337/0x6f0
[   28.531396]  ret_from_fork+0x116/0x1d0
[   28.531595]  ret_from_fork_asm+0x1a/0x30
[   28.531878] 
[   28.531978] kfence-#93: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.531978] 
[   28.532349] allocated by task 342 on cpu 1 at 28.529416s (0.002931s ago):
[   28.532652]  test_alloc+0x2a6/0x10f0
[   28.532799]  test_out_of_bounds_write+0xd4/0x260
[   28.532994]  kunit_try_run_case+0x1a5/0x480
[   28.533142]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.533412]  kthread+0x337/0x6f0
[   28.533601]  ret_from_fork+0x116/0x1d0
[   28.533733]  ret_from_fork_asm+0x1a/0x30
[   28.533873] 
[   28.533962] CPU: 1 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   28.534545] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.534682] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.534964] ==================================================================