Hay
Date
July 8, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   35.857831] ==================================================================
[   35.857919] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   35.857919] 
[   35.858046] Out-of-bounds write at 0x000000004490a70a (1B left of kfence-#138):
[   35.858109]  test_out_of_bounds_write+0x100/0x240
[   35.858158]  kunit_try_run_case+0x170/0x3f0
[   35.858223]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.858297]  kthread+0x328/0x630
[   35.858339]  ret_from_fork+0x10/0x20
[   35.858380] 
[   35.858403] kfence-#138: 0x00000000ebac7135-0x000000002c821f3d, size=32, cache=test
[   35.858403] 
[   35.858644] allocated by task 324 on cpu 0 at 35.857706s (0.000905s ago):
[   35.858726]  test_alloc+0x230/0x628
[   35.858799]  test_out_of_bounds_write+0xc8/0x240
[   35.858843]  kunit_try_run_case+0x170/0x3f0
[   35.858943]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.859017]  kthread+0x328/0x630
[   35.859083]  ret_from_fork+0x10/0x20
[   35.859124] 
[   35.859169] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   35.859264] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.859501] Hardware name: linux,dummy-virt (DT)
[   35.859553] ==================================================================
[   35.547590] ==================================================================
[   35.547760] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x100/0x240
[   35.547760] 
[   35.547856] Out-of-bounds write at 0x000000000f57d1be (1B left of kfence-#135):
[   35.547980]  test_out_of_bounds_write+0x100/0x240
[   35.548033]  kunit_try_run_case+0x170/0x3f0
[   35.548118]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.548182]  kthread+0x328/0x630
[   35.548500]  ret_from_fork+0x10/0x20
[   35.548593] 
[   35.548634] kfence-#135: 0x00000000ee1d8197-0x000000000b031ad3, size=32, cache=kmalloc-32
[   35.548634] 
[   35.548785] allocated by task 322 on cpu 0 at 35.547346s (0.001428s ago):
[   35.548857]  test_alloc+0x29c/0x628
[   35.548946]  test_out_of_bounds_write+0xc8/0x240
[   35.549011]  kunit_try_run_case+0x170/0x3f0
[   35.549051]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.549096]  kthread+0x328/0x630
[   35.549132]  ret_from_fork+0x10/0x20
[   35.549171] 
[   35.549230] CPU: 0 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   35.549313] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.549482] Hardware name: linux,dummy-virt (DT)
[   35.549581] ==================================================================

[   29.272230] ==================================================================
[   29.272657] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   29.272657] 
[   29.273042] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#96):
[   29.273404]  test_out_of_bounds_write+0x10d/0x260
[   29.273593]  kunit_try_run_case+0x1a5/0x480
[   29.273740]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.274227]  kthread+0x337/0x6f0
[   29.274395]  ret_from_fork+0x116/0x1d0
[   29.274528]  ret_from_fork_asm+0x1a/0x30
[   29.274734] 
[   29.274823] kfence-#96: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   29.274823] 
[   29.275337] allocated by task 339 on cpu 1 at 29.272091s (0.003243s ago):
[   29.275607]  test_alloc+0x364/0x10f0
[   29.275751]  test_out_of_bounds_write+0xd4/0x260
[   29.275967]  kunit_try_run_case+0x1a5/0x480
[   29.276179]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.276432]  kthread+0x337/0x6f0
[   29.276558]  ret_from_fork+0x116/0x1d0
[   29.276697]  ret_from_fork_asm+0x1a/0x30
[   29.276995] 
[   29.277118] CPU: 1 UID: 0 PID: 339 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   29.277647] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.277798] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.278173] ==================================================================
[   29.480157] ==================================================================
[   29.480574] BUG: KFENCE: out-of-bounds write in test_out_of_bounds_write+0x10d/0x260
[   29.480574] 
[   29.481125] Out-of-bounds write at 0x(____ptrval____) (1B left of kfence-#98):
[   29.481443]  test_out_of_bounds_write+0x10d/0x260
[   29.481680]  kunit_try_run_case+0x1a5/0x480
[   29.481941]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.482122]  kthread+0x337/0x6f0
[   29.482252]  ret_from_fork+0x116/0x1d0
[   29.482380]  ret_from_fork_asm+0x1a/0x30
[   29.482518] 
[   29.482585] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   29.482585] 
[   29.482879] allocated by task 341 on cpu 1 at 29.480092s (0.002785s ago):
[   29.483184]  test_alloc+0x2a6/0x10f0
[   29.483326]  test_out_of_bounds_write+0xd4/0x260
[   29.483471]  kunit_try_run_case+0x1a5/0x480
[   29.483604]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.483769]  kthread+0x337/0x6f0
[   29.483881]  ret_from_fork+0x116/0x1d0
[   29.484003]  ret_from_fork_asm+0x1a/0x30
[   29.484134] 
[   29.484224] CPU: 1 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   29.484658] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.484875] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.485332] ==================================================================