Hay
Date
July 5, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.780617] ==================================================================
[   28.780722] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.780722] 
[   28.780785] Corrupted memory at 0x00000000bfc4f94d [ ! . . . . . . . . . . . . . . . ] (in kfence-#145):
[   28.781095]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.781146]  kunit_try_run_case+0x170/0x3f0
[   28.781204]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.781248]  kthread+0x328/0x630
[   28.781285]  ret_from_fork+0x10/0x20
[   28.781324] 
[   28.781349] kfence-#145: 0x000000002a86186f-0x00000000f2fffd01, size=73, cache=kmalloc-96
[   28.781349] 
[   28.781403] allocated by task 325 on cpu 1 at 28.780379s (0.001021s ago):
[   28.781465]  test_alloc+0x29c/0x628
[   28.781506]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   28.781548]  kunit_try_run_case+0x170/0x3f0
[   28.781588]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.781631]  kthread+0x328/0x630
[   28.781666]  ret_from_fork+0x10/0x20
[   28.781705] 
[   28.781729] freed by task 325 on cpu 1 at 28.780527s (0.001198s ago):
[   28.781791]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.781834]  kunit_try_run_case+0x170/0x3f0
[   28.781873]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.781916]  kthread+0x328/0x630
[   28.781951]  ret_from_fork+0x10/0x20
[   28.781990] 
[   28.782032] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   28.782108] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.782137] Hardware name: linux,dummy-virt (DT)
[   28.782182] ==================================================================

[   26.319872] ==================================================================
[   26.320444] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   26.320444] 
[   26.320907] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#148):
[   26.321624]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   26.321946]  kunit_try_run_case+0x1a5/0x480
[   26.322257]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.322456]  kthread+0x337/0x6f0
[   26.322601]  ret_from_fork+0x116/0x1d0
[   26.322753]  ret_from_fork_asm+0x1a/0x30
[   26.322997] 
[   26.323111] kfence-#148: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   26.323111] 
[   26.323661] allocated by task 343 on cpu 1 at 26.319554s (0.004104s ago):
[   26.323972]  test_alloc+0x364/0x10f0
[   26.324442]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   26.325322]  kunit_try_run_case+0x1a5/0x480
[   26.325708]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.326134]  kthread+0x337/0x6f0
[   26.326435]  ret_from_fork+0x116/0x1d0
[   26.326773]  ret_from_fork_asm+0x1a/0x30
[   26.327204] 
[   26.327315] freed by task 343 on cpu 1 at 26.319721s (0.007591s ago):
[   26.327816]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   26.328083]  kunit_try_run_case+0x1a5/0x480
[   26.328498]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.328906]  kthread+0x337/0x6f0
[   26.329244]  ret_from_fork+0x116/0x1d0
[   26.329585]  ret_from_fork_asm+0x1a/0x30
[   26.329949] 
[   26.330097] CPU: 1 UID: 0 PID: 343 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   26.330819] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.331215] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.331799] ==================================================================