Hay
Date
June 3, 2025, 7:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.196150] ==================================================================
[   22.196227] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   22.196227] 
[   22.196320] Out-of-bounds write at 0x0000000003e52060 (1B left of kfence-#84):
[   22.196375]  test_out_of_bounds_write+0x100/0x240
[   22.196435]  kunit_try_run_case+0x170/0x3f0
[   22.196481]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.196527]  kthread+0x328/0x630
[   22.196565]  ret_from_fork+0x10/0x20
[   22.196616] 
[   22.196641] kfence-#84: 0x00000000945ae29a-0x0000000053702eea, size=32, cache=kmalloc-32
[   22.196641] 
[   22.196694] allocated by task 291 on cpu 1 at 22.195828s (0.000862s ago):
[   22.196795]  test_alloc+0x29c/0x628
[   22.196841]  test_out_of_bounds_write+0xc8/0x240
[   22.196882]  kunit_try_run_case+0x170/0x3f0
[   22.196932]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.197011]  kthread+0x328/0x630
[   22.197045]  ret_from_fork+0x10/0x20
[   22.197113] 
[   22.197157] CPU: 1 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   22.197257] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.197287] Hardware name: linux,dummy-virt (DT)
[   22.197320] ==================================================================
[   22.408676] ==================================================================
[   22.408929] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   22.408929] 
[   22.409030] Out-of-bounds write at 0x000000004601b10d (1B left of kfence-#86):
[   22.409121]  test_out_of_bounds_write+0x100/0x240
[   22.409173]  kunit_try_run_case+0x170/0x3f0
[   22.409315]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.409371]  kthread+0x328/0x630
[   22.409603]  ret_from_fork+0x10/0x20
[   22.409661] 
[   22.409691] kfence-#86: 0x0000000096c64e9d-0x000000004a744bf2, size=32, cache=test
[   22.409691] 
[   22.409765] allocated by task 293 on cpu 1 at 22.408566s (0.001189s ago):
[   22.409891]  test_alloc+0x230/0x628
[   22.409941]  test_out_of_bounds_write+0xc8/0x240
[   22.409984]  kunit_try_run_case+0x170/0x3f0
[   22.410043]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.410096]  kthread+0x328/0x630
[   22.410150]  ret_from_fork+0x10/0x20
[   22.410208] 
[   22.410253] CPU: 1 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT 
[   22.410365] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.410403] Hardware name: linux,dummy-virt (DT)
[   22.410454] ==================================================================


[   20.989449] ==================================================================
[   20.990112] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   20.990112] 
[   20.990903] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#92):
[   20.991396]  test_out_of_bounds_write+0x10d/0x260
[   20.991642]  kunit_try_run_case+0x1a5/0x480
[   20.992009]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.993038]  kthread+0x337/0x6f0
[   20.993474]  ret_from_fork+0x116/0x1d0
[   20.993727]  ret_from_fork_asm+0x1a/0x30
[   20.993948] 
[   20.994066] kfence-#92: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   20.994066] 
[   20.995286] allocated by task 310 on cpu 0 at 20.989354s (0.005925s ago):
[   20.996088]  test_alloc+0x2a6/0x10f0
[   20.996484]  test_out_of_bounds_write+0xd4/0x260
[   20.996775]  kunit_try_run_case+0x1a5/0x480
[   20.997018]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.997681]  kthread+0x337/0x6f0
[   20.997918]  ret_from_fork+0x116/0x1d0
[   20.998138]  ret_from_fork_asm+0x1a/0x30
[   20.998807] 
[   20.999277] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   20.999962] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.000178] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.000898] ==================================================================
[   20.885520] ==================================================================
[   20.886064] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   20.886064] 
[   20.886644] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#91):
[   20.887097]  test_out_of_bounds_write+0x10d/0x260
[   20.887409]  kunit_try_run_case+0x1a5/0x480
[   20.887843]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.888263]  kthread+0x337/0x6f0
[   20.888531]  ret_from_fork+0x116/0x1d0
[   20.888872]  ret_from_fork_asm+0x1a/0x30
[   20.889095] 
[   20.889279] kfence-#91: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   20.889279] 
[   20.890122] allocated by task 308 on cpu 1 at 20.885311s (0.004804s ago):
[   20.890613]  test_alloc+0x364/0x10f0
[   20.891120]  test_out_of_bounds_write+0xd4/0x260
[   20.891530]  kunit_try_run_case+0x1a5/0x480
[   20.891866]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.892124]  kthread+0x337/0x6f0
[   20.892465]  ret_from_fork+0x116/0x1d0
[   20.892958]  ret_from_fork_asm+0x1a/0x30
[   20.893361] 
[   20.893617] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250603 #1 PREEMPT(voluntary) 
[   20.894165] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.894560] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.895323] ==================================================================