Hay
Date
June 5, 2025, 7:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   38.060788] ==================================================================
[   38.060882] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   38.060882] 
[   38.060958] Corrupted memory at 0x00000000882550f7 [ ! . . . . . . . . . . . . . . . ] (in kfence-#182):
[   38.061368]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   38.061437]  kunit_try_run_case+0x170/0x3f0
[   38.061493]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.061550]  kthread+0x328/0x630
[   38.061597]  ret_from_fork+0x10/0x20
[   38.061648] 
[   38.061679] kfence-#182: 0x0000000041de3c5d-0x00000000916ddcc8, size=73, cache=kmalloc-96
[   38.061679] 
[   38.061748] allocated by task 325 on cpu 0 at 38.060454s (0.001289s ago):
[   38.061823]  test_alloc+0x29c/0x628
[   38.061876]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   38.061932]  kunit_try_run_case+0x170/0x3f0
[   38.061982]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.062038]  kthread+0x328/0x630
[   38.062083]  ret_from_fork+0x10/0x20
[   38.062133] 
[   38.062164] freed by task 325 on cpu 0 at 38.060674s (0.001485s ago):
[   38.062246]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   38.062300]  kunit_try_run_case+0x170/0x3f0
[   38.062374]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.062435]  kthread+0x328/0x630
[   38.062480]  ret_from_fork+0x10/0x20
[   38.062535] 
[   38.062585] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT 
[   38.062689] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.062727] Hardware name: linux,dummy-virt (DT)
[   38.062772] ==================================================================


[   21.508522] ==================================================================
[   21.508850] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.508850] 
[   21.509184] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#113):
[   21.509746]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.509936]  kunit_try_run_case+0x1a5/0x480
[   21.510084]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.510271]  kthread+0x337/0x6f0
[   21.510409]  ret_from_fork+0x116/0x1d0
[   21.510557]  ret_from_fork_asm+0x1a/0x30
[   21.511202] 
[   21.511291] kfence-#113: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   21.511291] 
[   21.511607] allocated by task 342 on cpu 0 at 21.508275s (0.003330s ago):
[   21.511836]  test_alloc+0x364/0x10f0
[   21.512028]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   21.512273]  kunit_try_run_case+0x1a5/0x480
[   21.512418]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.512629]  kthread+0x337/0x6f0
[   21.512750]  ret_from_fork+0x116/0x1d0
[   21.513298]  ret_from_fork_asm+0x1a/0x30
[   21.513456] 
[   21.513530] freed by task 342 on cpu 0 at 21.508411s (0.005116s ago):
[   21.513797]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   21.514061]  kunit_try_run_case+0x1a5/0x480
[   21.514281]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   21.514489]  kthread+0x337/0x6f0
[   21.514613]  ret_from_fork+0x116/0x1d0
[   21.515010]  ret_from_fork_asm+0x1a/0x30
[   21.515159] 
[   21.515259] CPU: 0 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250605 #1 PREEMPT(voluntary) 
[   21.515782] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.516065] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   21.516474] ==================================================================