Hay
Date
July 15, 2025, 11:35 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   93.528887] ==================================================================
[   93.529030] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   93.529030] 
[   93.529179] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#214):
[   93.532862]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   93.538069]  kunit_try_run_case+0x170/0x3f0
[   93.542235]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   93.547704]  kthread+0x328/0x630
[   93.550916]  ret_from_fork+0x10/0x20
[   93.554475] 
[   93.555954] kfence-#214: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   93.555954] 
[   93.565590] allocated by task 406 on cpu 4 at 93.528808s (0.036780s ago):
[   93.572375]  test_alloc+0x29c/0x628
[   93.575829]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   93.580950]  kunit_try_run_case+0x170/0x3f0
[   93.585117]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   93.590586]  kthread+0x328/0x630
[   93.593797]  ret_from_fork+0x10/0x20
[   93.597358] 
[   93.598836] freed by task 406 on cpu 4 at 93.528823s (0.070009s ago):
[   93.605276]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   93.610464]  kunit_try_run_case+0x170/0x3f0
[   93.614630]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   93.620099]  kthread+0x328/0x630
[   93.623311]  ret_from_fork+0x10/0x20
[   93.626871] 
[   93.628357] CPU: 4 UID: 0 PID: 406 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   93.639469] Tainted: [B]=BAD_PAGE, [N]=TEST
[   93.643623] Hardware name: WinLink E850-96 board (DT)
[   93.648660] ==================================================================

[   42.378296] ==================================================================
[   42.378388] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   42.378388] 
[   42.378471] Corrupted memory at 0x00000000352cff21 [ ! . . . . . . . . . . . . . . . ] (in kfence-#199):
[   42.378782]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   42.378833]  kunit_try_run_case+0x170/0x3f0
[   42.378873]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   42.378916]  kthread+0x328/0x630
[   42.378953]  ret_from_fork+0x10/0x20
[   42.378994] 
[   42.379017] kfence-#199: 0x000000004d68ca4b-0x000000009d860e4e, size=73, cache=kmalloc-96
[   42.379017] 
[   42.379070] allocated by task 357 on cpu 0 at 42.378061s (0.001005s ago):
[   42.379142]  test_alloc+0x29c/0x628
[   42.379183]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   42.379227]  kunit_try_run_case+0x170/0x3f0
[   42.379269]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   42.379312]  kthread+0x328/0x630
[   42.379349]  ret_from_fork+0x10/0x20
[   42.379390] 
[   42.379413] freed by task 357 on cpu 0 at 42.378204s (0.001205s ago):
[   42.379487]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   42.379532]  kunit_try_run_case+0x170/0x3f0
[   42.379572]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   42.379615]  kthread+0x328/0x630
[   42.379652]  ret_from_fork+0x10/0x20
[   42.379691] 
[   42.379733] CPU: 0 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT 
[   42.379812] Tainted: [B]=BAD_PAGE, [N]=TEST
[   42.379842] Hardware name: linux,dummy-virt (DT)
[   42.379875] ==================================================================

[   35.702107] ==================================================================
[   35.702498] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   35.702498] 
[   35.702915] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#158):
[   35.704202]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   35.704414]  kunit_try_run_case+0x1a5/0x480
[   35.704820]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.705121]  kthread+0x337/0x6f0
[   35.705270]  ret_from_fork+0x116/0x1d0
[   35.705584]  ret_from_fork_asm+0x1a/0x30
[   35.705768] 
[   35.705937] kfence-#158: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   35.705937] 
[   35.706516] allocated by task 373 on cpu 1 at 35.701836s (0.004673s ago):
[   35.706863]  test_alloc+0x364/0x10f0
[   35.707027]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   35.707232]  kunit_try_run_case+0x1a5/0x480
[   35.707416]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.707652]  kthread+0x337/0x6f0
[   35.708135]  ret_from_fork+0x116/0x1d0
[   35.708296]  ret_from_fork_asm+0x1a/0x30
[   35.708496] 
[   35.708658] freed by task 373 on cpu 1 at 35.701972s (0.006684s ago):
[   35.709128]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   35.709337]  kunit_try_run_case+0x1a5/0x480
[   35.709664]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   35.709927]  kthread+0x337/0x6f0
[   35.710217]  ret_from_fork+0x116/0x1d0
[   35.710448]  ret_from_fork_asm+0x1a/0x30
[   35.710733] 
[   35.710845] CPU: 1 UID: 0 PID: 373 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) 
[   35.711481] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.711674] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   35.712042] ==================================================================