Hay
Date
July 4, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   33.492560] ==================================================================
[   33.492626] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   33.492626] 
[   33.493287] Out-of-bounds write at 0x000000005bd5ef20 (1B left of kfence-#121):
[   33.493499]  test_out_of_bounds_write+0x100/0x240
[   33.493623]  kunit_try_run_case+0x170/0x3f0
[   33.494085]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.494207]  kthread+0x328/0x630
[   33.494342]  ret_from_fork+0x10/0x20
[   33.494419] 
[   33.494446] kfence-#121: 0x00000000f4887094-0x00000000f8211c2d, size=32, cache=kmalloc-32
[   33.494446] 
[   33.494879] allocated by task 324 on cpu 1 at 33.492416s (0.002457s ago):
[   33.495006]  test_alloc+0x29c/0x628
[   33.495106]  test_out_of_bounds_write+0xc8/0x240
[   33.495154]  kunit_try_run_case+0x170/0x3f0
[   33.495212]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.495272]  kthread+0x328/0x630
[   33.495327]  ret_from_fork+0x10/0x20
[   33.495387] 
[   33.495440] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   33.495549] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.495596] Hardware name: linux,dummy-virt (DT)
[   33.495635] ==================================================================
[   33.918296] ==================================================================
[   33.918537] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   33.918537] 
[   33.918632] Out-of-bounds write at 0x00000000d8c82d0b (1B left of kfence-#125):
[   33.918719]  test_out_of_bounds_write+0x100/0x240
[   33.918789]  kunit_try_run_case+0x170/0x3f0
[   33.918845]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.918894]  kthread+0x328/0x630
[   33.918948]  ret_from_fork+0x10/0x20
[   33.918990] 
[   33.919017] kfence-#125: 0x000000004fa0c41a-0x0000000003f90a58, size=32, cache=test
[   33.919017] 
[   33.919187] allocated by task 326 on cpu 1 at 33.918205s (0.000971s ago):
[   33.919281]  test_alloc+0x230/0x628
[   33.919344]  test_out_of_bounds_write+0xc8/0x240
[   33.919388]  kunit_try_run_case+0x170/0x3f0
[   33.919467]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.919549]  kthread+0x328/0x630
[   33.919605]  ret_from_fork+0x10/0x20
[   33.919648] 
[   33.919691] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   33.919845] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.919934] Hardware name: linux,dummy-virt (DT)
[   33.920000] ==================================================================

[   31.181674] ==================================================================
[   31.182158] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   31.182158] 
[   31.182628] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#104):
[   31.182967]  test_out_of_bounds_write+0x10d/0x260
[   31.183146]  kunit_try_run_case+0x1a5/0x480
[   31.183569]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.183874]  kthread+0x337/0x6f0
[   31.184045]  ret_from_fork+0x116/0x1d0
[   31.184264]  ret_from_fork_asm+0x1a/0x30
[   31.184557] 
[   31.184708] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.184708] 
[   31.186195] allocated by task 340 on cpu 1 at 31.181528s (0.004664s ago):
[   31.186646]  test_alloc+0x364/0x10f0
[   31.186799]  test_out_of_bounds_write+0xd4/0x260
[   31.187008]  kunit_try_run_case+0x1a5/0x480
[   31.187240]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.187589]  kthread+0x337/0x6f0
[   31.187753]  ret_from_fork+0x116/0x1d0
[   31.187995]  ret_from_fork_asm+0x1a/0x30
[   31.188218] 
[   31.188346] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   31.188922] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.189151] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.189605] ==================================================================
[   31.285606] ==================================================================
[   31.286120] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   31.286120] 
[   31.286557] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#105):
[   31.286910]  test_out_of_bounds_write+0x10d/0x260
[   31.287601]  kunit_try_run_case+0x1a5/0x480
[   31.287816]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.288088]  kthread+0x337/0x6f0
[   31.288594]  ret_from_fork+0x116/0x1d0
[   31.288863]  ret_from_fork_asm+0x1a/0x30
[   31.289061] 
[   31.289171] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.289171] 
[   31.289568] allocated by task 342 on cpu 0 at 31.285535s (0.004030s ago):
[   31.289884]  test_alloc+0x2a6/0x10f0
[   31.290441]  test_out_of_bounds_write+0xd4/0x260
[   31.290654]  kunit_try_run_case+0x1a5/0x480
[   31.290969]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.291272]  kthread+0x337/0x6f0
[   31.291614]  ret_from_fork+0x116/0x1d0
[   31.291788]  ret_from_fork_asm+0x1a/0x30
[   31.292131] 
[   31.292271] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   31.292929] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.293148] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.293536] ==================================================================