Hay
Date
May 13, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   23.763369] ==================================================================
[   23.763498] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   23.763498] 
[   23.763575] Invalid free of 0x000000000a9d273d (in kfence-#108):
[   23.763686]  test_double_free+0x1bc/0x238
[   23.763827]  kunit_try_run_case+0x170/0x3f0
[   23.763878]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.763923]  kthread+0x328/0x630
[   23.763965]  ret_from_fork+0x10/0x20
[   23.764025] 
[   23.764055] kfence-#108: 0x000000000a9d273d-0x00000000d9af9fcd, size=32, cache=kmalloc-32
[   23.764055] 
[   23.764116] allocated by task 303 on cpu 1 at 23.763003s (0.001108s ago):
[   23.764186]  test_alloc+0x29c/0x628
[   23.764232]  test_double_free+0xd4/0x238
[   23.764275]  kunit_try_run_case+0x170/0x3f0
[   23.764317]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.764363]  kthread+0x328/0x630
[   23.764414]  ret_from_fork+0x10/0x20
[   23.764480] 
[   23.764504] freed by task 303 on cpu 1 at 23.763112s (0.001389s ago):
[   23.764621]  test_double_free+0x1ac/0x238
[   23.764665]  kunit_try_run_case+0x170/0x3f0
[   23.764704]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.764749]  kthread+0x328/0x630
[   23.764789]  ret_from_fork+0x10/0x20
[   23.764830] 
[   23.764881] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT 
[   23.764979] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.765015] Hardware name: linux,dummy-virt (DT)
[   23.765054] ==================================================================
[   23.867393] ==================================================================
[   23.867521] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   23.867521] 
[   23.867600] Invalid free of 0x00000000216839f2 (in kfence-#109):
[   23.867664]  test_double_free+0x100/0x238
[   23.867718]  kunit_try_run_case+0x170/0x3f0
[   23.867768]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.867818]  kthread+0x328/0x630
[   23.867864]  ret_from_fork+0x10/0x20
[   23.867910] 
[   23.867939] kfence-#109: 0x00000000216839f2-0x0000000049bb4299, size=32, cache=test
[   23.867939] 
[   23.868015] allocated by task 305 on cpu 1 at 23.867129s (0.000881s ago):
[   23.868089]  test_alloc+0x230/0x628
[   23.868137]  test_double_free+0xd4/0x238
[   23.868181]  kunit_try_run_case+0x170/0x3f0
[   23.868227]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.868274]  kthread+0x328/0x630
[   23.868319]  ret_from_fork+0x10/0x20
[   23.868362] 
[   23.868390] freed by task 305 on cpu 1 at 23.867208s (0.001177s ago):
[   23.868459]  test_double_free+0xf0/0x238
[   23.868505]  kunit_try_run_case+0x170/0x3f0
[   23.868547]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.868596]  kthread+0x328/0x630
[   23.868641]  ret_from_fork+0x10/0x20
[   23.868686] 
[   23.868743] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT 
[   23.868840] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.868875] Hardware name: linux,dummy-virt (DT)
[   23.868916] ==================================================================

[   16.931016] ==================================================================
[   16.931484] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   16.931484] 
[   16.931876] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   16.932134]  test_double_free+0x1d3/0x260
[   16.932344]  kunit_try_run_case+0x1a5/0x480
[   16.932663]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.932926]  kthread+0x337/0x6f0
[   16.933099]  ret_from_fork+0x116/0x1d0
[   16.933348]  ret_from_fork_asm+0x1a/0x30
[   16.933495] 
[   16.933569] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.933569] 
[   16.934016] allocated by task 320 on cpu 0 at 16.930833s (0.003181s ago):
[   16.934432]  test_alloc+0x364/0x10f0
[   16.934577]  test_double_free+0xdb/0x260
[   16.934725]  kunit_try_run_case+0x1a5/0x480
[   16.934872]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.935138]  kthread+0x337/0x6f0
[   16.935357]  ret_from_fork+0x116/0x1d0
[   16.935657]  ret_from_fork_asm+0x1a/0x30
[   16.936066] 
[   16.936695] freed by task 320 on cpu 0 at 16.930893s (0.005799s ago):
[   16.937001]  test_double_free+0x1e0/0x260
[   16.937249]  kunit_try_run_case+0x1a5/0x480
[   16.937545]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.937968]  kthread+0x337/0x6f0
[   16.938238]  ret_from_fork+0x116/0x1d0
[   16.938447]  ret_from_fork_asm+0x1a/0x30
[   16.938789] 
[   16.939013] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   16.939655] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.939952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.940447] ==================================================================
[   17.035094] ==================================================================
[   17.035497] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   17.035497] 
[   17.035870] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.036149]  test_double_free+0x112/0x260
[   17.036358]  kunit_try_run_case+0x1a5/0x480
[   17.036744]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.036992]  kthread+0x337/0x6f0
[   17.037136]  ret_from_fork+0x116/0x1d0
[   17.037299]  ret_from_fork_asm+0x1a/0x30
[   17.037525] 
[   17.037621] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.037621] 
[   17.037949] allocated by task 322 on cpu 1 at 17.034833s (0.003113s ago):
[   17.038204]  test_alloc+0x2a6/0x10f0
[   17.038391]  test_double_free+0xdb/0x260
[   17.038784]  kunit_try_run_case+0x1a5/0x480
[   17.038970]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.039143]  kthread+0x337/0x6f0
[   17.039420]  ret_from_fork+0x116/0x1d0
[   17.039623]  ret_from_fork_asm+0x1a/0x30
[   17.039795] 
[   17.039889] freed by task 322 on cpu 1 at 17.034885s (0.005002s ago):
[   17.040131]  test_double_free+0xfa/0x260
[   17.040270]  kunit_try_run_case+0x1a5/0x480
[   17.040457]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.040719]  kthread+0x337/0x6f0
[   17.040955]  ret_from_fork+0x116/0x1d0
[   17.041115]  ret_from_fork_asm+0x1a/0x30
[   17.041364] 
[   17.041468] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) 
[   17.042009] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.042151] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.042580] ==================================================================