Hay
Date
June 24, 2025, 12:47 p.m.

Environment
qemu-arm64
qemu-x86_64

[   30.982804] ==================================================================
[   30.982978] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   30.982978] 
[   30.983124] Invalid free of 0x00000000f0d86391 (in kfence-#129):
[   30.983268]  test_double_free+0x1bc/0x238
[   30.983399]  kunit_try_run_case+0x170/0x3f0
[   30.983516]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.983621]  kthread+0x328/0x630
[   30.983723]  ret_from_fork+0x10/0x20
[   30.983821] 
[   30.983879] kfence-#129: 0x00000000f0d86391-0x00000000f4efd677, size=32, cache=kmalloc-32
[   30.983879] 
[   30.984005] allocated by task 305 on cpu 1 at 30.982144s (0.001852s ago):
[   30.984172]  test_alloc+0x29c/0x628
[   30.984355]  test_double_free+0xd4/0x238
[   30.984550]  kunit_try_run_case+0x170/0x3f0
[   30.984679]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.984807]  kthread+0x328/0x630
[   30.984912]  ret_from_fork+0x10/0x20
[   30.985022] 
[   30.985089] freed by task 305 on cpu 1 at 30.982428s (0.002652s ago):
[   30.985531]  test_double_free+0x1ac/0x238
[   30.985721]  kunit_try_run_case+0x170/0x3f0
[   30.986051]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   30.986230]  kthread+0x328/0x630
[   30.986336]  ret_from_fork+0x10/0x20
[   30.986641] 
[   30.986857] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   30.987340] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.987440] Hardware name: linux,dummy-virt (DT)
[   30.987539] ==================================================================
[   31.086092] ==================================================================
[   31.086202] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   31.086202] 
[   31.086872] Invalid free of 0x00000000238c1879 (in kfence-#130):
[   31.087037]  test_double_free+0x100/0x238
[   31.087151]  kunit_try_run_case+0x170/0x3f0
[   31.087256]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.087360]  kthread+0x328/0x630
[   31.088107]  ret_from_fork+0x10/0x20
[   31.088327] 
[   31.088419] kfence-#130: 0x00000000238c1879-0x00000000b1fb4779, size=32, cache=test
[   31.088419] 
[   31.088575] allocated by task 307 on cpu 1 at 31.085651s (0.002915s ago):
[   31.089141]  test_alloc+0x230/0x628
[   31.089271]  test_double_free+0xd4/0x238
[   31.089400]  kunit_try_run_case+0x170/0x3f0
[   31.090256]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.090417]  kthread+0x328/0x630
[   31.090655]  ret_from_fork+0x10/0x20
[   31.091211] 
[   31.091274] freed by task 307 on cpu 1 at 31.085800s (0.005465s ago):
[   31.091629]  test_double_free+0xf0/0x238
[   31.092171]  kunit_try_run_case+0x170/0x3f0
[   31.092291]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.092443]  kthread+0x328/0x630
[   31.092913]  ret_from_fork+0x10/0x20
[   31.093099] 
[   31.093304] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   31.093525] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.093602] Hardware name: linux,dummy-virt (DT)
[   31.094971] ==================================================================

[   18.283272] ==================================================================
[   18.283720] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.283720] 
[   18.283978] Invalid free of 0x(____ptrval____) (in kfence-#91):
[   18.284683]  test_double_free+0x1d3/0x260
[   18.285370]  kunit_try_run_case+0x1a5/0x480
[   18.285698]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.286092]  kthread+0x337/0x6f0
[   18.286372]  ret_from_fork+0x41/0x80
[   18.286736]  ret_from_fork_asm+0x1a/0x30
[   18.287074] 
[   18.287248] kfence-#91: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.287248] 
[   18.287616] allocated by task 323 on cpu 1 at 18.282908s (0.004704s ago):
[   18.287949]  test_alloc+0x364/0x10f0
[   18.288167]  test_double_free+0xdb/0x260
[   18.288415]  kunit_try_run_case+0x1a5/0x480
[   18.288760]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.288977]  kthread+0x337/0x6f0
[   18.289219]  ret_from_fork+0x41/0x80
[   18.289436]  ret_from_fork_asm+0x1a/0x30
[   18.289761] 
[   18.289896] freed by task 323 on cpu 1 at 18.283035s (0.006857s ago):
[   18.290219]  test_double_free+0x1e0/0x260
[   18.290494]  kunit_try_run_case+0x1a5/0x480
[   18.290741]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.291058]  kthread+0x337/0x6f0
[   18.291214]  ret_from_fork+0x41/0x80
[   18.291383]  ret_from_fork_asm+0x1a/0x30
[   18.291581] 
[   18.291818] CPU: 1 UID: 0 PID: 323 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   18.292561] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.292872] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.293281] ==================================================================
[   18.387202] ==================================================================
[   18.387596] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.387596] 
[   18.388089] Invalid free of 0x(____ptrval____) (in kfence-#92):
[   18.388330]  test_double_free+0x112/0x260
[   18.388490]  kunit_try_run_case+0x1a5/0x480
[   18.388675]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.388849]  kthread+0x337/0x6f0
[   18.389180]  ret_from_fork+0x41/0x80
[   18.389483]  ret_from_fork_asm+0x1a/0x30
[   18.389814] 
[   18.389993] kfence-#92: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.389993] 
[   18.390257] allocated by task 325 on cpu 0 at 18.386915s (0.003337s ago):
[   18.390502]  test_alloc+0x2a6/0x10f0
[   18.390817]  test_double_free+0xdb/0x260
[   18.391131]  kunit_try_run_case+0x1a5/0x480
[   18.391456]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.391932]  kthread+0x337/0x6f0
[   18.392344]  ret_from_fork+0x41/0x80
[   18.392611]  ret_from_fork_asm+0x1a/0x30
[   18.392892] 
[   18.393039] freed by task 325 on cpu 0 at 18.387019s (0.006015s ago):
[   18.393339]  test_double_free+0xfa/0x260
[   18.393505]  kunit_try_run_case+0x1a5/0x480
[   18.393722]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.394033]  kthread+0x337/0x6f0
[   18.394292]  ret_from_fork+0x41/0x80
[   18.394613]  ret_from_fork_asm+0x1a/0x30
[   18.394940] 
[   18.395172] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   18.395733] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.396013] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.396468] ==================================================================