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

Environment
qemu-arm64
qemu-x86_64

[   40.058262] ==================================================================
[   40.058347] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   40.058347] 
[   40.058410] Corrupted memory at 0x00000000fd523de0 [ ! . . . . . . . . . . . . . . . ] (in kfence-#184):
[   40.058722]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   40.058774]  kunit_try_run_case+0x170/0x3f0
[   40.058818]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.058866]  kthread+0x328/0x630
[   40.058918]  ret_from_fork+0x10/0x20
[   40.058963] 
[   40.058987] kfence-#184: 0x00000000e3961d6c-0x000000003b512f2d, size=73, cache=kmalloc-96
[   40.058987] 
[   40.059042] allocated by task 358 on cpu 1 at 40.058046s (0.000993s ago):
[   40.059106]  test_alloc+0x29c/0x628
[   40.059149]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   40.059194]  kunit_try_run_case+0x170/0x3f0
[   40.059236]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.059282]  kthread+0x328/0x630
[   40.059320]  ret_from_fork+0x10/0x20
[   40.059360] 
[   40.059384] freed by task 358 on cpu 1 at 40.058178s (0.001202s ago):
[   40.059451]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   40.059495]  kunit_try_run_case+0x170/0x3f0
[   40.059537]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   40.059581]  kthread+0x328/0x630
[   40.059618]  ret_from_fork+0x10/0x20
[   40.059658] 
[   40.059699] CPU: 1 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT 
[   40.059782] Tainted: [B]=BAD_PAGE, [N]=TEST
[   40.059812] Hardware name: linux,dummy-virt (DT)
[   40.059847] ==================================================================

[   36.693831] ==================================================================
[   36.694280] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   36.694280] 
[   36.694681] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#157):
[   36.695324]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   36.695533]  kunit_try_run_case+0x1a5/0x480
[   36.696408]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.696732]  kthread+0x337/0x6f0
[   36.696952]  ret_from_fork+0x116/0x1d0
[   36.697148]  ret_from_fork_asm+0x1a/0x30
[   36.697356] 
[   36.697471] kfence-#157: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   36.697471] 
[   36.697937] allocated by task 374 on cpu 1 at 36.693561s (0.004374s ago):
[   36.698265]  test_alloc+0x364/0x10f0
[   36.698466]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   36.698715]  kunit_try_run_case+0x1a5/0x480
[   36.699371]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.699835]  kthread+0x337/0x6f0
[   36.700282]  ret_from_fork+0x116/0x1d0
[   36.700557]  ret_from_fork_asm+0x1a/0x30
[   36.700727] 
[   36.700838] freed by task 374 on cpu 1 at 36.693697s (0.007139s ago):
[   36.701168]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   36.701449]  kunit_try_run_case+0x1a5/0x480
[   36.701632]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   36.701906]  kthread+0x337/0x6f0
[   36.702080]  ret_from_fork+0x116/0x1d0
[   36.702256]  ret_from_fork_asm+0x1a/0x30
[   36.702430] 
[   36.702564] CPU: 1 UID: 0 PID: 374 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) 
[   36.703079] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.703277] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   36.703829] ==================================================================