Hay
Date
July 18, 2025, 1:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   36.413895] ==================================================================
[   36.413969] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   36.413969] 
[   36.414337] Invalid free of 0x000000003d0a2e56 (in kfence-#130):
[   36.414408]  test_double_free+0x100/0x238
[   36.414455]  kunit_try_run_case+0x170/0x3f0
[   36.414497]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.414869]  kthread+0x328/0x630
[   36.414943]  ret_from_fork+0x10/0x20
[   36.415272] 
[   36.415334] kfence-#130: 0x000000003d0a2e56-0x0000000096db33f3, size=32, cache=test
[   36.415334] 
[   36.415656] allocated by task 336 on cpu 0 at 36.413355s (0.002291s ago):
[   36.415736]  test_alloc+0x230/0x628
[   36.415823]  test_double_free+0xd4/0x238
[   36.415921]  kunit_try_run_case+0x170/0x3f0
[   36.416095]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.416182]  kthread+0x328/0x630
[   36.416336]  ret_from_fork+0x10/0x20
[   36.416424] 
[   36.416884] freed by task 336 on cpu 0 at 36.413689s (0.003178s ago):
[   36.417009]  test_double_free+0xf0/0x238
[   36.417148]  kunit_try_run_case+0x170/0x3f0
[   36.417269]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.417345]  kthread+0x328/0x630
[   36.417382]  ret_from_fork+0x10/0x20
[   36.417422] 
[   36.417491] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   36.417596] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.417635] Hardware name: linux,dummy-virt (DT)
[   36.417669] ==================================================================
[   36.310140] ==================================================================
[   36.310285] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   36.310285] 
[   36.310687] Invalid free of 0x00000000581294d8 (in kfence-#129):
[   36.310779]  test_double_free+0x1bc/0x238
[   36.311135]  kunit_try_run_case+0x170/0x3f0
[   36.311227]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.311343]  kthread+0x328/0x630
[   36.311388]  ret_from_fork+0x10/0x20
[   36.311435] 
[   36.311462] kfence-#129: 0x00000000581294d8-0x00000000e27e5dc3, size=32, cache=kmalloc-32
[   36.311462] 
[   36.311681] allocated by task 334 on cpu 0 at 36.309434s (0.002087s ago):
[   36.311877]  test_alloc+0x29c/0x628
[   36.311964]  test_double_free+0xd4/0x238
[   36.312005]  kunit_try_run_case+0x170/0x3f0
[   36.312382]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.312503]  kthread+0x328/0x630
[   36.312591]  ret_from_fork+0x10/0x20
[   36.312645] 
[   36.312890] freed by task 334 on cpu 0 at 36.309515s (0.003161s ago):
[   36.313214]  test_double_free+0x1ac/0x238
[   36.313339]  kunit_try_run_case+0x170/0x3f0
[   36.313417]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.313554]  kthread+0x328/0x630
[   36.313632]  ret_from_fork+0x10/0x20
[   36.313796] 
[   36.313883] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   36.314061] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.314304] Hardware name: linux,dummy-virt (DT)
[   36.314403] ==================================================================


[   30.442199] ==================================================================
[   30.442600] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   30.442600] 
[   30.442863] Invalid free of 0x(____ptrval____) (in kfence-#99):
[   30.443134]  test_double_free+0x112/0x260
[   30.443307]  kunit_try_run_case+0x1a5/0x480
[   30.443530]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.443711]  kthread+0x337/0x6f0
[   30.443832]  ret_from_fork+0x116/0x1d0
[   30.444018]  ret_from_fork_asm+0x1a/0x30
[   30.444219] 
[   30.444311] kfence-#99: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.444311] 
[   30.444677] allocated by task 353 on cpu 1 at 30.442033s (0.002641s ago):
[   30.444950]  test_alloc+0x2a6/0x10f0
[   30.445130]  test_double_free+0xdb/0x260
[   30.445286]  kunit_try_run_case+0x1a5/0x480
[   30.445484]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.445704]  kthread+0x337/0x6f0
[   30.445868]  ret_from_fork+0x116/0x1d0
[   30.446026]  ret_from_fork_asm+0x1a/0x30
[   30.446175] 
[   30.446267] freed by task 353 on cpu 1 at 30.442087s (0.004178s ago):
[   30.446524]  test_double_free+0xfa/0x260
[   30.446656]  kunit_try_run_case+0x1a5/0x480
[   30.446801]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.446970]  kthread+0x337/0x6f0
[   30.447135]  ret_from_fork+0x116/0x1d0
[   30.447320]  ret_from_fork_asm+0x1a/0x30
[   30.447519] 
[   30.447633] CPU: 1 UID: 0 PID: 353 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   30.448154] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.448341] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.448635] ==================================================================
[   30.338308] ==================================================================
[   30.338761] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   30.338761] 
[   30.339122] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   30.339444]  test_double_free+0x1d3/0x260
[   30.339647]  kunit_try_run_case+0x1a5/0x480
[   30.339794]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.340052]  kthread+0x337/0x6f0
[   30.340225]  ret_from_fork+0x116/0x1d0
[   30.340382]  ret_from_fork_asm+0x1a/0x30
[   30.340577] 
[   30.340644] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.340644] 
[   30.341013] allocated by task 351 on cpu 1 at 30.338098s (0.002914s ago):
[   30.341308]  test_alloc+0x364/0x10f0
[   30.341469]  test_double_free+0xdb/0x260
[   30.341651]  kunit_try_run_case+0x1a5/0x480
[   30.341830]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.342042]  kthread+0x337/0x6f0
[   30.342160]  ret_from_fork+0x116/0x1d0
[   30.342347]  ret_from_fork_asm+0x1a/0x30
[   30.342554] 
[   30.342644] freed by task 351 on cpu 1 at 30.338165s (0.004478s ago):
[   30.342922]  test_double_free+0x1e0/0x260
[   30.343076]  kunit_try_run_case+0x1a5/0x480
[   30.343285]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.343486]  kthread+0x337/0x6f0
[   30.343603]  ret_from_fork+0x116/0x1d0
[   30.343731]  ret_from_fork_asm+0x1a/0x30
[   30.343866] 
[   30.343972] CPU: 1 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   30.344511] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.344681] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.344949] ==================================================================