Hay
Date
June 20, 2025, 12:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   45.201807] ==================================================================
[   45.202002] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   45.202002] 
[   45.202090] Corrupted memory at 0x00000000ba9ebc96 [ ! . . . . . . . . . . . . . . . ] (in kfence-#205):
[   45.202451]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   45.202511]  kunit_try_run_case+0x170/0x3f0
[   45.202561]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.202636]  kthread+0x328/0x630
[   45.202694]  ret_from_fork+0x10/0x20
[   45.202743] 
[   45.202776] kfence-#205: 0x00000000c330d6d6-0x000000007767fccc, size=73, cache=kmalloc-96
[   45.202776] 
[   45.202840] allocated by task 336 on cpu 1 at 45.201322s (0.001513s ago):
[   45.202917]  test_alloc+0x29c/0x628
[   45.202966]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   45.203018]  kunit_try_run_case+0x170/0x3f0
[   45.203065]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.203116]  kthread+0x328/0x630
[   45.203156]  ret_from_fork+0x10/0x20
[   45.203201] 
[   45.203231] freed by task 336 on cpu 1 at 45.201633s (0.001594s ago):
[   45.203343]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   45.203412]  kunit_try_run_case+0x170/0x3f0
[   45.203475]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   45.203526]  kthread+0x328/0x630
[   45.203569]  ret_from_fork+0x10/0x20
[   45.203626] 
[   45.203684] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT 
[   45.203780] Tainted: [B]=BAD_PAGE, [N]=TEST
[   45.203815] Hardware name: linux,dummy-virt (DT)
[   45.203858] ==================================================================

[   37.924596] ==================================================================
[   37.925009] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   37.925009] 
[   37.925298] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#159):
[   37.926436]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   37.926713]  kunit_try_run_case+0x1a5/0x480
[   37.927044]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.927425]  kthread+0x337/0x6f0
[   37.927657]  ret_from_fork+0x116/0x1d0
[   37.927853]  ret_from_fork_asm+0x1a/0x30
[   37.928153] 
[   37.928310] kfence-#159: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   37.928310] 
[   37.928820] allocated by task 354 on cpu 1 at 37.924159s (0.004654s ago):
[   37.929180]  test_alloc+0x364/0x10f0
[   37.929479]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   37.929675]  kunit_try_run_case+0x1a5/0x480
[   37.930021]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.930346]  kthread+0x337/0x6f0
[   37.930585]  ret_from_fork+0x116/0x1d0
[   37.930844]  ret_from_fork_asm+0x1a/0x30
[   37.931154] 
[   37.931338] freed by task 354 on cpu 1 at 37.924399s (0.006935s ago):
[   37.931712]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   37.931934]  kunit_try_run_case+0x1a5/0x480
[   37.932129]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   37.932566]  kthread+0x337/0x6f0
[   37.932870]  ret_from_fork+0x116/0x1d0
[   37.933173]  ret_from_fork_asm+0x1a/0x30
[   37.933517] 
[   37.933740] CPU: 1 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) 
[   37.934362] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.934672] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   37.934989] ==================================================================