Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   26.654744] ==================================================================
[   26.654839] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   26.654839] 
[   26.654903] Corrupted memory at 0x00000000f0b2ce30 [ ! . . . . . . . . . . . . . . . ] (in kfence-#142):
[   26.655211]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   26.655263]  kunit_try_run_case+0x170/0x3f0
[   26.655306]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.655368]  kthread+0x328/0x630
[   26.655406]  ret_from_fork+0x10/0x20
[   26.655451] 
[   26.655475] kfence-#142: 0x0000000011a27b96-0x0000000094e9841e, size=73, cache=kmalloc-96
[   26.655475] 
[   26.655531] allocated by task 325 on cpu 1 at 26.654484s (0.001043s ago):
[   26.655594]  test_alloc+0x29c/0x628
[   26.655636]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   26.655680]  kunit_try_run_case+0x170/0x3f0
[   26.655721]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.655766]  kthread+0x328/0x630
[   26.655801]  ret_from_fork+0x10/0x20
[   26.655842] 
[   26.655865] freed by task 325 on cpu 1 at 26.654653s (0.001209s ago):
[   26.655928]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   26.655973]  kunit_try_run_case+0x170/0x3f0
[   26.656012]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.656057]  kthread+0x328/0x630
[   26.656093]  ret_from_fork+0x10/0x20
[   26.656134] 
[   26.656177] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   26.656256] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.656286] Hardware name: linux,dummy-virt (DT)
[   26.656317] ==================================================================

[   24.036378] ==================================================================
[   24.036776] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   24.036776] 
[   24.037260] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#129):
[   24.037843]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   24.038148]  kunit_try_run_case+0x1a5/0x480
[   24.038350]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.038564]  kthread+0x337/0x6f0
[   24.038739]  ret_from_fork+0x116/0x1d0
[   24.038921]  ret_from_fork_asm+0x1a/0x30
[   24.039110] 
[   24.039209] kfence-#129: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   24.039209] 
[   24.039531] allocated by task 342 on cpu 0 at 24.036122s (0.003407s ago):
[   24.039838]  test_alloc+0x364/0x10f0
[   24.040059]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   24.040258]  kunit_try_run_case+0x1a5/0x480
[   24.040406]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.040665]  kthread+0x337/0x6f0
[   24.040839]  ret_from_fork+0x116/0x1d0
[   24.041042]  ret_from_fork_asm+0x1a/0x30
[   24.041275] 
[   24.041374] freed by task 342 on cpu 0 at 24.036255s (0.005117s ago):
[   24.041600]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   24.041772]  kunit_try_run_case+0x1a5/0x480
[   24.041974]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.042240]  kthread+0x337/0x6f0
[   24.042421]  ret_from_fork+0x116/0x1d0
[   24.042582]  ret_from_fork_asm+0x1a/0x30
[   24.042730] 
[   24.042829] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   24.043616] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.043831] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.044212] ==================================================================