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

Environment
qemu-arm64
qemu-x86_64

[   25.400472] ==================================================================
[   25.400894] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   25.400894] 
[   25.401205] Out-of-bounds write at 0x000000009147a610 (1B left of kfence-#131):
[   25.401394]  test_out_of_bounds_write+0x100/0x240
[   25.401494]  kunit_try_run_case+0x170/0x3f0
[   25.401679]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.401911]  kthread+0x328/0x630
[   25.402108]  ret_from_fork+0x10/0x20
[   25.402306] 
[   25.402363] kfence-#131: 0x00000000fd0a1093-0x0000000071265c43, size=32, cache=test
[   25.402363] 
[   25.402471] allocated by task 294 on cpu 1 at 25.399844s (0.002619s ago):
[   25.402633]  test_alloc+0x230/0x628
[   25.403555]  test_out_of_bounds_write+0xc8/0x240
[   25.403661]  kunit_try_run_case+0x170/0x3f0
[   25.403767]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.403894]  kthread+0x328/0x630
[   25.403993]  ret_from_fork+0x10/0x20
[   25.404096] 
[   25.404195] CPU: 1 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   25.404404] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.405315] Hardware name: linux,dummy-virt (DT)
[   25.405505] ==================================================================
[   25.072201] ==================================================================
[   25.072304] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   25.072304] 
[   25.072481] Out-of-bounds write at 0x00000000e7947c3f (1B left of kfence-#128):
[   25.072607]  test_out_of_bounds_write+0x100/0x240
[   25.072713]  kunit_try_run_case+0x170/0x3f0
[   25.072812]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.073215]  kthread+0x328/0x630
[   25.073473]  ret_from_fork+0x10/0x20
[   25.073579] 
[   25.073683] kfence-#128: 0x0000000025440805-0x00000000d89f7037, size=32, cache=kmalloc-32
[   25.073683] 
[   25.073954] allocated by task 292 on cpu 1 at 25.071638s (0.002304s ago):
[   25.074418]  test_alloc+0x29c/0x628
[   25.074512]  test_out_of_bounds_write+0xc8/0x240
[   25.074622]  kunit_try_run_case+0x170/0x3f0
[   25.074790]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.075103]  kthread+0x328/0x630
[   25.075268]  ret_from_fork+0x10/0x20
[   25.075373] 
[   25.075808] CPU: 1 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   25.076208] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.076273] Hardware name: linux,dummy-virt (DT)
[   25.076348] ==================================================================

[   18.113031] ==================================================================
[   18.113421] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   18.113421] 
[   18.113842] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#69):
[   18.114121]  test_out_of_bounds_write+0x10d/0x260
[   18.114289]  kunit_try_run_case+0x1a5/0x480
[   18.114516]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.114946]  kthread+0x337/0x6f0
[   18.115087]  ret_from_fork+0x116/0x1d0
[   18.115282]  ret_from_fork_asm+0x1a/0x30
[   18.115479] 
[   18.115555] kfence-#69: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.115555] 
[   18.115988] allocated by task 311 on cpu 0 at 18.112972s (0.003014s ago):
[   18.116301]  test_alloc+0x2a6/0x10f0
[   18.116452]  test_out_of_bounds_write+0xd4/0x260
[   18.116660]  kunit_try_run_case+0x1a5/0x480
[   18.116856]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.117091]  kthread+0x337/0x6f0
[   18.117234]  ret_from_fork+0x116/0x1d0
[   18.117424]  ret_from_fork_asm+0x1a/0x30
[   18.117606] 
[   18.117712] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.118092] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.118233] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.118602] ==================================================================
[   17.905083] ==================================================================
[   17.905475] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   17.905475] 
[   17.906143] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#67):
[   17.906448]  test_out_of_bounds_write+0x10d/0x260
[   17.907013]  kunit_try_run_case+0x1a5/0x480
[   17.907231]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.907579]  kthread+0x337/0x6f0
[   17.907899]  ret_from_fork+0x116/0x1d0
[   17.908189]  ret_from_fork_asm+0x1a/0x30
[   17.908396] 
[   17.908621] kfence-#67: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.908621] 
[   17.909204] allocated by task 309 on cpu 1 at 17.904957s (0.004245s ago):
[   17.909686]  test_alloc+0x364/0x10f0
[   17.909912]  test_out_of_bounds_write+0xd4/0x260
[   17.910267]  kunit_try_run_case+0x1a5/0x480
[   17.910562]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.910924]  kthread+0x337/0x6f0
[   17.911100]  ret_from_fork+0x116/0x1d0
[   17.911320]  ret_from_fork_asm+0x1a/0x30
[   17.911651] 
[   17.911829] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   17.912432] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.912631] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.913107] ==================================================================