Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   34.390636] ==================================================================
[   34.390812] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   34.390812] 
[   34.390894] Corrupted memory at 0x0000000051e7d182 [ ! . . . . . . . . . . . . . . . ] (in kfence-#191):
[   34.391244]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   34.391305]  kunit_try_run_case+0x170/0x3f0
[   34.391359]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.391411]  kthread+0x328/0x630
[   34.391458]  ret_from_fork+0x10/0x20
[   34.391504] 
[   34.391533] kfence-#191: 0x00000000d281e4f3-0x00000000f2c87577, size=73, cache=kmalloc-96
[   34.391533] 
[   34.391598] allocated by task 327 on cpu 1 at 34.390185s (0.001408s ago):
[   34.391673]  test_alloc+0x29c/0x628
[   34.391720]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   34.391782]  kunit_try_run_case+0x170/0x3f0
[   34.391830]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.391880]  kthread+0x328/0x630
[   34.391922]  ret_from_fork+0x10/0x20
[   34.391965] 
[   34.391992] freed by task 327 on cpu 1 at 34.390457s (0.001531s ago):
[   34.392060]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   34.392121]  kunit_try_run_case+0x170/0x3f0
[   34.392172]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.392222]  kthread+0x328/0x630
[   34.392265]  ret_from_fork+0x10/0x20
[   34.392310] 
[   34.392369] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   34.392466] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.392501] Hardware name: linux,dummy-virt (DT)
[   34.392539] ==================================================================

[   34.236035] ==================================================================
[   34.236672] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   34.236672] 
[   34.238374] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#171):
[   34.239835]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   34.240526]  kunit_try_run_case+0x1a5/0x480
[   34.241124]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.241650]  kthread+0x337/0x6f0
[   34.242008]  ret_from_fork+0x41/0x80
[   34.242946]  ret_from_fork_asm+0x1a/0x30
[   34.243378] 
[   34.243785] kfence-#171: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   34.243785] 
[   34.244814] allocated by task 345 on cpu 0 at 34.235665s (0.009143s ago):
[   34.245773]  test_alloc+0x364/0x10f0
[   34.246442]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   34.246933]  kunit_try_run_case+0x1a5/0x480
[   34.247633]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.248322]  kthread+0x337/0x6f0
[   34.248720]  ret_from_fork+0x41/0x80
[   34.249389]  ret_from_fork_asm+0x1a/0x30
[   34.250021] 
[   34.250338] freed by task 345 on cpu 0 at 34.235904s (0.014427s ago):
[   34.251187]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   34.251687]  kunit_try_run_case+0x1a5/0x480
[   34.252401]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   34.253057]  kthread+0x337/0x6f0
[   34.253433]  ret_from_fork+0x41/0x80
[   34.254058]  ret_from_fork_asm+0x1a/0x30
[   34.254562] 
[   34.254842] CPU: 0 UID: 0 PID: 345 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   34.256040] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.256623] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   34.257620] ==================================================================