Hay
Date
July 5, 2025, 11:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.372473] ==================================================================
[   23.372569] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.372569] 
[   23.372630] Invalid free of 0x0000000024ab24ed (in kfence-#93):
[   23.372682]  test_invalid_addr_free+0x1ac/0x238
[   23.372732]  kunit_try_run_case+0x170/0x3f0
[   23.372774]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.372818]  kthread+0x328/0x630
[   23.372856]  ret_from_fork+0x10/0x20
[   23.372896] 
[   23.372921] kfence-#93: 0x00000000c50e7e24-0x00000000f9105e04, size=32, cache=kmalloc-32
[   23.372921] 
[   23.372975] allocated by task 307 on cpu 0 at 23.372330s (0.000641s ago):
[   23.373037]  test_alloc+0x29c/0x628
[   23.373077]  test_invalid_addr_free+0xd4/0x238
[   23.373119]  kunit_try_run_case+0x170/0x3f0
[   23.373173]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.373217]  kthread+0x328/0x630
[   23.373253]  ret_from_fork+0x10/0x20
[   23.373292] 
[   23.373333] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.373410] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.373440] Hardware name: linux,dummy-virt (DT)
[   23.373474] ==================================================================
[   23.476504] ==================================================================
[   23.476600] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.476600] 
[   23.476659] Invalid free of 0x000000006400dac8 (in kfence-#94):
[   23.476712]  test_invalid_addr_free+0xec/0x238
[   23.476756]  kunit_try_run_case+0x170/0x3f0
[   23.476798]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.476844]  kthread+0x328/0x630
[   23.476881]  ret_from_fork+0x10/0x20
[   23.476921] 
[   23.476945] kfence-#94: 0x0000000090a4bd03-0x00000000331be944, size=32, cache=test
[   23.476945] 
[   23.476997] allocated by task 309 on cpu 0 at 23.476383s (0.000610s ago):
[   23.477059]  test_alloc+0x230/0x628
[   23.477099]  test_invalid_addr_free+0xd4/0x238
[   23.477140]  kunit_try_run_case+0x170/0x3f0
[   23.477195]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.477238]  kthread+0x328/0x630
[   23.477273]  ret_from_fork+0x10/0x20
[   23.477316] 
[   23.477356] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   23.477432] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.477460] Hardware name: linux,dummy-virt (DT)
[   23.477494] ==================================================================

[   20.391668] ==================================================================
[   20.392093] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   20.392093] 
[   20.392419] Invalid free of 0x(____ptrval____) (in kfence-#91):
[   20.392646]  test_invalid_addr_free+0x1e1/0x260
[   20.392858]  kunit_try_run_case+0x1a5/0x480
[   20.393036]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.393445]  kthread+0x337/0x6f0
[   20.393707]  ret_from_fork+0x116/0x1d0
[   20.393883]  ret_from_fork_asm+0x1a/0x30
[   20.394051] 
[   20.394166] kfence-#91: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   20.394166] 
[   20.394664] allocated by task 325 on cpu 0 at 20.391505s (0.003157s ago):
[   20.394971]  test_alloc+0x364/0x10f0
[   20.395128]  test_invalid_addr_free+0xdb/0x260
[   20.396104]  kunit_try_run_case+0x1a5/0x480
[   20.396408]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.396710]  kthread+0x337/0x6f0
[   20.396879]  ret_from_fork+0x116/0x1d0
[   20.397066]  ret_from_fork_asm+0x1a/0x30
[   20.397330] 
[   20.397483] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   20.397880] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.398116] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.398664] ==================================================================
[   20.495657] ==================================================================
[   20.496128] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   20.496128] 
[   20.496494] Invalid free of 0x(____ptrval____) (in kfence-#92):
[   20.496837]  test_invalid_addr_free+0xfb/0x260
[   20.497085]  kunit_try_run_case+0x1a5/0x480
[   20.497311]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.497571]  kthread+0x337/0x6f0
[   20.497764]  ret_from_fork+0x116/0x1d0
[   20.498743]  ret_from_fork_asm+0x1a/0x30
[   20.499069] 
[   20.499271] kfence-#92: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   20.499271] 
[   20.499757] allocated by task 327 on cpu 1 at 20.495524s (0.004230s ago):
[   20.500316]  test_alloc+0x2a6/0x10f0
[   20.500601]  test_invalid_addr_free+0xdb/0x260
[   20.500846]  kunit_try_run_case+0x1a5/0x480
[   20.501065]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.501544]  kthread+0x337/0x6f0
[   20.501843]  ret_from_fork+0x116/0x1d0
[   20.502143]  ret_from_fork_asm+0x1a/0x30
[   20.502364] 
[   20.502489] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   20.503296] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.503602] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.504128] ==================================================================