Hay
Date
July 8, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.381311] ==================================================================
[   36.381429] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   36.381429] 
[   36.381502] Invalid free of 0x0000000027937c6a (in kfence-#143):
[   36.381569]  test_double_free+0x1bc/0x238
[   36.381616]  kunit_try_run_case+0x170/0x3f0
[   36.381664]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.381711]  kthread+0x328/0x630
[   36.381752]  ret_from_fork+0x10/0x20
[   36.381794] 
[   36.381818] kfence-#143: 0x0000000027937c6a-0x0000000052bf6d9a, size=32, cache=kmalloc-32
[   36.381818] 
[   36.381873] allocated by task 334 on cpu 0 at 36.380989s (0.000881s ago):
[   36.381938]  test_alloc+0x29c/0x628
[   36.381980]  test_double_free+0xd4/0x238
[   36.382023]  kunit_try_run_case+0x170/0x3f0
[   36.382065]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.382111]  kthread+0x328/0x630
[   36.382148]  ret_from_fork+0x10/0x20
[   36.382188] 
[   36.382227] freed by task 334 on cpu 0 at 36.381066s (0.001157s ago):
[   36.382291]  test_double_free+0x1ac/0x238
[   36.382333]  kunit_try_run_case+0x170/0x3f0
[   36.382385]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.382431]  kthread+0x328/0x630
[   36.382467]  ret_from_fork+0x10/0x20
[   36.382507] 
[   36.382554] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   36.382637] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.382667] Hardware name: linux,dummy-virt (DT)
[   36.382700] ==================================================================
[   36.485258] ==================================================================
[   36.485355] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   36.485355] 
[   36.485421] Invalid free of 0x00000000d97aa65a (in kfence-#144):
[   36.485475]  test_double_free+0x100/0x238
[   36.485522]  kunit_try_run_case+0x170/0x3f0
[   36.485570]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.485616]  kthread+0x328/0x630
[   36.485656]  ret_from_fork+0x10/0x20
[   36.485696] 
[   36.485720] kfence-#144: 0x00000000d97aa65a-0x000000005e272f38, size=32, cache=test
[   36.485720] 
[   36.485774] allocated by task 336 on cpu 0 at 36.485000s (0.000771s ago):
[   36.485839]  test_alloc+0x230/0x628
[   36.485881]  test_double_free+0xd4/0x238
[   36.485922]  kunit_try_run_case+0x170/0x3f0
[   36.485965]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.486011]  kthread+0x328/0x630
[   36.486047]  ret_from_fork+0x10/0x20
[   36.486087] 
[   36.486111] freed by task 336 on cpu 0 at 36.485071s (0.001036s ago):
[   36.486175]  test_double_free+0xf0/0x238
[   36.486227]  kunit_try_run_case+0x170/0x3f0
[   36.486269]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.486314]  kthread+0x328/0x630
[   36.486349]  ret_from_fork+0x10/0x20
[   36.486389] 
[   36.486432] CPU: 0 UID: 0 PID: 336 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   36.486515] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.486543] Hardware name: linux,dummy-virt (DT)
[   36.486578] ==================================================================

[   30.104338] ==================================================================
[   30.104729] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   30.104729] 
[   30.105019] Invalid free of 0x(____ptrval____) (in kfence-#104):
[   30.105377]  test_double_free+0x112/0x260
[   30.105584]  kunit_try_run_case+0x1a5/0x480
[   30.105741]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.106103]  kthread+0x337/0x6f0
[   30.106282]  ret_from_fork+0x116/0x1d0
[   30.106478]  ret_from_fork_asm+0x1a/0x30
[   30.106693] 
[   30.106782] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.106782] 
[   30.107164] allocated by task 353 on cpu 1 at 30.104132s (0.003029s ago):
[   30.107491]  test_alloc+0x2a6/0x10f0
[   30.107622]  test_double_free+0xdb/0x260
[   30.107750]  kunit_try_run_case+0x1a5/0x480
[   30.107930]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.108206]  kthread+0x337/0x6f0
[   30.108483]  ret_from_fork+0x116/0x1d0
[   30.108662]  ret_from_fork_asm+0x1a/0x30
[   30.108876] 
[   30.108969] freed by task 353 on cpu 1 at 30.104193s (0.004773s ago):
[   30.109346]  test_double_free+0xfa/0x260
[   30.109483]  kunit_try_run_case+0x1a5/0x480
[   30.109617]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.109798]  kthread+0x337/0x6f0
[   30.109976]  ret_from_fork+0x116/0x1d0
[   30.110176]  ret_from_fork_asm+0x1a/0x30
[   30.110407] 
[   30.110547] CPU: 1 UID: 0 PID: 353 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   30.111039] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.111231] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.111656] ==================================================================
[   30.000401] ==================================================================
[   30.000878] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   30.000878] 
[   30.001163] Invalid free of 0x(____ptrval____) (in kfence-#103):
[   30.001400]  test_double_free+0x1d3/0x260
[   30.001548]  kunit_try_run_case+0x1a5/0x480
[   30.001818]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.002095]  kthread+0x337/0x6f0
[   30.002250]  ret_from_fork+0x116/0x1d0
[   30.002379]  ret_from_fork_asm+0x1a/0x30
[   30.002515] 
[   30.002580] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.002580] 
[   30.002853] allocated by task 351 on cpu 0 at 30.000153s (0.002697s ago):
[   30.003064]  test_alloc+0x364/0x10f0
[   30.003189]  test_double_free+0xdb/0x260
[   30.003327]  kunit_try_run_case+0x1a5/0x480
[   30.003462]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.003626]  kthread+0x337/0x6f0
[   30.003739]  ret_from_fork+0x116/0x1d0
[   30.003863]  ret_from_fork_asm+0x1a/0x30
[   30.003995] 
[   30.004058] freed by task 351 on cpu 0 at 30.000249s (0.003807s ago):
[   30.004283]  test_double_free+0x1e0/0x260
[   30.004412]  kunit_try_run_case+0x1a5/0x480
[   30.005339]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.005606]  kthread+0x337/0x6f0
[   30.006317]  ret_from_fork+0x116/0x1d0
[   30.006513]  ret_from_fork_asm+0x1a/0x30
[   30.006712] 
[   30.006831] CPU: 0 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   30.007508] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.007656] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.007923] ==================================================================