Hay
Date
June 25, 2025, 8:08 a.m.

Environment
qemu-arm64
qemu-x86_64

[   32.128365] ==================================================================
[   32.128466] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   32.128466] 
[   32.128528] Invalid free of 0x00000000d4f50f32 (in kfence-#98):
[   32.128580]  test_invalid_addr_free+0xec/0x238
[   32.128627]  kunit_try_run_case+0x170/0x3f0
[   32.128668]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.128712]  kthread+0x328/0x630
[   32.128749]  ret_from_fork+0x10/0x20
[   32.128789] 
[   32.128812] kfence-#98: 0x00000000d380b172-0x00000000eebc3721, size=32, cache=test
[   32.128812] 
[   32.128864] allocated by task 321 on cpu 0 at 32.128250s (0.000611s ago):
[   32.128924]  test_alloc+0x230/0x628
[   32.128965]  test_invalid_addr_free+0xd4/0x238
[   32.129007]  kunit_try_run_case+0x170/0x3f0
[   32.129046]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.129090]  kthread+0x328/0x630
[   32.129125]  ret_from_fork+0x10/0x20
[   32.129165] 
[   32.129205] CPU: 0 UID: 0 PID: 321 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   32.129282] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.129310] Hardware name: linux,dummy-virt (DT)
[   32.129344] ==================================================================
[   32.024413] ==================================================================
[   32.024499] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   32.024499] 
[   32.024560] Invalid free of 0x0000000070a563c6 (in kfence-#97):
[   32.024612]  test_invalid_addr_free+0x1ac/0x238
[   32.024658]  kunit_try_run_case+0x170/0x3f0
[   32.024703]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.024748]  kthread+0x328/0x630
[   32.024785]  ret_from_fork+0x10/0x20
[   32.024826] 
[   32.024851] kfence-#97: 0x00000000aaa38ea0-0x00000000aafa96c1, size=32, cache=kmalloc-32
[   32.024851] 
[   32.024903] allocated by task 319 on cpu 0 at 32.024258s (0.000641s ago):
[   32.024965]  test_alloc+0x29c/0x628
[   32.025005]  test_invalid_addr_free+0xd4/0x238
[   32.025047]  kunit_try_run_case+0x170/0x3f0
[   32.025087]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   32.025134]  kthread+0x328/0x630
[   32.025168]  ret_from_fork+0x10/0x20
[   32.025207] 
[   32.025252] CPU: 0 UID: 0 PID: 319 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT 
[   32.025329] Tainted: [B]=BAD_PAGE, [N]=TEST
[   32.025359] Hardware name: linux,dummy-virt (DT)
[   32.025404] ==================================================================

[   27.980235] ==================================================================
[   27.980621] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   27.980621] 
[   27.981020] Invalid free of 0x(____ptrval____) (in kfence-#83):
[   27.981377]  test_invalid_addr_free+0xfb/0x260
[   27.981565]  kunit_try_run_case+0x1a5/0x480
[   27.981772]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.982005]  kthread+0x337/0x6f0
[   27.982144]  ret_from_fork+0x116/0x1d0
[   27.982353]  ret_from_fork_asm+0x1a/0x30
[   27.982496] 
[   27.982564] kfence-#83: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   27.982564] 
[   27.982969] allocated by task 338 on cpu 1 at 27.980128s (0.002839s ago):
[   27.983432]  test_alloc+0x2a6/0x10f0
[   27.983629]  test_invalid_addr_free+0xdb/0x260
[   27.983813]  kunit_try_run_case+0x1a5/0x480
[   27.984004]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.984180]  kthread+0x337/0x6f0
[   27.984321]  ret_from_fork+0x116/0x1d0
[   27.984540]  ret_from_fork_asm+0x1a/0x30
[   27.984672] 
[   27.984806] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   27.985350] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.985483] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.985878] ==================================================================
[   27.876256] ==================================================================
[   27.876725] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   27.876725] 
[   27.877010] Invalid free of 0x(____ptrval____) (in kfence-#82):
[   27.877531]  test_invalid_addr_free+0x1e1/0x260
[   27.877732]  kunit_try_run_case+0x1a5/0x480
[   27.877913]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.878234]  kthread+0x337/0x6f0
[   27.878356]  ret_from_fork+0x116/0x1d0
[   27.878483]  ret_from_fork_asm+0x1a/0x30
[   27.878734] 
[   27.878892] kfence-#82: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   27.878892] 
[   27.879412] allocated by task 336 on cpu 1 at 27.876136s (0.003274s ago):
[   27.879625]  test_alloc+0x364/0x10f0
[   27.879746]  test_invalid_addr_free+0xdb/0x260
[   27.880041]  kunit_try_run_case+0x1a5/0x480
[   27.880396]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   27.880600]  kthread+0x337/0x6f0
[   27.880733]  ret_from_fork+0x116/0x1d0
[   27.880856]  ret_from_fork_asm+0x1a/0x30
[   27.880999] 
[   27.881102] CPU: 1 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) 
[   27.881635] Tainted: [B]=BAD_PAGE, [N]=TEST
[   27.881828] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   27.882215] ==================================================================