Hay
Date
June 7, 2025, 10:40 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.159662] ==================================================================
[   34.159843] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   34.159843] 
[   34.159987] Corrupted memory at 0x00000000077a4531 [ ! . . . . . . . . . . . . . . . ] (in kfence-#190):
[   34.160344]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   34.160434]  kunit_try_run_case+0x170/0x3f0
[   34.160496]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.160551]  kthread+0x328/0x630
[   34.160601]  ret_from_fork+0x10/0x20
[   34.160649] 
[   34.160678] kfence-#190: 0x000000006388906c-0x00000000a4d7bf5d, size=73, cache=kmalloc-96
[   34.160678] 
[   34.160745] allocated by task 329 on cpu 1 at 34.159240s (0.001500s ago):
[   34.160827]  test_alloc+0x29c/0x628
[   34.160876]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   34.160925]  kunit_try_run_case+0x170/0x3f0
[   34.160973]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.161025]  kthread+0x328/0x630
[   34.161070]  ret_from_fork+0x10/0x20
[   34.161116] 
[   34.161143] freed by task 329 on cpu 1 at 34.159479s (0.001660s ago):
[   34.161218]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   34.161270]  kunit_try_run_case+0x170/0x3f0
[   34.161316]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.161369]  kthread+0x328/0x630
[   34.161424]  ret_from_fork+0x10/0x20
[   34.161476] 
[   34.161534] CPU: 1 UID: 0 PID: 329 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT 
[   34.161630] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.161663] Hardware name: linux,dummy-virt (DT)
[   34.161703] ==================================================================

[   26.112632] ==================================================================
[   26.113153] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   26.113153] 
[   26.113591] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#153):
[   26.114521]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   26.114994]  kunit_try_run_case+0x1a5/0x480
[   26.115198]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.115719]  kthread+0x337/0x6f0
[   26.116022]  ret_from_fork+0x41/0x80
[   26.116281]  ret_from_fork_asm+0x1a/0x30
[   26.116587] 
[   26.116708] kfence-#153: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   26.116708] 
[   26.117464] allocated by task 345 on cpu 1 at 26.112241s (0.005216s ago):
[   26.117916]  test_alloc+0x364/0x10f0
[   26.118288]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   26.118517]  kunit_try_run_case+0x1a5/0x480
[   26.119047]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.119370]  kthread+0x337/0x6f0
[   26.119554]  ret_from_fork+0x41/0x80
[   26.119758]  ret_from_fork_asm+0x1a/0x30
[   26.119959] 
[   26.120096] freed by task 345 on cpu 1 at 26.112450s (0.007640s ago):
[   26.120648]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   26.121059]  kunit_try_run_case+0x1a5/0x480
[   26.121406]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   26.122000]  kthread+0x337/0x6f0
[   26.122313]  ret_from_fork+0x41/0x80
[   26.122688]  ret_from_fork_asm+0x1a/0x30
[   26.122970] 
[   26.123163] CPU: 1 UID: 0 PID: 345 Comm: kunit_try_catch Tainted: G    B            N  6.15.2-rc1 #1 PREEMPT(voluntary) 
[   26.123597] Tainted: [B]=BAD_PAGE, [N]=TEST
[   26.123919] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   26.124667] ==================================================================