Hay
Date
June 19, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   41.238731] ==================================================================
[   41.238909] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   41.238909] 
[   41.239004] Corrupted memory at 0x000000006d31bfa8 [ ! . . . . . . . . . . . . . . . ] (in kfence-#170):
[   41.239358]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   41.239417]  kunit_try_run_case+0x170/0x3f0
[   41.239469]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.239519]  kthread+0x328/0x630
[   41.239562]  ret_from_fork+0x10/0x20
[   41.239606] 
[   41.239637] kfence-#170: 0x00000000e81df24f-0x00000000dfa042b9, size=73, cache=kmalloc-96
[   41.239637] 
[   41.239702] allocated by task 336 on cpu 1 at 41.238285s (0.001411s ago):
[   41.239778]  test_alloc+0x29c/0x628
[   41.239828]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   41.239886]  kunit_try_run_case+0x170/0x3f0
[   41.239938]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.239987]  kthread+0x328/0x630
[   41.240028]  ret_from_fork+0x10/0x20
[   41.240073] 
[   41.240101] freed by task 336 on cpu 1 at 41.238546s (0.001551s ago):
[   41.240174]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   41.240225]  kunit_try_run_case+0x170/0x3f0
[   41.240270]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.240318]  kthread+0x328/0x630
[   41.240357]  ret_from_fork+0x10/0x20
[   41.240402] 
[   41.240460] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   41.240556] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.240591] Hardware name: linux,dummy-virt (DT)
[   41.240632] ==================================================================

[   39.069029] ==================================================================
[   39.069513] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   39.069513] 
[   39.069842] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#174):
[   39.071003]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   39.071306]  kunit_try_run_case+0x1a5/0x480
[   39.071715]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   39.072274]  kthread+0x337/0x6f0
[   39.072578]  ret_from_fork+0x116/0x1d0
[   39.072807]  ret_from_fork_asm+0x1a/0x30
[   39.073107] 
[   39.073300] kfence-#174: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   39.073300] 
[   39.074112] allocated by task 354 on cpu 1 at 39.068627s (0.005480s ago):
[   39.074563]  test_alloc+0x364/0x10f0
[   39.074890]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   39.075298]  kunit_try_run_case+0x1a5/0x480
[   39.075578]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   39.075850]  kthread+0x337/0x6f0
[   39.076155]  ret_from_fork+0x116/0x1d0
[   39.076512]  ret_from_fork_asm+0x1a/0x30
[   39.076963] 
[   39.077078] freed by task 354 on cpu 1 at 39.068833s (0.008240s ago):
[   39.077564]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   39.078051]  kunit_try_run_case+0x1a5/0x480
[   39.078464]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   39.078801]  kthread+0x337/0x6f0
[   39.079171]  ret_from_fork+0x116/0x1d0
[   39.079390]  ret_from_fork_asm+0x1a/0x30
[   39.079621] 
[   39.079837] CPU: 1 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   39.080951] Tainted: [B]=BAD_PAGE, [N]=TEST
[   39.081585] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   39.082059] ==================================================================