Hay
Date
July 15, 2025, 2:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.445953] ==================================================================
[   28.446046] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.446046] 
[   28.446108] Corrupted memory at 0x00000000d208c000 [ ! . . . . . . . . . . . . . . . ] (in kfence-#147):
[   28.446437]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.446485]  kunit_try_run_case+0x170/0x3f0
[   28.446529]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.446573]  kthread+0x328/0x630
[   28.446615]  ret_from_fork+0x10/0x20
[   28.446654] 
[   28.446678] kfence-#147: 0x0000000029e18e68-0x00000000a96e3cc9, size=73, cache=kmalloc-96
[   28.446678] 
[   28.446734] allocated by task 327 on cpu 1 at 28.445719s (0.001011s ago):
[   28.446796]  test_alloc+0x29c/0x628
[   28.446835]  test_kmalloc_aligned_oob_write+0xbc/0x2c0
[   28.446877]  kunit_try_run_case+0x170/0x3f0
[   28.446918]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.446964]  kthread+0x328/0x630
[   28.447003]  ret_from_fork+0x10/0x20
[   28.447041] 
[   28.447065] freed by task 327 on cpu 1 at 28.445870s (0.001191s ago):
[   28.447125]  test_kmalloc_aligned_oob_write+0x214/0x2c0
[   28.447167]  kunit_try_run_case+0x170/0x3f0
[   28.447218]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.447262]  kthread+0x328/0x630
[   28.447302]  ret_from_fork+0x10/0x20
[   28.447342] 
[   28.447383] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT 
[   28.447462] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.447490] Hardware name: linux,dummy-virt (DT)
[   28.447521] ==================================================================

[   23.444279] ==================================================================
[   23.444656] BUG: KFENCE: memory corruption in test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.444656] 
[   23.445137] Corrupted memory at 0x(____ptrval____) [ ! . . . . . . . . . . . . . . . ] (in kfence-#141):
[   23.445688]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.446002]  kunit_try_run_case+0x1a5/0x480
[   23.446167]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.446426]  kthread+0x337/0x6f0
[   23.446573]  ret_from_fork+0x41/0x80
[   23.446761]  ret_from_fork_asm+0x1a/0x30
[   23.447002] 
[   23.447097] kfence-#141: 0x(____ptrval____)-0x(____ptrval____), size=73, cache=kmalloc-96
[   23.447097] 
[   23.447479] allocated by task 344 on cpu 1 at 23.444024s (0.003453s ago):
[   23.447763]  test_alloc+0x364/0x10f0
[   23.447946]  test_kmalloc_aligned_oob_write+0xc8/0x340
[   23.448120]  kunit_try_run_case+0x1a5/0x480
[   23.448327]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.448581]  kthread+0x337/0x6f0
[   23.448742]  ret_from_fork+0x41/0x80
[   23.448979]  ret_from_fork_asm+0x1a/0x30
[   23.449115] 
[   23.449220] freed by task 344 on cpu 1 at 23.444163s (0.005054s ago):
[   23.449525]  test_kmalloc_aligned_oob_write+0x24f/0x340
[   23.449743]  kunit_try_run_case+0x1a5/0x480
[   23.449969]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.450150]  kthread+0x337/0x6f0
[   23.450274]  ret_from_fork+0x41/0x80
[   23.450463]  ret_from_fork_asm+0x1a/0x30
[   23.450664] 
[   23.450785] CPU: 1 UID: 0 PID: 344 Comm: kunit_try_catch Tainted: G    B            N  6.15.7-rc1 #1 PREEMPT(voluntary) 
[   23.451232] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.451412] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.451688] ==================================================================