Hay
Date
May 13, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.859739] ==================================================================
[   28.859868] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.859868] 
[   28.859947] Corrupted memory at 0x00000000206b9873 [ ! . . . . . . . . . . . . . . . ] (in kfence-#157):
[   28.860322]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.860382]  kunit_try_run_case+0x170/0x3f0
[   28.860429]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.860479]  kthread+0x328/0x630
[   28.860525]  ret_from_fork+0x10/0x20
[   28.860570] 
[   28.860598] kfence-#157: 0x00000000077a233e-0x00000000cf941849, size=73, cache=kmalloc-96
[   28.860598] 
[   28.860663] allocated by task 325 on cpu 0 at 28.859326s (0.001332s ago):
[   28.860734]  test_alloc+0x29c/0x628
[   28.860782]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   28.860831]  kunit_try_run_case+0x170/0x3f0
[   28.860876]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.860925]  kthread+0x328/0x630
[   28.860977]  ret_from_fork+0x10/0x20
[   28.861030] 
[   28.861059] freed by task 325 on cpu 0 at 28.859579s (0.001476s ago):
[   28.861131]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.861181]  kunit_try_run_case+0x170/0x3f0
[   28.861226]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.861275]  kthread+0x328/0x630
[   28.861320]  ret_from_fork+0x10/0x20
[   28.861366] 
[   28.861422] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT 
[   28.861518] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.861554] Hardware name: linux,dummy-virt (DT)
[   28.861594] ==================================================================

[   22.547091] ==================================================================
[   22.547557] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.547557] 
[   22.547962] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#130):
[   22.549057]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.549333]  kunit_try_run_case+0x1a5/0x480
[   22.549594]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.550074]  kthread+0x337/0x6f0
[   22.550377]  ret_from_fork+0x116/0x1d0
[   22.550562]  ret_from_fork_asm+0x1a/0x30
[   22.550779] 
[   22.551101] kfence-#130: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.551101] 
[   22.551640] allocated by task 342 on cpu 0 at 22.546808s (0.004830s ago):
[   22.551942]  test_alloc+0x364/0x10f0
[   22.552361]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   22.552600]  kunit_try_run_case+0x1a5/0x480
[   22.552943]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.553277]  kthread+0x337/0x6f0
[   22.553468]  ret_from_fork+0x116/0x1d0
[   22.553788]  ret_from_fork_asm+0x1a/0x30
[   22.553989] 
[   22.554084] freed by task 342 on cpu 0 at 22.546949s (0.007133s ago):
[   22.554588]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.554936]  kunit_try_run_case+0x1a5/0x480
[   22.555220]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.555482]  kthread+0x337/0x6f0
[   22.555824]  ret_from_fork+0x116/0x1d0
[   22.556097]  ret_from_fork_asm+0x1a/0x30
[   22.556378] 
[   22.556542] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   22.557050] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.557494] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.557966] ==================================================================