Hay
Date
June 18, 2025, 6:43 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.891482] ==================================================================
[   32.891617] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.891617] 
[   32.891699] Corrupted memory at 0x000000006cc145f8 [ ! . . . . . . . . . . . . . . . ] (in kfence-#180):
[   32.892059]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.892118]  kunit_try_run_case+0x170/0x3f0
[   32.892167]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.892215]  kthread+0x328/0x630
[   32.892260]  ret_from_fork+0x10/0x20
[   32.892303] 
[   32.892331] kfence-#180: 0x00000000aa429175-0x00000000a243a04d, size=73, cache=kmalloc-96
[   32.892331] 
[   32.892397] allocated by task 335 on cpu 1 at 32.890774s (0.001619s ago):
[   32.892471]  test_alloc+0x29c/0x628
[   32.892520]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   32.892594]  kunit_try_run_case+0x170/0x3f0
[   32.892642]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.892691]  kthread+0x328/0x630
[   32.892732]  ret_from_fork+0x10/0x20
[   32.892775] 
[   32.892801] freed by task 335 on cpu 1 at 32.890958s (0.001838s ago):
[   32.892870]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   32.892920]  kunit_try_run_case+0x170/0x3f0
[   32.892963]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.893008]  kthread+0x328/0x630
[   32.893224]  ret_from_fork+0x10/0x20
[   32.893269] 
[   32.893321] CPU: 1 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc2-next-20250618 #1 PREEMPT 
[   32.893413] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   32.893448] Hardware name: linux,dummy-virt (DT)
[   32.893484] ==================================================================

[   21.434006] ==================================================================
[   21.434378] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.434378] 
[   21.434861] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#121):
[   21.435337]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.435505]  kunit_try_run_case+0x1a5/0x480
[   21.435644]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.435805]  kthread+0x337/0x6f0
[   21.435919]  ret_from_fork+0x116/0x1d0
[   21.436042]  ret_from_fork_asm+0x1a/0x30
[   21.436171] 
[   21.436246] kfence-#121: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   21.436246] 
[   21.436519] allocated by task 351 on cpu 1 at 21.433750s (0.002766s ago):
[   21.436734]  test_alloc+0x364/0x10f0
[   21.436865]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   21.437030]  kunit_try_run_case+0x1a5/0x480
[   21.437169]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.437375]  kthread+0x337/0x6f0
[   21.437531]  ret_from_fork+0x116/0x1d0
[   21.437712]  ret_from_fork_asm+0x1a/0x30
[   21.437905] 
[   21.437992] freed by task 351 on cpu 1 at 21.433893s (0.004097s ago):
[   21.438209]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.438367]  kunit_try_run_case+0x1a5/0x480
[   21.438500]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.438661]  kthread+0x337/0x6f0
[   21.438771]  ret_from_fork+0x116/0x1d0
[   21.438891]  ret_from_fork_asm+0x1a/0x30
[   21.439051] 
[   21.439161] CPU: 1 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) 
[   21.439978] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.440169] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.440652] ==================================================================