Hay
Date
June 17, 2025, 3:39 p.m.

Environment
qemu-arm64
qemu-i386
qemu-x86_64

[  104.196694] ==================================================================
[  104.197655] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x150/0x1d8
[  104.197655] 
[  104.199022] Corrupted memory at 0x00000000e2ebab1d [ ! . . . . . . ] (in kfence-#220):
[  104.201332]  test_kmalloc_aligned_oob_write+0x150/0x1d8
[  104.202344]  kunit_try_run_case+0x114/0x298
[  104.203631]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  104.204598]  kthread+0x18c/0x1a8
[  104.205038]  ret_from_fork+0x10/0x20
[  104.205399] 
[  104.205746] kfence-#220: 0x00000000e4091a69-0x0000000065e9fa06, size=73, cache=kmalloc-96
[  104.205746] 
[  104.206812] allocated by task 266 on cpu 0 at 104.195910s:
[  104.207827]  test_alloc+0x228/0x3e8
[  104.208982]  test_kmalloc_aligned_oob_write+0xb4/0x1d8
[  104.210551]  kunit_try_run_case+0x114/0x298
[  104.212256]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  104.213977]  kthread+0x18c/0x1a8
[  104.214943]  ret_from_fork+0x10/0x20
[  104.216212] 
[  104.216701] freed by task 266 on cpu 0 at 104.196233s:
[  104.217917]  test_kmalloc_aligned_oob_write+0x150/0x1d8
[  104.218723]  kunit_try_run_case+0x114/0x298
[  104.219517]  kunit_generic_run_threadfn_adapter+0x38/0x60
[  104.220523]  kthread+0x18c/0x1a8
[  104.221036]  ret_from_fork+0x10/0x20
[  104.221387] 
[  104.221819] CPU: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[  104.223090] Hardware name: linux,dummy-virt (DT)
[  104.223819] ==================================================================


[   21.176503] ==================================================================
[   21.176789] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x9f/0x140
[   21.176789] 
[   21.177129] Corrupted memory at 0x(ptrval) [ ! . . . . . . ] (in kfence-#85):
[   21.177447]  test_kmalloc_aligned_oob_write+0x9f/0x140
[   21.177750]  kunit_try_run_case+0x8a/0x1c4
[   21.177998]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   21.178159]  kthread+0xe0/0x108
[   21.178383]  ret_from_fork+0x40/0x4c
[   21.178515]  ret_from_fork_asm+0x12/0x18
[   21.178728]  restore_all_switch_stack+0x0/0xc3
[   21.178950] 
[   21.179022] kfence-#85: 0x(ptrval)-0x(ptrval), size=73, cache=kmalloc-96
[   21.179022] 
[   21.179502] allocated by task 166 on cpu 1 at 21.176259s:
[   21.179812]  test_alloc+0x153/0x2d4
[   21.180343]  test_kmalloc_aligned_oob_write+0x48/0x140
[   21.180784]  kunit_try_run_case+0x8a/0x1c4
[   21.180980]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   21.181124]  kthread+0xe0/0x108
[   21.181222]  ret_from_fork+0x40/0x4c
[   21.181329]  ret_from_fork_asm+0x12/0x18
[   21.181441]  restore_all_switch_stack+0x0/0xc3
[   21.181566] 
[   21.181624] freed by task 166 on cpu 1 at 21.176365s:
[   21.181793]  test_kmalloc_aligned_oob_write+0x9f/0x140
[   21.181924]  kunit_try_run_case+0x8a/0x1c4
[   21.182045]  kunit_generic_run_threadfn_adapter+0x16/0x20
[   21.182185]  kthread+0xe0/0x108
[   21.182252]  ret_from_fork+0x40/0x4c
[   21.182306]  ret_from_fork_asm+0x12/0x18
[   21.182363]  restore_all_switch_stack+0x0/0xc3
[   21.182427] 
[   21.182464] CPU: 1 PID: 166 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   21.182574] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.182687] ==================================================================


[   42.809289] ==================================================================
[   42.809793] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x158/0x1f0
[   42.809793] 
[   42.810254] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . ] (in kfence-#142):
[   42.810917]  test_kmalloc_aligned_oob_write+0x158/0x1f0
[   42.811498]  kunit_try_run_case+0x120/0x290
[   42.811990]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   42.812581]  kthread+0x19e/0x1e0
[   42.813004]  ret_from_fork+0x41/0x70
[   42.813226]  ret_from_fork_asm+0x1b/0x30
[   42.813514] 
[   42.813649] kfence-#142: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   42.813649] 
[   42.814203] allocated by task 281 on cpu 0 at 42.808946s:
[   42.814561]  test_alloc+0x2ad/0x8e0
[   42.814935]  test_kmalloc_aligned_oob_write+0xc0/0x1f0
[   42.815250]  kunit_try_run_case+0x120/0x290
[   42.815565]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   42.815935]  kthread+0x19e/0x1e0
[   42.816140]  ret_from_fork+0x41/0x70
[   42.816416]  ret_from_fork_asm+0x1b/0x30
[   42.816672] 
[   42.816788] freed by task 281 on cpu 0 at 42.809076s:
[   42.817158]  test_kmalloc_aligned_oob_write+0x158/0x1f0
[   42.817529]  kunit_try_run_case+0x120/0x290
[   42.817830]  kunit_generic_run_threadfn_adapter+0x33/0x50
[   42.818216]  kthread+0x19e/0x1e0
[   42.818439]  ret_from_fork+0x41/0x70
[   42.818715]  ret_from_fork_asm+0x1b/0x30
[   42.819080] 
[   42.819208] CPU: 0 PID: 281 Comm: kunit_try_catch Tainted: G    B            N 6.6.94-rc1 #1
[   42.819683] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   42.820176] ==================================================================