Hay
Date
May 29, 2025, 7:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   26.757117] ==================================================================
[   26.757477] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   26.757477] 
[   26.757797] Out-of-bounds write at 0x000000002a37a40c (1B left of kfence-#112):
[   26.757927]  test_out_of_bounds_write+0x100/0x240
[   26.758046]  kunit_try_run_case+0x170/0x3f0
[   26.758157]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.758262]  kthread+0x328/0x630
[   26.758356]  ret_from_fork+0x10/0x20
[   26.758785] 
[   26.758989] kfence-#112: 0x000000000da62d09-0x00000000452f3d23, size=32, cache=kmalloc-32
[   26.758989] 
[   26.759371] allocated by task 291 on cpu 1 at 26.756478s (0.002881s ago):
[   26.759651]  test_alloc+0x29c/0x628
[   26.759819]  test_out_of_bounds_write+0xc8/0x240
[   26.760113]  kunit_try_run_case+0x170/0x3f0
[   26.760378]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.760492]  kthread+0x328/0x630
[   26.760819]  ret_from_fork+0x10/0x20
[   26.761015] 
[   26.761311] CPU: 1 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT 
[   26.761620] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.761936] Hardware name: linux,dummy-virt (DT)
[   26.762022] ==================================================================
[   27.277185] ==================================================================
[   27.277684] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   27.277684] 
[   27.278225] Out-of-bounds write at 0x000000006fc9863b (1B left of kfence-#117):
[   27.279149]  test_out_of_bounds_write+0x100/0x240
[   27.279334]  kunit_try_run_case+0x170/0x3f0
[   27.279448]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.279554]  kthread+0x328/0x630
[   27.280188]  ret_from_fork+0x10/0x20
[   27.280577] 
[   27.281034] kfence-#117: 0x00000000d7526c94-0x00000000b721b68d, size=32, cache=test
[   27.281034] 
[   27.281185] allocated by task 293 on cpu 1 at 27.276771s (0.004403s ago):
[   27.281361]  test_alloc+0x230/0x628
[   27.281482]  test_out_of_bounds_write+0xc8/0x240
[   27.281587]  kunit_try_run_case+0x170/0x3f0
[   27.281689]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.281797]  kthread+0x328/0x630
[   27.281885]  ret_from_fork+0x10/0x20
[   27.281979] 
[   27.282079] CPU: 1 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT 
[   27.282282] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.282353] Hardware name: linux,dummy-virt (DT)
[   27.282438] ==================================================================


[   16.266148] ==================================================================
[   16.266554] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.266554] 
[   16.267013] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#70):
[   16.267641]  test_out_of_bounds_write+0x10d/0x260
[   16.268272]  kunit_try_run_case+0x1a5/0x480
[   16.268492]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.268733]  kthread+0x337/0x6f0
[   16.268916]  ret_from_fork+0x116/0x1d0
[   16.269090]  ret_from_fork_asm+0x1a/0x30
[   16.269262] 
[   16.269368] kfence-#70: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.269368] 
[   16.269744] allocated by task 310 on cpu 1 at 16.266090s (0.003652s ago):
[   16.270412]  test_alloc+0x2a6/0x10f0
[   16.270697]  test_out_of_bounds_write+0xd4/0x260
[   16.270902]  kunit_try_run_case+0x1a5/0x480
[   16.271245]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.271483]  kthread+0x337/0x6f0
[   16.271783]  ret_from_fork+0x116/0x1d0
[   16.271979]  ret_from_fork_asm+0x1a/0x30
[   16.272303] 
[   16.272422] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   16.273067] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.273340] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.273715] ==================================================================
[   16.162143] ==================================================================
[   16.162563] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   16.162563] 
[   16.163132] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#69):
[   16.163443]  test_out_of_bounds_write+0x10d/0x260
[   16.163651]  kunit_try_run_case+0x1a5/0x480
[   16.163971]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.164278]  kthread+0x337/0x6f0
[   16.164472]  ret_from_fork+0x116/0x1d0
[   16.164641]  ret_from_fork_asm+0x1a/0x30
[   16.164872] 
[   16.164958] kfence-#69: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.164958] 
[   16.165488] allocated by task 308 on cpu 1 at 16.162039s (0.003447s ago):
[   16.165831]  test_alloc+0x364/0x10f0
[   16.165968]  test_out_of_bounds_write+0xd4/0x260
[   16.166214]  kunit_try_run_case+0x1a5/0x480
[   16.166423]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.166676]  kthread+0x337/0x6f0
[   16.166803]  ret_from_fork+0x116/0x1d0
[   16.167017]  ret_from_fork_asm+0x1a/0x30
[   16.167242] 
[   16.167427] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   16.167927] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.168157] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.168560] ==================================================================