Hay
Date
July 8, 2025, 4:38 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.764708] ==================================================================
[   22.764798] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.764798] 
[   22.764857] Invalid free of 0x00000000bb6aeeca (in kfence-#95):
[   22.764908]  test_invalid_addr_free+0xec/0x238
[   22.764952]  kunit_try_run_case+0x170/0x3f0
[   22.764995]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.765042]  kthread+0x328/0x630
[   22.765083]  ret_from_fork+0x10/0x20
[   22.765124] 
[   22.765147] kfence-#95: 0x00000000c749b1e8-0x000000004ef4c69d, size=32, cache=test
[   22.765147] 
[   22.765199] allocated by task 311 on cpu 0 at 22.764587s (0.000608s ago):
[   22.765261]  test_alloc+0x230/0x628
[   22.765300]  test_invalid_addr_free+0xd4/0x238
[   22.765354]  kunit_try_run_case+0x170/0x3f0
[   22.765395]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.765441]  kthread+0x328/0x630
[   22.765481]  ret_from_fork+0x10/0x20
[   22.765523] 
[   22.765563] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT 
[   22.765642] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.765670] Hardware name: linux,dummy-virt (DT)
[   22.765704] ==================================================================
[   22.660772] ==================================================================
[   22.660860] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.660860] 
[   22.660922] Invalid free of 0x000000001dcd3964 (in kfence-#94):
[   22.660973]  test_invalid_addr_free+0x1ac/0x238
[   22.661020]  kunit_try_run_case+0x170/0x3f0
[   22.661063]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.661110]  kthread+0x328/0x630
[   22.661152]  ret_from_fork+0x10/0x20
[   22.661192] 
[   22.661217] kfence-#94: 0x00000000a98f2ae9-0x0000000091a8b0fa, size=32, cache=kmalloc-32
[   22.661217] 
[   22.661273] allocated by task 309 on cpu 0 at 22.660644s (0.000625s ago):
[   22.661350]  test_alloc+0x29c/0x628
[   22.661391]  test_invalid_addr_free+0xd4/0x238
[   22.661433]  kunit_try_run_case+0x170/0x3f0
[   22.661475]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.661521]  kthread+0x328/0x630
[   22.661561]  ret_from_fork+0x10/0x20
[   22.661602] 
[   22.661643] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT 
[   22.661723] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.661754] Hardware name: linux,dummy-virt (DT)
[   22.661787] ==================================================================

[   16.997292] ==================================================================
[   16.997769] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   16.997769] 
[   16.998229] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   16.998499]  test_invalid_addr_free+0xfb/0x260
[   16.998661]  kunit_try_run_case+0x1a5/0x480
[   16.998885]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.999172]  kthread+0x337/0x6f0
[   16.999325]  ret_from_fork+0x41/0x80
[   16.999460]  ret_from_fork_asm+0x1a/0x30
[   16.999850] 
[   16.999982] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.999982] 
[   17.000374] allocated by task 329 on cpu 1 at 16.997191s (0.003180s ago):
[   17.000744]  test_alloc+0x2a6/0x10f0
[   17.000986]  test_invalid_addr_free+0xdb/0x260
[   17.001208]  kunit_try_run_case+0x1a5/0x480
[   17.001425]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.001667]  kthread+0x337/0x6f0
[   17.001788]  ret_from_fork+0x41/0x80
[   17.001977]  ret_from_fork_asm+0x1a/0x30
[   17.002212] 
[   17.002360] CPU: 1 UID: 0 PID: 329 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT(voluntary) 
[   17.002848] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.003082] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.003504] ==================================================================
[   16.893306] ==================================================================
[   16.893751] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   16.893751] 
[   16.894096] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   16.894436]  test_invalid_addr_free+0x1e1/0x260
[   16.894680]  kunit_try_run_case+0x1a5/0x480
[   16.894868]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.895206]  kthread+0x337/0x6f0
[   16.895342]  ret_from_fork+0x41/0x80
[   16.895565]  ret_from_fork_asm+0x1a/0x30
[   16.895812] 
[   16.895956] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.895956] 
[   16.896320] allocated by task 327 on cpu 0 at 16.893191s (0.003125s ago):
[   16.896660]  test_alloc+0x364/0x10f0
[   16.896798]  test_invalid_addr_free+0xdb/0x260
[   16.897033]  kunit_try_run_case+0x1a5/0x480
[   16.897239]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.897466]  kthread+0x337/0x6f0
[   16.897696]  ret_from_fork+0x41/0x80
[   16.897865]  ret_from_fork_asm+0x1a/0x30
[   16.898067] 
[   16.898213] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.6-rc1 #1 PREEMPT(voluntary) 
[   16.898696] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.898911] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.899227] ==================================================================