Hay
Date
July 9, 2025, 11:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   27.536368] ==================================================================
[   27.536463] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.536463] 
[   27.536530] Corrupted memory at 0x00000000bec8d943 [ ! . . . . . . . . . . . . . . . ] (in kfence-#153):
[   27.536840]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.536890]  kunit_try_run_case+0x170/0x3f0
[   27.536935]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.536980]  kthread+0x328/0x630
[   27.537021]  ret_from_fork+0x10/0x20
[   27.537060] 
[   27.537084] kfence-#153: 0x00000000234de302-0x000000002275fca9, size=73, cache=kmalloc-96
[   27.537084] 
[   27.537153] allocated by task 325 on cpu 0 at 27.536102s (0.001047s ago):
[   27.537217]  test_alloc+0x29c/0x628
[   27.537259]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   27.537302]  kunit_try_run_case+0x170/0x3f0
[   27.537341]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.537384]  kthread+0x328/0x630
[   27.537421]  ret_from_fork+0x10/0x20
[   27.537459] 
[   27.537482] freed by task 325 on cpu 0 at 27.536268s (0.001210s ago):
[   27.537547]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   27.537591]  kunit_try_run_case+0x170/0x3f0
[   27.537630]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.537673]  kthread+0x328/0x630
[   27.537709]  ret_from_fork+0x10/0x20
[   27.537749] 
[   27.537792] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   27.537871] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.537902] Hardware name: linux,dummy-virt (DT)
[   27.537936] ==================================================================

[   23.835550] ==================================================================
[   23.835965] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.835965] 
[   23.836394] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#128):
[   23.837074]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.837310]  kunit_try_run_case+0x1a5/0x480
[   23.837510]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.837731]  kthread+0x337/0x6f0
[   23.837930]  ret_from_fork+0x116/0x1d0
[   23.838141]  ret_from_fork_asm+0x1a/0x30
[   23.838335] 
[   23.838424] kfence-#128: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   23.838424] 
[   23.838850] allocated by task 342 on cpu 1 at 23.835300s (0.003548s ago):
[   23.839185]  test_alloc+0x364/0x10f0
[   23.839380]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   23.839595]  kunit_try_run_case+0x1a5/0x480
[   23.839835]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.840069]  kthread+0x337/0x6f0
[   23.840294]  ret_from_fork+0x116/0x1d0
[   23.840460]  ret_from_fork_asm+0x1a/0x30
[   23.840679] 
[   23.840769] freed by task 342 on cpu 1 at 23.835433s (0.005333s ago):
[   23.841044]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.841296]  kunit_try_run_case+0x1a5/0x480
[   23.841498]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.841767]  kthread+0x337/0x6f0
[   23.841939]  ret_from_fork+0x116/0x1d0
[   23.842161]  ret_from_fork_asm+0x1a/0x30
[   23.842306] 
[   23.842413] CPU: 1 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   23.842936] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.843178] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.843545] ==================================================================