Hay
Date
July 10, 2025, 6:10 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.663561] ==================================================================
[   21.663711] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.663711] 
[   21.663773] Invalid free of 0x0000000004eef4d2 (in kfence-#94):
[   21.663826]  test_invalid_addr_free+0xec/0x238
[   21.664282]  kunit_try_run_case+0x170/0x3f0
[   21.664459]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.664514]  kthread+0x328/0x630
[   21.664599]  ret_from_fork+0x10/0x20
[   21.664715] 
[   21.664741] kfence-#94: 0x00000000660b8f85-0x00000000eec29c94, size=32, cache=test
[   21.664741] 
[   21.665180] allocated by task 309 on cpu 0 at 21.663429s (0.001656s ago):
[   21.665298]  test_alloc+0x230/0x628
[   21.665353]  test_invalid_addr_free+0xd4/0x238
[   21.665488]  kunit_try_run_case+0x170/0x3f0
[   21.665534]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.665597]  kthread+0x328/0x630
[   21.665633]  ret_from_fork+0x10/0x20
[   21.665817] 
[   21.666276] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.666470] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.666503] Hardware name: linux,dummy-virt (DT)
[   21.666947] ==================================================================
[   21.559379] ==================================================================
[   21.559553] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.559553] 
[   21.559730] Invalid free of 0x000000006efb832c (in kfence-#93):
[   21.559798]  test_invalid_addr_free+0x1ac/0x238
[   21.559850]  kunit_try_run_case+0x170/0x3f0
[   21.559895]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.559940]  kthread+0x328/0x630
[   21.559979]  ret_from_fork+0x10/0x20
[   21.560309] 
[   21.560511] kfence-#93: 0x0000000041609585-0x000000007cbc4b2c, size=32, cache=kmalloc-32
[   21.560511] 
[   21.560665] allocated by task 307 on cpu 0 at 21.559211s (0.001416s ago):
[   21.560824]  test_alloc+0x29c/0x628
[   21.560882]  test_invalid_addr_free+0xd4/0x238
[   21.560966]  kunit_try_run_case+0x170/0x3f0
[   21.561210]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.561275]  kthread+0x328/0x630
[   21.561410]  ret_from_fork+0x10/0x20
[   21.561462] 
[   21.561674] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.561766] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.561805] Hardware name: linux,dummy-virt (DT)
[   21.561838] ==================================================================

[   18.628236] ==================================================================
[   18.628611] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.628611] 
[   18.629061] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.629365]  test_invalid_addr_free+0xfb/0x260
[   18.629523]  kunit_try_run_case+0x1a5/0x480
[   18.629738]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.630011]  kthread+0x337/0x6f0
[   18.630233]  ret_from_fork+0x116/0x1d0
[   18.630430]  ret_from_fork_asm+0x1a/0x30
[   18.630570] 
[   18.630667] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.630667] 
[   18.631170] allocated by task 326 on cpu 0 at 18.628143s (0.003025s ago):
[   18.631503]  test_alloc+0x2a6/0x10f0
[   18.631683]  test_invalid_addr_free+0xdb/0x260
[   18.631906]  kunit_try_run_case+0x1a5/0x480
[   18.632135]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.632375]  kthread+0x337/0x6f0
[   18.632493]  ret_from_fork+0x116/0x1d0
[   18.632621]  ret_from_fork_asm+0x1a/0x30
[   18.632816] 
[   18.632930] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.633448] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.633651] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.633988] ==================================================================
[   18.524257] ==================================================================
[   18.524683] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.524683] 
[   18.525110] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.525382]  test_invalid_addr_free+0x1e1/0x260
[   18.525593]  kunit_try_run_case+0x1a5/0x480
[   18.525802]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.526363]  kthread+0x337/0x6f0
[   18.526560]  ret_from_fork+0x116/0x1d0
[   18.526721]  ret_from_fork_asm+0x1a/0x30
[   18.526906] 
[   18.527370] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.527370] 
[   18.527746] allocated by task 324 on cpu 1 at 18.524135s (0.003608s ago):
[   18.528254]  test_alloc+0x364/0x10f0
[   18.528525]  test_invalid_addr_free+0xdb/0x260
[   18.528751]  kunit_try_run_case+0x1a5/0x480
[   18.528946]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.529250]  kthread+0x337/0x6f0
[   18.529424]  ret_from_fork+0x116/0x1d0
[   18.529595]  ret_from_fork_asm+0x1a/0x30
[   18.529778] 
[   18.529889] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.530762] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.531123] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.531589] ==================================================================