Hay
Date
May 15, 2025, 10:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   28.382492] ==================================================================
[   28.382590] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.382590] 
[   28.382656] Corrupted memory at 0x0000000062639798 [ ! . . . . . . . . . . . . . . . ] (in kfence-#149):
[   28.382983]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.383035]  kunit_try_run_case+0x170/0x3f0
[   28.383077]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.383119]  kthread+0x328/0x630
[   28.383176]  ret_from_fork+0x10/0x20
[   28.383216] 
[   28.383242] kfence-#149: 0x0000000053595d44-0x0000000096fad8d4, size=73, cache=kmalloc-96
[   28.383242] 
[   28.383295] allocated by task 325 on cpu 0 at 28.382219s (0.001072s ago):
[   28.383357]  test_alloc+0x29c/0x628
[   28.383396]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   28.383439]  kunit_try_run_case+0x170/0x3f0
[   28.383478]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.383522]  kthread+0x328/0x630
[   28.383561]  ret_from_fork+0x10/0x20
[   28.383601] 
[   28.383626] freed by task 325 on cpu 0 at 28.382352s (0.001270s ago):
[   28.383686]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.383729]  kunit_try_run_case+0x170/0x3f0
[   28.383768]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.383810]  kthread+0x328/0x630
[   28.383850]  ret_from_fork+0x10/0x20
[   28.383890] 
[   28.383934] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   28.384021] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.384052] Hardware name: linux,dummy-virt (DT)
[   28.384087] ==================================================================


[   27.051369] ==================================================================
[   27.051711] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   27.051711] 
[   27.051918] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#161):
[   27.052490]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   27.052709]  kunit_try_run_case+0x1a5/0x480
[   27.052908]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.053138]  kthread+0x337/0x6f0
[   27.053310]  ret_from_fork+0x116/0x1d0
[   27.053401]  ret_from_fork_asm+0x1a/0x30
[   27.053492] 
[   27.053547] kfence-#161: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   27.053547] 
[   27.053708] allocated by task 343 on cpu 1 at 27.051035s (0.002671s ago):
[   27.053965]  test_alloc+0x364/0x10f0
[   27.054152]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   27.054409]  kunit_try_run_case+0x1a5/0x480
[   27.054594]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.054802]  kthread+0x337/0x6f0
[   27.054958]  ret_from_fork+0x116/0x1d0
[   27.055118]  ret_from_fork_asm+0x1a/0x30
[   27.055269] 
[   27.055333] freed by task 343 on cpu 1 at 27.051205s (0.004124s ago):
[   27.055529]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   27.055716]  kunit_try_run_case+0x1a5/0x480
[   27.055810]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.055913]  kthread+0x337/0x6f0
[   27.055989]  ret_from_fork+0x116/0x1d0
[   27.056069]  ret_from_fork_asm+0x1a/0x30
[   27.056276] 
[   27.056398] CPU: 1 UID: 0 PID: 343 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) 
[   27.056826] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.056998] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.057395] ==================================================================