Hay
Date
June 19, 2025, 12:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   36.639286] ==================================================================
[   36.639728] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   36.639728] 
[   36.640124] Invalid free of 0x00000000011d1998 (in kfence-#126):
[   36.640610]  test_double_free+0x1bc/0x238
[   36.641011]  kunit_try_run_case+0x170/0x3f0
[   36.641346]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.641632]  kthread+0x328/0x630
[   36.641849]  ret_from_fork+0x10/0x20
[   36.642189] 
[   36.642372] kfence-#126: 0x00000000011d1998-0x00000000bab18df0, size=32, cache=kmalloc-32
[   36.642372] 
[   36.642522] allocated by task 314 on cpu 0 at 36.638567s (0.003946s ago):
[   36.642770]  test_alloc+0x29c/0x628
[   36.643228]  test_double_free+0xd4/0x238
[   36.643434]  kunit_try_run_case+0x170/0x3f0
[   36.643658]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.643805]  kthread+0x328/0x630
[   36.644122]  ret_from_fork+0x10/0x20
[   36.644703] 
[   36.644788] freed by task 314 on cpu 0 at 36.638710s (0.006069s ago):
[   36.645202]  test_double_free+0x1ac/0x238
[   36.645499]  kunit_try_run_case+0x170/0x3f0
[   36.645929]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.646381]  kthread+0x328/0x630
[   36.646518]  ret_from_fork+0x10/0x20
[   36.646639] 
[   36.646790] CPU: 0 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   36.647018] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.647096] Hardware name: linux,dummy-virt (DT)
[   36.647380] ==================================================================
[   36.739821] ==================================================================
[   36.739990] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   36.739990] 
[   36.740105] Invalid free of 0x000000004a2d8db0 (in kfence-#127):
[   36.740222]  test_double_free+0x100/0x238
[   36.740334]  kunit_try_run_case+0x170/0x3f0
[   36.740432]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.740530]  kthread+0x328/0x630
[   36.740618]  ret_from_fork+0x10/0x20
[   36.740709] 
[   36.740764] kfence-#127: 0x000000004a2d8db0-0x000000001fc6f906, size=32, cache=test
[   36.740764] 
[   36.740900] allocated by task 316 on cpu 0 at 36.739454s (0.001438s ago):
[   36.741029]  test_alloc+0x230/0x628
[   36.741150]  test_double_free+0xd4/0x238
[   36.741650]  kunit_try_run_case+0x170/0x3f0
[   36.741768]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.741859]  kthread+0x328/0x630
[   36.741954]  ret_from_fork+0x10/0x20
[   36.742137] 
[   36.742226] freed by task 316 on cpu 0 at 36.739568s (0.002644s ago):
[   36.742414]  test_double_free+0xf0/0x238
[   36.742515]  kunit_try_run_case+0x170/0x3f0
[   36.742604]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.742750]  kthread+0x328/0x630
[   36.742842]  ret_from_fork+0x10/0x20
[   36.742969] 
[   36.743082] CPU: 0 UID: 0 PID: 316 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT 
[   36.743295] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.743364] Hardware name: linux,dummy-virt (DT)
[   36.743666] ==================================================================

[   33.036951] ==================================================================
[   33.037503] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   33.037503] 
[   33.037891] Invalid free of 0x(____ptrval____) (in kfence-#116):
[   33.038449]  test_double_free+0x1d3/0x260
[   33.038728]  kunit_try_run_case+0x1a5/0x480
[   33.038919]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.039262]  kthread+0x337/0x6f0
[   33.039639]  ret_from_fork+0x116/0x1d0
[   33.039974]  ret_from_fork_asm+0x1a/0x30
[   33.040277] 
[   33.040443] kfence-#116: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   33.040443] 
[   33.040923] allocated by task 332 on cpu 0 at 33.036617s (0.004301s ago):
[   33.041237]  test_alloc+0x364/0x10f0
[   33.041615]  test_double_free+0xdb/0x260
[   33.042000]  kunit_try_run_case+0x1a5/0x480
[   33.042422]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.042864]  kthread+0x337/0x6f0
[   33.043052]  ret_from_fork+0x116/0x1d0
[   33.043252]  ret_from_fork_asm+0x1a/0x30
[   33.043446] 
[   33.043638] freed by task 332 on cpu 0 at 33.036741s (0.006892s ago):
[   33.044227]  test_double_free+0x1e0/0x260
[   33.044733]  kunit_try_run_case+0x1a5/0x480
[   33.045176]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.045550]  kthread+0x337/0x6f0
[   33.045731]  ret_from_fork+0x116/0x1d0
[   33.045970]  ret_from_fork_asm+0x1a/0x30
[   33.046339] 
[   33.046595] CPU: 0 UID: 0 PID: 332 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   33.047517] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.047758] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.048431] ==================================================================
[   33.140931] ==================================================================
[   33.141453] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   33.141453] 
[   33.141747] Invalid free of 0x(____ptrval____) (in kfence-#117):
[   33.142333]  test_double_free+0x112/0x260
[   33.142583]  kunit_try_run_case+0x1a5/0x480
[   33.142771]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.143162]  kthread+0x337/0x6f0
[   33.143522]  ret_from_fork+0x116/0x1d0
[   33.143877]  ret_from_fork_asm+0x1a/0x30
[   33.144204] 
[   33.144347] kfence-#117: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   33.144347] 
[   33.145094] allocated by task 334 on cpu 0 at 33.140640s (0.004449s ago):
[   33.145493]  test_alloc+0x2a6/0x10f0
[   33.145685]  test_double_free+0xdb/0x260
[   33.146046]  kunit_try_run_case+0x1a5/0x480
[   33.146463]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.146939]  kthread+0x337/0x6f0
[   33.147294]  ret_from_fork+0x116/0x1d0
[   33.147498]  ret_from_fork_asm+0x1a/0x30
[   33.147738] 
[   33.147868] freed by task 334 on cpu 0 at 33.140741s (0.007123s ago):
[   33.148448]  test_double_free+0xfa/0x260
[   33.148813]  kunit_try_run_case+0x1a5/0x480
[   33.149302]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   33.149668]  kthread+0x337/0x6f0
[   33.150036]  ret_from_fork+0x116/0x1d0
[   33.150354]  ret_from_fork_asm+0x1a/0x30
[   33.150632] 
[   33.150875] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) 
[   33.151578] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.151874] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   33.152493] ==================================================================