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

Environment
qemu-arm64
qemu-x86_64

[   22.408556] ==================================================================
[   22.409005] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   22.409005] 
[   22.409117] Out-of-bounds write at 0x00000000a08f7212 (1B left of kfence-#88):
[   22.409186]  test_out_of_bounds_write+0x100/0x240
[   22.409705]  kunit_try_run_case+0x170/0x3f0
[   22.409884]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.409940]  kthread+0x328/0x630
[   22.410099]  ret_from_fork+0x10/0x20
[   22.410339] 
[   22.410464] kfence-#88: 0x00000000018c485d-0x0000000015e016ee, size=32, cache=kmalloc-32
[   22.410464] 
[   22.410589] allocated by task 291 on cpu 0 at 22.408285s (0.002283s ago):
[   22.410665]  test_alloc+0x29c/0x628
[   22.410867]  test_out_of_bounds_write+0xc8/0x240
[   22.410998]  kunit_try_run_case+0x170/0x3f0
[   22.411421]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.411700]  kthread+0x328/0x630
[   22.411900]  ret_from_fork+0x10/0x20
[   22.411945] 
[   22.412018] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.412111] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.412150] Hardware name: linux,dummy-virt (DT)
[   22.412486] ==================================================================
[   22.614769] ==================================================================
[   22.614972] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   22.614972] 
[   22.615082] Out-of-bounds write at 0x000000000370769b (1B left of kfence-#90):
[   22.615268]  test_out_of_bounds_write+0x100/0x240
[   22.615324]  kunit_try_run_case+0x170/0x3f0
[   22.615388]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.615441]  kthread+0x328/0x630
[   22.615715]  ret_from_fork+0x10/0x20
[   22.615785] 
[   22.616003] kfence-#90: 0x000000004b2dc6de-0x000000008c8ca243, size=32, cache=test
[   22.616003] 
[   22.616225] allocated by task 293 on cpu 0 at 22.614386s (0.001799s ago):
[   22.616314]  test_alloc+0x230/0x628
[   22.616438]  test_out_of_bounds_write+0xc8/0x240
[   22.616505]  kunit_try_run_case+0x170/0x3f0
[   22.616562]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.616684]  kthread+0x328/0x630
[   22.616725]  ret_from_fork+0x10/0x20
[   22.616771] 
[   22.617073] CPU: 0 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.617155] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.617239] Hardware name: linux,dummy-virt (DT)
[   22.617305] ==================================================================

[   16.928847] ==================================================================
[   16.929330] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.929330] 
[   16.929751] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#70):
[   16.930111]  test_out_of_bounds_write+0x10d/0x260
[   16.930348]  kunit_try_run_case+0x1a5/0x480
[   16.930505]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.930771]  kthread+0x337/0x6f0
[   16.930923]  ret_from_fork+0x116/0x1d0
[   16.931074]  ret_from_fork_asm+0x1a/0x30
[   16.931449] 
[   16.931553] kfence-#70: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.931553] 
[   16.931923] allocated by task 310 on cpu 1 at 16.928782s (0.003138s ago):
[   16.932172]  test_alloc+0x2a6/0x10f0
[   16.932352]  test_out_of_bounds_write+0xd4/0x260
[   16.932600]  kunit_try_run_case+0x1a5/0x480
[   16.932750]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.932923]  kthread+0x337/0x6f0
[   16.933055]  ret_from_fork+0x116/0x1d0
[   16.933206]  ret_from_fork_asm+0x1a/0x30
[   16.933350] 
[   16.933451] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.933853] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.934007] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.934279] ==================================================================
[   16.616902] ==================================================================
[   16.617351] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.617351] 
[   16.617904] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#67):
[   16.618376]  test_out_of_bounds_write+0x10d/0x260
[   16.618652]  kunit_try_run_case+0x1a5/0x480
[   16.618864]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.619279]  kthread+0x337/0x6f0
[   16.619468]  ret_from_fork+0x116/0x1d0
[   16.619652]  ret_from_fork_asm+0x1a/0x30
[   16.619839] 
[   16.619936] kfence-#67: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.619936] 
[   16.620344] allocated by task 308 on cpu 0 at 16.616779s (0.003562s ago):
[   16.620632]  test_alloc+0x364/0x10f0
[   16.620847]  test_out_of_bounds_write+0xd4/0x260
[   16.621045]  kunit_try_run_case+0x1a5/0x480
[   16.621230]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.621593]  kthread+0x337/0x6f0
[   16.621894]  ret_from_fork+0x116/0x1d0
[   16.622424]  ret_from_fork_asm+0x1a/0x30
[   16.622804] 
[   16.623041] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.623635] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.623987] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.624631] ==================================================================