Hay
Date
July 3, 2025, 3:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   25.978828] ==================================================================
[   25.978919] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   25.978919] 
[   25.978996] Corrupted memory at 0x00000000c78a63be [ ! . . . . . . . . . . . . . . . ] (in kfence-#149):
[   25.979304]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   25.979352]  kunit_try_run_case+0x170/0x3f0
[   25.979398]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.979443]  kthread+0x328/0x630
[   25.979484]  ret_from_fork+0x10/0x20
[   25.979523] 
[   25.979548] kfence-#149: 0x000000003ca5e7e8-0x000000006adecb7a, size=73, cache=kmalloc-96
[   25.979548] 
[   25.979602] allocated by task 328 on cpu 1 at 25.978576s (0.001023s ago):
[   25.979664]  test_alloc+0x29c/0x628
[   25.979703]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   25.979744]  kunit_try_run_case+0x170/0x3f0
[   25.979785]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.979829]  kthread+0x328/0x630
[   25.979868]  ret_from_fork+0x10/0x20
[   25.979907] 
[   25.979931] freed by task 328 on cpu 1 at 25.978729s (0.001198s ago):
[   25.980000]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   25.980041]  kunit_try_run_case+0x170/0x3f0
[   25.980082]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   25.980127]  kthread+0x328/0x630
[   25.980165]  ret_from_fork+0x10/0x20
[   25.980204] 
[   25.980251] CPU: 1 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT 
[   25.980328] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.980359] Hardware name: linux,dummy-virt (DT)
[   25.980394] ==================================================================

[   22.921900] ==================================================================
[   22.922323] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.922323] 
[   22.922702] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#133):
[   22.923307]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.923527]  kunit_try_run_case+0x1a5/0x480
[   22.923772]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.923953]  kthread+0x337/0x6f0
[   22.924077]  ret_from_fork+0x41/0x80
[   22.924278]  ret_from_fork_asm+0x1a/0x30
[   22.924484] 
[   22.924586] kfence-#133: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   22.924586] 
[   22.924998] allocated by task 345 on cpu 0 at 22.921616s (0.003379s ago):
[   22.925321]  test_alloc+0x364/0x10f0
[   22.925507]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   22.925754]  kunit_try_run_case+0x1a5/0x480
[   22.925971]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.926216]  kthread+0x337/0x6f0
[   22.926390]  ret_from_fork+0x41/0x80
[   22.926522]  ret_from_fork_asm+0x1a/0x30
[   22.926739] 
[   22.926838] freed by task 345 on cpu 0 at 22.921758s (0.005077s ago):
[   22.927148]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   22.927385]  kunit_try_run_case+0x1a5/0x480
[   22.927566]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   22.927849]  kthread+0x337/0x6f0
[   22.927968]  ret_from_fork+0x41/0x80
[   22.928155]  ret_from_fork_asm+0x1a/0x30
[   22.928368] 
[   22.928492] CPU: 0 UID: 0 PID: 345 Comm: kunit_try_catch Tainted: G    B            N  6.15.5-rc1 #1 PREEMPT(voluntary) 
[   22.928908] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.929049] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   22.929413] ==================================================================