Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   34.612274] ==================================================================
[   34.612368] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   34.612368] 
[   34.612433] Invalid free of 0x000000002a5d2104 (in kfence-#133):
[   34.612483]  test_double_free+0x100/0x238
[   34.612532]  kunit_try_run_case+0x170/0x3f0
[   34.612578]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.612623]  kthread+0x328/0x630
[   34.612663]  ret_from_fork+0x10/0x20
[   34.612704] 
[   34.612731] kfence-#133: 0x000000002a5d2104-0x0000000024bf7588, size=32, cache=test
[   34.612731] 
[   34.612787] allocated by task 337 on cpu 1 at 34.612046s (0.000737s ago):
[   34.612849]  test_alloc+0x230/0x628
[   34.612892]  test_double_free+0xd4/0x238
[   34.612932]  kunit_try_run_case+0x170/0x3f0
[   34.612974]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.613019]  kthread+0x328/0x630
[   34.613068]  ret_from_fork+0x10/0x20
[   34.613115] 
[   34.613139] freed by task 337 on cpu 1 at 34.612121s (0.001014s ago):
[   34.613203]  test_double_free+0xf0/0x238
[   34.613244]  kunit_try_run_case+0x170/0x3f0
[   34.613284]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.613329]  kthread+0x328/0x630
[   34.613363]  ret_from_fork+0x10/0x20
[   34.613403] 
[   34.613445] CPU: 1 UID: 0 PID: 337 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   34.613525] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.613554] Hardware name: linux,dummy-virt (DT)
[   34.613588] ==================================================================
[   34.508349] ==================================================================
[   34.508481] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   34.508481] 
[   34.508553] Invalid free of 0x00000000c16e226c (in kfence-#132):
[   34.508620]  test_double_free+0x1bc/0x238
[   34.508670]  kunit_try_run_case+0x170/0x3f0
[   34.508720]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.508766]  kthread+0x328/0x630
[   34.508809]  ret_from_fork+0x10/0x20
[   34.508851] 
[   34.508879] kfence-#132: 0x00000000c16e226c-0x00000000d928712a, size=32, cache=kmalloc-32
[   34.508879] 
[   34.508934] allocated by task 335 on cpu 1 at 34.508089s (0.000841s ago):
[   34.508998]  test_alloc+0x29c/0x628
[   34.509043]  test_double_free+0xd4/0x238
[   34.509105]  kunit_try_run_case+0x170/0x3f0
[   34.509147]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.509194]  kthread+0x328/0x630
[   34.509231]  ret_from_fork+0x10/0x20
[   34.509272] 
[   34.509297] freed by task 335 on cpu 1 at 34.508168s (0.001125s ago):
[   34.509363]  test_double_free+0x1ac/0x238
[   34.509404]  kunit_try_run_case+0x170/0x3f0
[   34.509447]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.509492]  kthread+0x328/0x630
[   34.509529]  ret_from_fork+0x10/0x20
[   34.509568] 
[   34.509614] CPU: 1 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   34.509697] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.509727] Hardware name: linux,dummy-virt (DT)
[   34.509761] ==================================================================

[   29.876431] ==================================================================
[   29.876869] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   29.876869] 
[   29.877209] Invalid free of 0x(____ptrval____) (in kfence-#101):
[   29.877462]  test_double_free+0x112/0x260
[   29.877607]  kunit_try_run_case+0x1a5/0x480
[   29.877889]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.878151]  kthread+0x337/0x6f0
[   29.878299]  ret_from_fork+0x116/0x1d0
[   29.878431]  ret_from_fork_asm+0x1a/0x30
[   29.878623] 
[   29.878723] kfence-#101: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   29.878723] 
[   29.879072] allocated by task 355 on cpu 1 at 29.876262s (0.002808s ago):
[   29.879355]  test_alloc+0x2a6/0x10f0
[   29.879540]  test_double_free+0xdb/0x260
[   29.879741]  kunit_try_run_case+0x1a5/0x480
[   29.879956]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.880212]  kthread+0x337/0x6f0
[   29.880401]  ret_from_fork+0x116/0x1d0
[   29.880678]  ret_from_fork_asm+0x1a/0x30
[   29.880856] 
[   29.880963] freed by task 355 on cpu 1 at 29.876306s (0.004655s ago):
[   29.881200]  test_double_free+0xfa/0x260
[   29.881393]  kunit_try_run_case+0x1a5/0x480
[   29.881560]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.881738]  kthread+0x337/0x6f0
[   29.881854]  ret_from_fork+0x116/0x1d0
[   29.882027]  ret_from_fork_asm+0x1a/0x30
[   29.882213] 
[   29.882350] CPU: 1 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   29.882733] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   29.883225] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.883619] ==================================================================
[   29.772495] ==================================================================
[   29.773052] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   29.773052] 
[   29.773382] Invalid free of 0x(____ptrval____) (in kfence-#100):
[   29.773673]  test_double_free+0x1d3/0x260
[   29.773830]  kunit_try_run_case+0x1a5/0x480
[   29.774430]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.774715]  kthread+0x337/0x6f0
[   29.774882]  ret_from_fork+0x116/0x1d0
[   29.775014]  ret_from_fork_asm+0x1a/0x30
[   29.775149] 
[   29.775293] kfence-#100: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   29.775293] 
[   29.775730] allocated by task 353 on cpu 0 at 29.772225s (0.003503s ago):
[   29.776078]  test_alloc+0x364/0x10f0
[   29.776235]  test_double_free+0xdb/0x260
[   29.776429]  kunit_try_run_case+0x1a5/0x480
[   29.776628]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.776912]  kthread+0x337/0x6f0
[   29.777106]  ret_from_fork+0x116/0x1d0
[   29.777290]  ret_from_fork_asm+0x1a/0x30
[   29.777477] 
[   29.777542] freed by task 353 on cpu 0 at 29.772286s (0.005254s ago):
[   29.777757]  test_double_free+0x1e0/0x260
[   29.777948]  kunit_try_run_case+0x1a5/0x480
[   29.778296]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.778573]  kthread+0x337/0x6f0
[   29.778749]  ret_from_fork+0x116/0x1d0
[   29.778961]  ret_from_fork_asm+0x1a/0x30
[   29.779318] 
[   29.780121] CPU: 0 UID: 0 PID: 353 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   29.780617] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   29.780880] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.781440] ==================================================================