Hay
Date
July 1, 2025, 11:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   24.010344] ==================================================================
[   24.010458] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   24.010458] 
[   24.011060] Invalid free of 0x00000000420da8a6 (in kfence-#101):
[   24.011196]  test_invalid_addr_free+0xec/0x238
[   24.011340]  kunit_try_run_case+0x170/0x3f0
[   24.011475]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.011890]  kthread+0x328/0x630
[   24.012026]  ret_from_fork+0x10/0x20
[   24.012214] 
[   24.012304] kfence-#101: 0x00000000ab5c2665-0x000000002263fcdf, size=32, cache=test
[   24.012304] 
[   24.012742] allocated by task 310 on cpu 0 at 24.009765s (0.002960s ago):
[   24.012932]  test_alloc+0x230/0x628
[   24.013277]  test_invalid_addr_free+0xd4/0x238
[   24.013430]  kunit_try_run_case+0x170/0x3f0
[   24.013539]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.013696]  kthread+0x328/0x630
[   24.013788]  ret_from_fork+0x10/0x20
[   24.014206] 
[   24.014544] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   24.014737] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.015118] Hardware name: linux,dummy-virt (DT)
[   24.015359] ==================================================================
[   23.904694] ==================================================================
[   23.904796] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.904796] 
[   23.904863] Invalid free of 0x00000000f90b04c3 (in kfence-#100):
[   23.904974]  test_invalid_addr_free+0x1ac/0x238
[   23.905027]  kunit_try_run_case+0x170/0x3f0
[   23.905077]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.905124]  kthread+0x328/0x630
[   23.905555]  ret_from_fork+0x10/0x20
[   23.905623] 
[   23.905651] kfence-#100: 0x0000000004d2c826-0x00000000324bcd6f, size=32, cache=kmalloc-32
[   23.905651] 
[   23.905810] allocated by task 308 on cpu 0 at 23.904312s (0.001453s ago):
[   23.905919]  test_alloc+0x29c/0x628
[   23.905997]  test_invalid_addr_free+0xd4/0x238
[   23.906044]  kunit_try_run_case+0x170/0x3f0
[   23.906088]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.906364]  kthread+0x328/0x630
[   23.906419]  ret_from_fork+0x10/0x20
[   23.906473] 
[   23.906638] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.906869] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.906910] Hardware name: linux,dummy-virt (DT)
[   23.906950] ==================================================================

[   17.345446] ==================================================================
[   17.345860] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.345860] 
[   17.346195] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.346565]  test_invalid_addr_free+0xfb/0x260
[   17.346739]  kunit_try_run_case+0x1a5/0x480
[   17.347053]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.347290]  kthread+0x337/0x6f0
[   17.347487]  ret_from_fork+0x116/0x1d0
[   17.347657]  ret_from_fork_asm+0x1a/0x30
[   17.347854] 
[   17.347954] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.347954] 
[   17.348290] allocated by task 326 on cpu 1 at 17.345307s (0.002981s ago):
[   17.348600]  test_alloc+0x2a6/0x10f0
[   17.348776]  test_invalid_addr_free+0xdb/0x260
[   17.348964]  kunit_try_run_case+0x1a5/0x480
[   17.349154]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.349364]  kthread+0x337/0x6f0
[   17.349550]  ret_from_fork+0x116/0x1d0
[   17.349726]  ret_from_fork_asm+0x1a/0x30
[   17.349931] 
[   17.350043] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.350471] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.350690] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.350959] ==================================================================
[   17.241449] ==================================================================
[   17.241849] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.241849] 
[   17.242310] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   17.243077]  test_invalid_addr_free+0x1e1/0x260
[   17.243469]  kunit_try_run_case+0x1a5/0x480
[   17.243933]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.244186]  kthread+0x337/0x6f0
[   17.244514]  ret_from_fork+0x116/0x1d0
[   17.244851]  ret_from_fork_asm+0x1a/0x30
[   17.245263] 
[   17.245364] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.245364] 
[   17.245975] allocated by task 324 on cpu 0 at 17.241282s (0.004690s ago):
[   17.246315]  test_alloc+0x364/0x10f0
[   17.246717]  test_invalid_addr_free+0xdb/0x260
[   17.247040]  kunit_try_run_case+0x1a5/0x480
[   17.247352]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.247718]  kthread+0x337/0x6f0
[   17.247863]  ret_from_fork+0x116/0x1d0
[   17.248238]  ret_from_fork_asm+0x1a/0x30
[   17.248463] 
[   17.248586] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.249030] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.249220] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.249917] ==================================================================