Hay
Date
July 3, 2025, 10:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.712897] ==================================================================
[   36.712990] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   36.712990] 
[   36.713054] Invalid free of 0x00000000a66ee7d7 (in kfence-#143):
[   36.713106]  test_double_free+0x100/0x238
[   36.713153]  kunit_try_run_case+0x170/0x3f0
[   36.713199]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.713246]  kthread+0x328/0x630
[   36.713283]  ret_from_fork+0x10/0x20
[   36.713323] 
[   36.713348] kfence-#143: 0x00000000a66ee7d7-0x00000000121de331, size=32, cache=test
[   36.713348] 
[   36.713402] allocated by task 337 on cpu 1 at 36.712674s (0.000725s ago):
[   36.713467]  test_alloc+0x230/0x628
[   36.713508]  test_double_free+0xd4/0x238
[   36.713550]  kunit_try_run_case+0x170/0x3f0
[   36.713592]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.713637]  kthread+0x328/0x630
[   36.713673]  ret_from_fork+0x10/0x20
[   36.713712] 
[   36.713736] freed by task 337 on cpu 1 at 36.712739s (0.000993s ago):
[   36.713800]  test_double_free+0xf0/0x238
[   36.713853]  kunit_try_run_case+0x170/0x3f0
[   36.713894]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.713938]  kthread+0x328/0x630
[   36.713985]  ret_from_fork+0x10/0x20
[   36.714026] 
[   36.714068] CPU: 1 UID: 0 PID: 337 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   36.714150] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.714180] Hardware name: linux,dummy-virt (DT)
[   36.714215] ==================================================================
[   36.609076] ==================================================================
[   36.609193] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   36.609193] 
[   36.609263] Invalid free of 0x0000000053534c83 (in kfence-#142):
[   36.609327]  test_double_free+0x1bc/0x238
[   36.609375]  kunit_try_run_case+0x170/0x3f0
[   36.609421]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.609468]  kthread+0x328/0x630
[   36.609508]  ret_from_fork+0x10/0x20
[   36.609550] 
[   36.609573] kfence-#142: 0x0000000053534c83-0x0000000061e9bbed, size=32, cache=kmalloc-32
[   36.609573] 
[   36.609630] allocated by task 335 on cpu 1 at 36.608744s (0.000883s ago):
[   36.609696]  test_alloc+0x29c/0x628
[   36.609738]  test_double_free+0xd4/0x238
[   36.609780]  kunit_try_run_case+0x170/0x3f0
[   36.609822]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.609887]  kthread+0x328/0x630
[   36.609923]  ret_from_fork+0x10/0x20
[   36.609969] 
[   36.609994] freed by task 335 on cpu 1 at 36.608818s (0.001172s ago):
[   36.610059]  test_double_free+0x1ac/0x238
[   36.610100]  kunit_try_run_case+0x170/0x3f0
[   36.610142]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.610189]  kthread+0x328/0x630
[   36.610224]  ret_from_fork+0x10/0x20
[   36.610262] 
[   36.610310] CPU: 1 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   36.610391] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.610422] Hardware name: linux,dummy-virt (DT)
[   36.610456] ==================================================================

[   29.153644] ==================================================================
[   29.154027] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   29.154027] 
[   29.154380] Invalid free of 0x(____ptrval____) (in kfence-#99):
[   29.154669]  test_double_free+0x112/0x260
[   29.154819]  kunit_try_run_case+0x1a5/0x480
[   29.155012]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.155291]  kthread+0x337/0x6f0
[   29.155413]  ret_from_fork+0x116/0x1d0
[   29.155620]  ret_from_fork_asm+0x1a/0x30
[   29.155815] 
[   29.155900] kfence-#99: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   29.155900] 
[   29.156298] allocated by task 354 on cpu 0 at 29.153449s (0.002847s ago):
[   29.156616]  test_alloc+0x2a6/0x10f0
[   29.156789]  test_double_free+0xdb/0x260
[   29.156956]  kunit_try_run_case+0x1a5/0x480
[   29.157123]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.157294]  kthread+0x337/0x6f0
[   29.157438]  ret_from_fork+0x116/0x1d0
[   29.157639]  ret_from_fork_asm+0x1a/0x30
[   29.157824] 
[   29.157905] freed by task 354 on cpu 0 at 29.153505s (0.004397s ago):
[   29.158157]  test_double_free+0xfa/0x260
[   29.158429]  kunit_try_run_case+0x1a5/0x480
[   29.158611]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.158789]  kthread+0x337/0x6f0
[   29.158954]  ret_from_fork+0x116/0x1d0
[   29.159138]  ret_from_fork_asm+0x1a/0x30
[   29.159417] 
[   29.159533] CPU: 0 UID: 0 PID: 354 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   29.160014] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.160168] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.160431] ==================================================================
[   29.049715] ==================================================================
[   29.050119] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   29.050119] 
[   29.050514] Invalid free of 0x(____ptrval____) (in kfence-#98):
[   29.050799]  test_double_free+0x1d3/0x260
[   29.050945]  kunit_try_run_case+0x1a5/0x480
[   29.051159]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.051418]  kthread+0x337/0x6f0
[   29.051579]  ret_from_fork+0x116/0x1d0
[   29.051755]  ret_from_fork_asm+0x1a/0x30
[   29.051929] 
[   29.051998] kfence-#98: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   29.051998] 
[   29.052498] allocated by task 352 on cpu 1 at 29.049479s (0.003017s ago):
[   29.052754]  test_alloc+0x364/0x10f0
[   29.052884]  test_double_free+0xdb/0x260
[   29.053074]  kunit_try_run_case+0x1a5/0x480
[   29.053277]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.053507]  kthread+0x337/0x6f0
[   29.053624]  ret_from_fork+0x116/0x1d0
[   29.053751]  ret_from_fork_asm+0x1a/0x30
[   29.053922] 
[   29.054013] freed by task 352 on cpu 1 at 29.049530s (0.004481s ago):
[   29.054574]  test_double_free+0x1e0/0x260
[   29.054792]  kunit_try_run_case+0x1a5/0x480
[   29.054974]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.055201]  kthread+0x337/0x6f0
[   29.055340]  ret_from_fork+0x116/0x1d0
[   29.055506]  ret_from_fork_asm+0x1a/0x30
[   29.055641] 
[   29.055761] CPU: 1 UID: 0 PID: 352 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   29.056277] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.056448] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.057291] ==================================================================