Hay
Date
July 23, 2025, 2:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   27.379245] ==================================================================
[   27.379341] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.379341] 
[   27.379406] Corrupted memory at 0x000000005ac14142 [ ! . . . . . . . . . . . . . . . ] (in kfence-#158):
[   27.379716]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.379765]  kunit_try_run_case+0x170/0x3f0
[   27.379809]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.379867]  kthread+0x328/0x630
[   27.379905]  ret_from_fork+0x10/0x20
[   27.379944] 
[   27.379970] kfence-#158: 0x0000000026d95c5d-0x0000000037d8a65c, size=73, cache=kmalloc-96
[   27.379970] 
[   27.380028] allocated by task 325 on cpu 0 at 27.379016s (0.001008s ago):
[   27.380091]  test_alloc+0x29c/0x628
[   27.380131]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   27.380175]  kunit_try_run_case+0x170/0x3f0
[   27.380215]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.380258]  kthread+0x328/0x630
[   27.380294]  ret_from_fork+0x10/0x20
[   27.380334] 
[   27.380359] freed by task 325 on cpu 0 at 27.379158s (0.001198s ago):
[   27.380421]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.380463]  kunit_try_run_case+0x170/0x3f0
[   27.380504]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.380548]  kthread+0x328/0x630
[   27.380583]  ret_from_fork+0x10/0x20
[   27.380623] 
[   27.380666] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT 
[   27.380743] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.380774] Hardware name: linux,dummy-virt (DT)
[   27.380807] ==================================================================

[   25.284687] ==================================================================
[   25.285107] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.285107] 
[   25.285548] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#141):
[   25.286186]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.286371]  kunit_try_run_case+0x1a5/0x480
[   25.286605]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.286881]  kthread+0x337/0x6f0
[   25.287062]  ret_from_fork+0x116/0x1d0
[   25.287248]  ret_from_fork_asm+0x1a/0x30
[   25.287481] 
[   25.287558] kfence-#141: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   25.287558] 
[   25.287986] allocated by task 342 on cpu 0 at 25.284434s (0.003550s ago):
[   25.288307]  test_alloc+0x364/0x10f0
[   25.288496]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   25.288713]  kunit_try_run_case+0x1a5/0x480
[   25.288920]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.289199]  kthread+0x337/0x6f0
[   25.289369]  ret_from_fork+0x116/0x1d0
[   25.289540]  ret_from_fork_asm+0x1a/0x30
[   25.289708] 
[   25.289810] freed by task 342 on cpu 0 at 25.284572s (0.005233s ago):
[   25.290074]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.290248]  kunit_try_run_case+0x1a5/0x480
[   25.290398]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.290627]  kthread+0x337/0x6f0
[   25.290860]  ret_from_fork+0x116/0x1d0
[   25.291052]  ret_from_fork_asm+0x1a/0x30
[   25.291295] 
[   25.291394] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7 #1 PREEMPT(voluntary) 
[   25.291740] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.291952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.292694] ==================================================================