Hay
Date
July 15, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   26.201682] ==================================================================
[   26.201781] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   26.201781] 
[   26.201845] Corrupted memory at 0x00000000086cf21a [ ! . . . . . . . . . . . . . . . ] (in kfence-#147):
[   26.202155]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   26.202218]  kunit_try_run_case+0x170/0x3f0
[   26.202262]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.202306]  kthread+0x328/0x630
[   26.202342]  ret_from_fork+0x10/0x20
[   26.202380] 
[   26.202405] kfence-#147: 0x00000000ed878b27-0x0000000030113e71, size=73, cache=kmalloc-96
[   26.202405] 
[   26.202461] allocated by task 326 on cpu 0 at 26.201429s (0.001029s ago):
[   26.202524]  test_alloc+0x29c/0x628
[   26.202563]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   26.202606]  kunit_try_run_case+0x170/0x3f0
[   26.202646]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.202688]  kthread+0x328/0x630
[   26.202724]  ret_from_fork+0x10/0x20
[   26.202763] 
[   26.202788] freed by task 326 on cpu 0 at 26.201590s (0.001194s ago):
[   26.202848]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   26.202889]  kunit_try_run_case+0x170/0x3f0
[   26.202929]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   26.202972]  kthread+0x328/0x630
[   26.203006]  ret_from_fork+0x10/0x20
[   26.203046] 
[   26.203089] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   26.203166] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.203206] Hardware name: linux,dummy-virt (DT)
[   26.203238] ==================================================================

[   25.195820] ==================================================================
[   25.196232] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.196232] 
[   25.196654] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#139):
[   25.197205]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.197469]  kunit_try_run_case+0x1a5/0x480
[   25.197686]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.197892]  kthread+0x337/0x6f0
[   25.198056]  ret_from_fork+0x116/0x1d0
[   25.198252]  ret_from_fork_asm+0x1a/0x30
[   25.198459] 
[   25.198561] kfence-#139: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   25.198561] 
[   25.198951] allocated by task 342 on cpu 1 at 25.195549s (0.003399s ago):
[   25.199237]  test_alloc+0x364/0x10f0
[   25.199370]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   25.199860]  kunit_try_run_case+0x1a5/0x480
[   25.200058]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.200236]  kthread+0x337/0x6f0
[   25.200373]  ret_from_fork+0x116/0x1d0
[   25.200559]  ret_from_fork_asm+0x1a/0x30
[   25.200856] 
[   25.200935] freed by task 342 on cpu 1 at 25.195687s (0.005246s ago):
[   25.201174]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   25.201426]  kunit_try_run_case+0x1a5/0x480
[   25.201644]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.201833]  kthread+0x337/0x6f0
[   25.201954]  ret_from_fork+0x116/0x1d0
[   25.202146]  ret_from_fork_asm+0x1a/0x30
[   25.202350] 
[   25.202480] CPU: 1 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   25.202979] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.203151] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.203503] ==================================================================