Hay
Date
July 12, 2025, 11:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.127983] ==================================================================
[   22.128103] BUG: KFENCE: invalid free in test_double_free+0x1bc/0x238
[   22.128103] 
[   22.128191] Invalid free of 0x00000000c26167d0 (in kfence-#100):
[   22.128260]  test_double_free+0x1bc/0x238
[   22.128307]  kunit_try_run_case+0x170/0x3f0
[   22.128354]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.128398]  kthread+0x328/0x630
[   22.128437]  ret_from_fork+0x10/0x20
[   22.128478] 
[   22.128502] kfence-#100: 0x00000000c26167d0-0x0000000020be4278, size=32, cache=kmalloc-32
[   22.128502] 
[   22.128558] allocated by task 303 on cpu 0 at 22.127671s (0.000883s ago):
[   22.128621]  test_alloc+0x29c/0x628
[   22.128662]  test_double_free+0xd4/0x238
[   22.128702]  kunit_try_run_case+0x170/0x3f0
[   22.128742]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.128785]  kthread+0x328/0x630
[   22.128823]  ret_from_fork+0x10/0x20
[   22.128861] 
[   22.128884] freed by task 303 on cpu 0 at 22.127751s (0.001129s ago):
[   22.128945]  test_double_free+0x1ac/0x238
[   22.128986]  kunit_try_run_case+0x170/0x3f0
[   22.129026]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.129070]  kthread+0x328/0x630
[   22.129105]  ret_from_fork+0x10/0x20
[   22.129145] 
[   22.129204] CPU: 0 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.129285] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.129315] Hardware name: linux,dummy-virt (DT)
[   22.129350] ==================================================================
[   22.231864] ==================================================================
[   22.231956] BUG: KFENCE: invalid free in test_double_free+0x100/0x238
[   22.231956] 
[   22.232020] Invalid free of 0x00000000cca947ba (in kfence-#101):
[   22.232076]  test_double_free+0x100/0x238
[   22.232121]  kunit_try_run_case+0x170/0x3f0
[   22.232166]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.232230]  kthread+0x328/0x630
[   22.232267]  ret_from_fork+0x10/0x20
[   22.232306] 
[   22.232330] kfence-#101: 0x00000000cca947ba-0x000000002cbd5294, size=32, cache=test
[   22.232330] 
[   22.232385] allocated by task 305 on cpu 0 at 22.231667s (0.000714s ago):
[   22.232445]  test_alloc+0x230/0x628
[   22.232487]  test_double_free+0xd4/0x238
[   22.232527]  kunit_try_run_case+0x170/0x3f0
[   22.232567]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.232612]  kthread+0x328/0x630
[   22.232647]  ret_from_fork+0x10/0x20
[   22.232687] 
[   22.232710] freed by task 305 on cpu 0 at 22.231726s (0.000980s ago):
[   22.232771]  test_double_free+0xf0/0x238
[   22.232812]  kunit_try_run_case+0x170/0x3f0
[   22.232851]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.232895]  kthread+0x328/0x630
[   22.232931]  ret_from_fork+0x10/0x20
[   22.232971] 
[   22.233013] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.233092] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.233120] Hardware name: linux,dummy-virt (DT)
[   22.233154] ==================================================================

[   18.032513] ==================================================================
[   18.032938] BUG: KFENCE: invalid free in test_double_free+0x1d3/0x260
[   18.032938] 
[   18.033299] Invalid free of 0x(____ptrval____) (in kfence-#72):
[   18.033592]  test_double_free+0x1d3/0x260
[   18.033810]  kunit_try_run_case+0x1a5/0x480
[   18.034010]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.034204]  kthread+0x337/0x6f0
[   18.034356]  ret_from_fork+0x116/0x1d0
[   18.034535]  ret_from_fork_asm+0x1a/0x30
[   18.034750] 
[   18.034853] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.034853] 
[   18.035237] allocated by task 320 on cpu 0 at 18.032275s (0.002960s ago):
[   18.035514]  test_alloc+0x364/0x10f0
[   18.035647]  test_double_free+0xdb/0x260
[   18.035846]  kunit_try_run_case+0x1a5/0x480
[   18.036055]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.036305]  kthread+0x337/0x6f0
[   18.036430]  ret_from_fork+0x116/0x1d0
[   18.036598]  ret_from_fork_asm+0x1a/0x30
[   18.036800] 
[   18.036892] freed by task 320 on cpu 0 at 18.032325s (0.004564s ago):
[   18.037198]  test_double_free+0x1e0/0x260
[   18.037371]  kunit_try_run_case+0x1a5/0x480
[   18.037519]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.037779]  kthread+0x337/0x6f0
[   18.037952]  ret_from_fork+0x116/0x1d0
[   18.038153]  ret_from_fork_asm+0x1a/0x30
[   18.038334] 
[   18.038458] CPU: 0 UID: 0 PID: 320 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.038790] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.038986] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.039378] ==================================================================
[   18.136617] ==================================================================
[   18.136990] BUG: KFENCE: invalid free in test_double_free+0x112/0x260
[   18.136990] 
[   18.137256] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   18.137463]  test_double_free+0x112/0x260
[   18.137612]  kunit_try_run_case+0x1a5/0x480
[   18.137766]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.137942]  kthread+0x337/0x6f0
[   18.138104]  ret_from_fork+0x116/0x1d0
[   18.138310]  ret_from_fork_asm+0x1a/0x30
[   18.138512] 
[   18.138610] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.138610] 
[   18.138916] allocated by task 322 on cpu 1 at 18.136414s (0.002500s ago):
[   18.139209]  test_alloc+0x2a6/0x10f0
[   18.139440]  test_double_free+0xdb/0x260
[   18.139640]  kunit_try_run_case+0x1a5/0x480
[   18.139851]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.140079]  kthread+0x337/0x6f0
[   18.140207]  ret_from_fork+0x116/0x1d0
[   18.140403]  ret_from_fork_asm+0x1a/0x30
[   18.142447] 
[   18.142933] freed by task 322 on cpu 1 at 18.136497s (0.006433s ago):
[   18.143838]  test_double_free+0xfa/0x260
[   18.144292]  kunit_try_run_case+0x1a5/0x480
[   18.144448]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.144625]  kthread+0x337/0x6f0
[   18.144747]  ret_from_fork+0x116/0x1d0
[   18.144877]  ret_from_fork_asm+0x1a/0x30
[   18.145016] 
[   18.145115] CPU: 1 UID: 0 PID: 322 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.145921] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.146073] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.146428] ==================================================================