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

Environment
qemu-arm64
qemu-x86_64

[   41.793311] ==================================================================
[   41.793403] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   41.793403] 
[   41.793468] Corrupted memory at 0x0000000043cbc5af [ ! . . . . . . . . . . . . . . . ] (in kfence-#195):
[   41.793782]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   41.793830]  kunit_try_run_case+0x170/0x3f0
[   41.793877]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.793923]  kthread+0x328/0x630
[   41.793961]  ret_from_fork+0x10/0x20
[   41.794001] 
[   41.794026] kfence-#195: 0x0000000023dc8c43-0x000000001b62b549, size=73, cache=kmalloc-96
[   41.794026] 
[   41.794083] allocated by task 356 on cpu 0 at 41.793049s (0.001030s ago):
[   41.794148]  test_alloc+0x29c/0x628
[   41.794188]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   41.794248]  kunit_try_run_case+0x170/0x3f0
[   41.794289]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.794333]  kthread+0x328/0x630
[   41.794370]  ret_from_fork+0x10/0x20
[   41.794410] 
[   41.794434] freed by task 356 on cpu 0 at 41.793196s (0.001234s ago):
[   41.794498]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   41.794543]  kunit_try_run_case+0x170/0x3f0
[   41.794586]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.794631]  kthread+0x328/0x630
[   41.794668]  ret_from_fork+0x10/0x20
[   41.794707] 
[   41.794753] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   41.794835] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.794864] Hardware name: linux,dummy-virt (DT)
[   41.794900] ==================================================================

[   35.824409] ==================================================================
[   35.824818] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   35.824818] 
[   35.825273] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#159):
[   35.825963]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   35.826220]  kunit_try_run_case+0x1a5/0x480
[   35.826435]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.826684]  kthread+0x337/0x6f0
[   35.826803]  ret_from_fork+0x116/0x1d0
[   35.826972]  ret_from_fork_asm+0x1a/0x30
[   35.827209] 
[   35.827338] kfence-#159: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   35.827338] 
[   35.827754] allocated by task 373 on cpu 1 at 35.824134s (0.003617s ago):
[   35.828013]  test_alloc+0x364/0x10f0
[   35.828222]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   35.828485]  kunit_try_run_case+0x1a5/0x480
[   35.828664]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.828930]  kthread+0x337/0x6f0
[   35.829092]  ret_from_fork+0x116/0x1d0
[   35.829296]  ret_from_fork_asm+0x1a/0x30
[   35.829573] 
[   35.829658] freed by task 373 on cpu 1 at 35.824274s (0.005382s ago):
[   35.829963]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   35.830224]  kunit_try_run_case+0x1a5/0x480
[   35.830395]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.830600]  kthread+0x337/0x6f0
[   35.830787]  ret_from_fork+0x116/0x1d0
[   35.830984]  ret_from_fork_asm+0x1a/0x30
[   35.831119] 
[   35.831211] CPU: 1 UID: 0 PID: 373 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   35.831723] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.831952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.832210] ==================================================================