Hay
Date
May 12, 2025, 11:48 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.514818] ==================================================================
[   20.514885] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   20.514885] 
[   20.514971] Out-of-bounds write at 0x00000000b4061e8c (1B left of kfence-#97):
[   20.515028]  test_out_of_bounds_write+0x100/0x240
[   20.515099]  kunit_try_run_case+0x170/0x3f0
[   20.515189]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.515270]  kthread+0x328/0x630
[   20.515350]  ret_from_fork+0x10/0x20
[   20.515425] 
[   20.515476] kfence-#97: 0x00000000a9eed16a-0x00000000c36fc0b3, size=32, cache=kmalloc-32
[   20.515476] 
[   20.515548] allocated by task 291 on cpu 0 at 20.514676s (0.000868s ago):
[   20.515668]  test_alloc+0x29c/0x628
[   20.515752]  test_out_of_bounds_write+0xc8/0x240
[   20.515800]  kunit_try_run_case+0x170/0x3f0
[   20.515837]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.515878]  kthread+0x328/0x630
[   20.515915]  ret_from_fork+0x10/0x20
[   20.515955] 
[   20.515998] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   20.516090] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.516121] Hardware name: linux,dummy-virt (DT)
[   20.516192] ==================================================================
[   20.722858] ==================================================================
[   20.722945] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   20.722945] 
[   20.723037] Out-of-bounds write at 0x00000000c2bee07f (1B left of kfence-#99):
[   20.723110]  test_out_of_bounds_write+0x100/0x240
[   20.723159]  kunit_try_run_case+0x170/0x3f0
[   20.723202]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.723244]  kthread+0x328/0x630
[   20.723283]  ret_from_fork+0x10/0x20
[   20.723321] 
[   20.723347] kfence-#99: 0x00000000ce7d9867-0x00000000e3daef2d, size=32, cache=test
[   20.723347] 
[   20.723403] allocated by task 293 on cpu 0 at 20.722759s (0.000640s ago):
[   20.723479]  test_alloc+0x230/0x628
[   20.723523]  test_out_of_bounds_write+0xc8/0x240
[   20.723565]  kunit_try_run_case+0x170/0x3f0
[   20.723604]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.723648]  kthread+0x328/0x630
[   20.723686]  ret_from_fork+0x10/0x20
[   20.723725] 
[   20.723769] CPU: 0 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   20.723860] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.723891] Hardware name: linux,dummy-virt (DT)
[   20.723926] ==================================================================

[   23.305850] ==================================================================
[   23.306361] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   23.306361] 
[   23.306769] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#95):
[   23.307394]  test_out_of_bounds_write+0x10d/0x260
[   23.307660]  kunit_try_run_case+0x1a5/0x480
[   23.307973]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.308470]  kthread+0x337/0x6f0
[   23.308665]  ret_from_fork+0x116/0x1d0
[   23.309125]  ret_from_fork_asm+0x1a/0x30
[   23.309566] 
[   23.309790] kfence-#95: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   23.309790] 
[   23.310242] allocated by task 308 on cpu 0 at 23.305656s (0.004580s ago):
[   23.310965]  test_alloc+0x364/0x10f0
[   23.311180]  test_out_of_bounds_write+0xd4/0x260
[   23.311582]  kunit_try_run_case+0x1a5/0x480
[   23.311935]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.312324]  kthread+0x337/0x6f0
[   23.312696]  ret_from_fork+0x116/0x1d0
[   23.312912]  ret_from_fork_asm+0x1a/0x30
[   23.313117] 
[   23.313300] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   23.314482] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.314905] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.315231] ==================================================================
[   23.721742] ==================================================================
[   23.722369] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   23.722369] 
[   23.723065] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#99):
[   23.723473]  test_out_of_bounds_write+0x10d/0x260
[   23.723756]  kunit_try_run_case+0x1a5/0x480
[   23.723963]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.724537]  kthread+0x337/0x6f0
[   23.725076]  ret_from_fork+0x116/0x1d0
[   23.725286]  ret_from_fork_asm+0x1a/0x30
[   23.725651] 
[   23.726322] kfence-#99: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   23.726322] 
[   23.727045] allocated by task 310 on cpu 1 at 23.721634s (0.005404s ago):
[   23.727403]  test_alloc+0x2a6/0x10f0
[   23.727807]  test_out_of_bounds_write+0xd4/0x260
[   23.728172]  kunit_try_run_case+0x1a5/0x480
[   23.728670]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.729153]  kthread+0x337/0x6f0
[   23.729411]  ret_from_fork+0x116/0x1d0
[   23.729691]  ret_from_fork_asm+0x1a/0x30
[   23.730067] 
[   23.730360] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   23.731185] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.731506] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.732133] ==================================================================