Hay
Date
July 1, 2025, 11:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.749033] ==================================================================
[   22.749380] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   22.749380] 
[   22.749507] Out-of-bounds write at 0x00000000017c903b (1B left of kfence-#89):
[   22.749620]  test_out_of_bounds_write+0x100/0x240
[   22.749714]  kunit_try_run_case+0x170/0x3f0
[   22.749766]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.749814]  kthread+0x328/0x630
[   22.749856]  ret_from_fork+0x10/0x20
[   22.749899] 
[   22.749926] kfence-#89: 0x00000000366afe49-0x000000006e336f37, size=32, cache=kmalloc-32
[   22.749926] 
[   22.750350] allocated by task 292 on cpu 0 at 22.748228s (0.001897s ago):
[   22.750450]  test_alloc+0x29c/0x628
[   22.750499]  test_out_of_bounds_write+0xc8/0x240
[   22.750748]  kunit_try_run_case+0x170/0x3f0
[   22.750808]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.751035]  kthread+0x328/0x630
[   22.751183]  ret_from_fork+0x10/0x20
[   22.751234] 
[   22.751540] CPU: 0 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.751686] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.751850] Hardware name: linux,dummy-virt (DT)
[   22.751956] ==================================================================
[   23.164115] ==================================================================
[   23.164282] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   23.164282] 
[   23.164381] Out-of-bounds write at 0x0000000099e2dc1f (1B left of kfence-#93):
[   23.164650]  test_out_of_bounds_write+0x100/0x240
[   23.164714]  kunit_try_run_case+0x170/0x3f0
[   23.164815]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.164866]  kthread+0x328/0x630
[   23.164907]  ret_from_fork+0x10/0x20
[   23.165000] 
[   23.165060] kfence-#93: 0x00000000275bc575-0x0000000092835c4b, size=32, cache=test
[   23.165060] 
[   23.165116] allocated by task 294 on cpu 0 at 23.163986s (0.001125s ago):
[   23.165292]  test_alloc+0x230/0x628
[   23.165344]  test_out_of_bounds_write+0xc8/0x240
[   23.165390]  kunit_try_run_case+0x170/0x3f0
[   23.165488]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.165539]  kthread+0x328/0x630
[   23.165585]  ret_from_fork+0x10/0x20
[   23.165676] 
[   23.165727] CPU: 0 UID: 0 PID: 294 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.165816] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.165847] Hardware name: linux,dummy-virt (DT)
[   23.165886] ==================================================================

[   16.513343] ==================================================================
[   16.513806] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.513806] 
[   16.514196] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#68):
[   16.514556]  test_out_of_bounds_write+0x10d/0x260
[   16.514792]  kunit_try_run_case+0x1a5/0x480
[   16.514983]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.515215]  kthread+0x337/0x6f0
[   16.515345]  ret_from_fork+0x116/0x1d0
[   16.515551]  ret_from_fork_asm+0x1a/0x30
[   16.515752] 
[   16.515835] kfence-#68: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.515835] 
[   16.516195] allocated by task 310 on cpu 0 at 16.513281s (0.002912s ago):
[   16.516479]  test_alloc+0x2a6/0x10f0
[   16.516675]  test_out_of_bounds_write+0xd4/0x260
[   16.516867]  kunit_try_run_case+0x1a5/0x480
[   16.517015]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.517259]  kthread+0x337/0x6f0
[   16.517441]  ret_from_fork+0x116/0x1d0
[   16.517630]  ret_from_fork_asm+0x1a/0x30
[   16.517871] 
[   16.517974] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.518318] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.518471] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.518865] ==================================================================
[   16.409441] ==================================================================
[   16.409847] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.409847] 
[   16.410407] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#67):
[   16.410669]  test_out_of_bounds_write+0x10d/0x260
[   16.410878]  kunit_try_run_case+0x1a5/0x480
[   16.411368]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.411949]  kthread+0x337/0x6f0
[   16.412263]  ret_from_fork+0x116/0x1d0
[   16.412426]  ret_from_fork_asm+0x1a/0x30
[   16.412599] 
[   16.412806] kfence-#67: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.412806] 
[   16.413439] allocated by task 308 on cpu 1 at 16.409294s (0.004142s ago):
[   16.413822]  test_alloc+0x364/0x10f0
[   16.413988]  test_out_of_bounds_write+0xd4/0x260
[   16.414267]  kunit_try_run_case+0x1a5/0x480
[   16.414528]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.414792]  kthread+0x337/0x6f0
[   16.415007]  ret_from_fork+0x116/0x1d0
[   16.415287]  ret_from_fork_asm+0x1a/0x30
[   16.415475] 
[   16.415622] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.416133] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.416338] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.416796] ==================================================================