Hay
Date
May 12, 2025, 11:48 a.m.

Environment
qemu-arm64
qemu-x86_64

[   27.586843] ==================================================================
[   27.586938] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.586938] 
[   27.587004] Corrupted memory at 0x0000000023a7d5e2 [ ! . . . . . . . . . . . . . . . ] (in kfence-#165):
[   27.587336]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.587386]  kunit_try_run_case+0x170/0x3f0
[   27.587429]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.587472]  kthread+0x328/0x630
[   27.587512]  ret_from_fork+0x10/0x20
[   27.587549] 
[   27.587576] kfence-#165: 0x00000000a23a880c-0x000000004de97bd3, size=73, cache=kmalloc-96
[   27.587576] 
[   27.587631] allocated by task 325 on cpu 1 at 27.586466s (0.001161s ago):
[   27.587696]  test_alloc+0x29c/0x628
[   27.587738]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   27.587781]  kunit_try_run_case+0x170/0x3f0
[   27.587820]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.587861]  kthread+0x328/0x630
[   27.587900]  ret_from_fork+0x10/0x20
[   27.587939] 
[   27.587963] freed by task 325 on cpu 1 at 27.586670s (0.001289s ago):
[   27.588024]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.588080]  kunit_try_run_case+0x170/0x3f0
[   27.588120]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.588162]  kthread+0x328/0x630
[   27.588201]  ret_from_fork+0x10/0x20
[   27.588240] 
[   27.588282] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   27.588367] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.588397] Hardware name: linux,dummy-virt (DT)
[   27.588431] ==================================================================

[   30.170121] ==================================================================
[   30.170574] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   30.170574] 
[   30.170959] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#161):
[   30.172115]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   30.172468]  kunit_try_run_case+0x1a5/0x480
[   30.172673]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.173194]  kthread+0x337/0x6f0
[   30.173488]  ret_from_fork+0x116/0x1d0
[   30.173701]  ret_from_fork_asm+0x1a/0x30
[   30.174006] 
[   30.174171] kfence-#161: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   30.174171] 
[   30.174614] allocated by task 342 on cpu 0 at 30.169702s (0.004907s ago):
[   30.175180]  test_alloc+0x364/0x10f0
[   30.175473]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   30.175860]  kunit_try_run_case+0x1a5/0x480
[   30.176211]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.176505]  kthread+0x337/0x6f0
[   30.176745]  ret_from_fork+0x116/0x1d0
[   30.177056]  ret_from_fork_asm+0x1a/0x30
[   30.177374] 
[   30.177496] freed by task 342 on cpu 0 at 30.169936s (0.007555s ago):
[   30.177775]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   30.178004]  kunit_try_run_case+0x1a5/0x480
[   30.178446]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.178887]  kthread+0x337/0x6f0
[   30.179328]  ret_from_fork+0x116/0x1d0
[   30.179668]  ret_from_fork_asm+0x1a/0x30
[   30.180019] 
[   30.180265] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   30.181043] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.181271] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.181598] ==================================================================