Hay
Date
March 19, 2025, 10:35 a.m.

Environment
qemu-arm64
qemu-x86_64

[   41.594850] ==================================================================
[   41.595374] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   41.595374] 
[   41.595595] Invalid free of 0x00000000444fb7a2 (in kfence-#160):
[   41.595798]  test_double_free+0x100/0x238
[   41.595971]  kunit_try_run_case+0x14c/0x3d0
[   41.596176]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.596462]  kthread+0x318/0x618
[   41.596662]  ret_from_fork+0x10/0x20
[   41.596932] 
[   41.597064] kfence-#160: 0x00000000444fb7a2-0x00000000a768b5c5, size=32, cache=test
[   41.597064] 
[   41.597251] allocated by task 307 on cpu 0 at 41.594429s (0.002812s ago):
[   41.597727]  test_alloc+0x22c/0x620
[   41.597859]  test_double_free+0xd4/0x238
[   41.597979]  kunit_try_run_case+0x14c/0x3d0
[   41.598352]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.598512]  kthread+0x318/0x618
[   41.598638]  ret_from_fork+0x10/0x20
[   41.598764] 
[   41.598842] freed by task 307 on cpu 0 at 41.594560s (0.004274s ago):
[   41.599093]  test_double_free+0xf0/0x238
[   41.599218]  kunit_try_run_case+0x14c/0x3d0
[   41.599364]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.599596]  kthread+0x318/0x618
[   41.599793]  ret_from_fork+0x10/0x20
[   41.599988] 
[   41.600150] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT 
[   41.600673] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.600791] Hardware name: linux,dummy-virt (DT)
[   41.600898] ==================================================================
[   41.493190] ==================================================================
[   41.493767] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   41.493767] 
[   41.494288] Invalid free of 0x000000006303b7ed (in kfence-#159):
[   41.494636]  test_double_free+0x1bc/0x238
[   41.495031]  kunit_try_run_case+0x14c/0x3d0
[   41.495526]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.496006]  kthread+0x318/0x618
[   41.496189]  ret_from_fork+0x10/0x20
[   41.496853] 
[   41.497164] kfence-#159: 0x000000006303b7ed-0x00000000bc7a5bc1, size=32, cache=kmalloc-32
[   41.497164] 
[   41.497477] allocated by task 305 on cpu 0 at 41.488478s (0.008988s ago):
[   41.497668]  test_alloc+0x298/0x620
[   41.498335]  test_double_free+0xd4/0x238
[   41.498862]  kunit_try_run_case+0x14c/0x3d0
[   41.499454]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.499617]  kthread+0x318/0x618
[   41.499749]  ret_from_fork+0x10/0x20
[   41.499878] 
[   41.500243] freed by task 305 on cpu 0 at 41.488599s (0.011628s ago):
[   41.501161]  test_double_free+0x1ac/0x238
[   41.501758]  kunit_try_run_case+0x14c/0x3d0
[   41.501848]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   41.501925]  kthread+0x318/0x618
[   41.501994]  ret_from_fork+0x10/0x20
[   41.502087] 
[   41.502200] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT 
[   41.502470] Tainted: [B]=BAD_PAGE, [N]=TEST
[   41.502619] Hardware name: linux,dummy-virt (DT)
[   41.503045] ==================================================================

[   30.680326] ==================================================================
[   30.680915] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   30.680915] 
[   30.681797] Invalid free of 0x(____ptrval____) (in kfence-#131):
[   30.682342]  test_double_free+0x112/0x260
[   30.682814]  kunit_try_run_case+0x1b2/0x490
[   30.683253]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.683849]  kthread+0x323/0x710
[   30.684307]  ret_from_fork+0x41/0x80
[   30.684707]  ret_from_fork_asm+0x1a/0x30
[   30.685056] 
[   30.685246] kfence-#131: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.685246] 
[   30.686039] allocated by task 326 on cpu 0 at 30.680099s (0.005934s ago):
[   30.686659]  test_alloc+0x2a6/0x10d0
[   30.687007]  test_double_free+0xdb/0x260
[   30.687467]  kunit_try_run_case+0x1b2/0x490
[   30.688084]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.688616]  kthread+0x323/0x710
[   30.689050]  ret_from_fork+0x41/0x80
[   30.689423]  ret_from_fork_asm+0x1a/0x30
[   30.689798] 
[   30.690022] freed by task 326 on cpu 0 at 30.680192s (0.009825s ago):
[   30.690822]  test_double_free+0xfa/0x260
[   30.691259]  kunit_try_run_case+0x1b2/0x490
[   30.691738]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.692218]  kthread+0x323/0x710
[   30.692604]  ret_from_fork+0x41/0x80
[   30.692965]  ret_from_fork_asm+0x1a/0x30
[   30.693449] 
[   30.693762] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) 
[   30.694669] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.695104] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.695734] ==================================================================
[   30.576415] ==================================================================
[   30.577057] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   30.577057] 
[   30.577728] Invalid free of 0x(____ptrval____) (in kfence-#130):
[   30.578377]  test_double_free+0x1d3/0x260
[   30.578974]  kunit_try_run_case+0x1b2/0x490
[   30.579496]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.579877]  kthread+0x323/0x710
[   30.580425]  ret_from_fork+0x41/0x80
[   30.580991]  ret_from_fork_asm+0x1a/0x30
[   30.581383] 
[   30.581543] kfence-#130: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.581543] 
[   30.582496] allocated by task 324 on cpu 1 at 30.576078s (0.006412s ago):
[   30.583025]  test_alloc+0x35e/0x10d0
[   30.583490]  test_double_free+0xdb/0x260
[   30.584030]  kunit_try_run_case+0x1b2/0x490
[   30.584460]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.584873]  kthread+0x323/0x710
[   30.585327]  ret_from_fork+0x41/0x80
[   30.585735]  ret_from_fork_asm+0x1a/0x30
[   30.586195] 
[   30.586421] freed by task 324 on cpu 1 at 30.576190s (0.010226s ago):
[   30.587166]  test_double_free+0x1e0/0x260
[   30.587514]  kunit_try_run_case+0x1b2/0x490
[   30.587852]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.588378]  kthread+0x323/0x710
[   30.588753]  ret_from_fork+0x41/0x80
[   30.589303]  ret_from_fork_asm+0x1a/0x30
[   30.589731] 
[   30.590006] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) 
[   30.590981] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.591320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.591806] ==================================================================