Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.141785] ==================================================================
[   21.141908] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   21.141908] 
[   21.142046] Out-of-bounds write at 0x000000008335fc6c (1B left of kfence-#85):
[   21.142103]  test_out_of_bounds_write+0x100/0x240
[   21.142411]  kunit_try_run_case+0x170/0x3f0
[   21.142500]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.142582]  kthread+0x328/0x630
[   21.142655]  ret_from_fork+0x10/0x20
[   21.142711] 
[   21.142738] kfence-#85: 0x00000000f9f4cc5d-0x000000007e1c8190, size=32, cache=kmalloc-32
[   21.142738] 
[   21.142810] allocated by task 291 on cpu 1 at 21.141552s (0.001234s ago):
[   21.142906]  test_alloc+0x29c/0x628
[   21.142972]  test_out_of_bounds_write+0xc8/0x240
[   21.143041]  kunit_try_run_case+0x170/0x3f0
[   21.143084]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.143157]  kthread+0x328/0x630
[   21.143207]  ret_from_fork+0x10/0x20
[   21.143247] 
[   21.143309] CPU: 1 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.143570] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.143692] Hardware name: linux,dummy-virt (DT)
[   21.143735] ==================================================================
[   21.350415] ==================================================================
[   21.350495] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   21.350495] 
[   21.350915] Out-of-bounds write at 0x000000004e25c4fd (1B left of kfence-#87):
[   21.351019]  test_out_of_bounds_write+0x100/0x240
[   21.351192]  kunit_try_run_case+0x170/0x3f0
[   21.351237]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.351281]  kthread+0x328/0x630
[   21.351319]  ret_from_fork+0x10/0x20
[   21.351654] 
[   21.351741] kfence-#87: 0x00000000f576fa69-0x00000000f5d4aa1b, size=32, cache=test
[   21.351741] 
[   21.351843] allocated by task 293 on cpu 1 at 21.350158s (0.001635s ago):
[   21.351918]  test_alloc+0x230/0x628
[   21.351958]  test_out_of_bounds_write+0xc8/0x240
[   21.352000]  kunit_try_run_case+0x170/0x3f0
[   21.352051]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.352095]  kthread+0x328/0x630
[   21.352129]  ret_from_fork+0x10/0x20
[   21.352168] 
[   21.352211] CPU: 1 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   21.352290] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.352319] Hardware name: linux,dummy-virt (DT)
[   21.352375] ==================================================================

[   16.312537] ==================================================================
[   16.312934] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.312934] 
[   16.313470] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#67):
[   16.313784]  test_out_of_bounds_write+0x10d/0x260
[   16.313997]  kunit_try_run_case+0x1a5/0x480
[   16.314165]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.314514]  kthread+0x337/0x6f0
[   16.314698]  ret_from_fork+0x116/0x1d0
[   16.314894]  ret_from_fork_asm+0x1a/0x30
[   16.315056] 
[   16.315171] kfence-#67: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.315171] 
[   16.315951] allocated by task 309 on cpu 1 at 16.312433s (0.003515s ago):
[   16.316323]  test_alloc+0x364/0x10f0
[   16.316803]  test_out_of_bounds_write+0xd4/0x260
[   16.317010]  kunit_try_run_case+0x1a5/0x480
[   16.317246]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.317692]  kthread+0x337/0x6f0
[   16.317873]  ret_from_fork+0x116/0x1d0
[   16.318060]  ret_from_fork_asm+0x1a/0x30
[   16.318261] 
[   16.318539] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.319076] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.319410] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.319792] ==================================================================
[   16.520489] ==================================================================
[   16.520865] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.520865] 
[   16.521267] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#69):
[   16.521611]  test_out_of_bounds_write+0x10d/0x260
[   16.521786]  kunit_try_run_case+0x1a5/0x480
[   16.521947]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.522144]  kthread+0x337/0x6f0
[   16.522278]  ret_from_fork+0x116/0x1d0
[   16.522423]  ret_from_fork_asm+0x1a/0x30
[   16.522573] 
[   16.522651] kfence-#69: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.522651] 
[   16.522934] allocated by task 311 on cpu 0 at 16.520426s (0.002506s ago):
[   16.523300]  test_alloc+0x2a6/0x10f0
[   16.523462]  test_out_of_bounds_write+0xd4/0x260
[   16.523680]  kunit_try_run_case+0x1a5/0x480
[   16.523838]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.524024]  kthread+0x337/0x6f0
[   16.524276]  ret_from_fork+0x116/0x1d0
[   16.524503]  ret_from_fork_asm+0x1a/0x30
[   16.524709] 
[   16.524837] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   16.525278] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.525425] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.525697] ==================================================================