Hay
Date
July 1, 2025, 3:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.709791] ==================================================================
[   22.709885] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.709885] 
[   22.709943] Invalid free of 0x00000000daabb85f (in kfence-#104):
[   22.709999]  test_invalid_addr_free+0xec/0x238
[   22.710043]  kunit_try_run_case+0x170/0x3f0
[   22.710086]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.710132]  kthread+0x328/0x630
[   22.710169]  ret_from_fork+0x10/0x20
[   22.710209] 
[   22.710232] kfence-#104: 0x000000001b3fd34f-0x00000000400c9627, size=32, cache=test
[   22.710232] 
[   22.710285] allocated by task 310 on cpu 0 at 22.709690s (0.000591s ago):
[   22.710348]  test_alloc+0x230/0x628
[   22.710387]  test_invalid_addr_free+0xd4/0x238
[   22.710430]  kunit_try_run_case+0x170/0x3f0
[   22.710469]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.710512]  kthread+0x328/0x630
[   22.710547]  ret_from_fork+0x10/0x20
[   22.710600] 
[   22.710642] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.710721] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.710749] Hardware name: linux,dummy-virt (DT)
[   22.710784] ==================================================================
[   22.605901] ==================================================================
[   22.605987] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.605987] 
[   22.606048] Invalid free of 0x0000000027803fb8 (in kfence-#103):
[   22.606104]  test_invalid_addr_free+0x1ac/0x238
[   22.606153]  kunit_try_run_case+0x170/0x3f0
[   22.606196]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.606240]  kthread+0x328/0x630
[   22.606278]  ret_from_fork+0x10/0x20
[   22.606319] 
[   22.606342] kfence-#103: 0x000000008808200e-0x000000008184fef1, size=32, cache=kmalloc-32
[   22.606342] 
[   22.606400] allocated by task 308 on cpu 0 at 22.605756s (0.000640s ago):
[   22.606462]  test_alloc+0x29c/0x628
[   22.606502]  test_invalid_addr_free+0xd4/0x238
[   22.606545]  kunit_try_run_case+0x170/0x3f0
[   22.606597]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.606642]  kthread+0x328/0x630
[   22.606679]  ret_from_fork+0x10/0x20
[   22.606719] 
[   22.606763] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.606843] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.606874] Hardware name: linux,dummy-virt (DT)
[   22.606911] ==================================================================

[   18.263174] ==================================================================
[   18.263555] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.263555] 
[   18.263894] Invalid free of 0x(____ptrval____) (in kfence-#84):
[   18.264203]  test_invalid_addr_free+0xfb/0x260
[   18.264409]  kunit_try_run_case+0x1a5/0x480
[   18.264564]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.265050]  kthread+0x337/0x6f0
[   18.265221]  ret_from_fork+0x116/0x1d0
[   18.265359]  ret_from_fork_asm+0x1a/0x30
[   18.265529] 
[   18.265630] kfence-#84: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.265630] 
[   18.266101] allocated by task 326 on cpu 0 at 18.263045s (0.003055s ago):
[   18.266395]  test_alloc+0x2a6/0x10f0
[   18.266548]  test_invalid_addr_free+0xdb/0x260
[   18.266765]  kunit_try_run_case+0x1a5/0x480
[   18.266993]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.267228]  kthread+0x337/0x6f0
[   18.267351]  ret_from_fork+0x116/0x1d0
[   18.267484]  ret_from_fork_asm+0x1a/0x30
[   18.267723] 
[   18.267851] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.268350] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.268545] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.268828] ==================================================================
[   18.159169] ==================================================================
[   18.159625] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.159625] 
[   18.160047] Invalid free of 0x(____ptrval____) (in kfence-#83):
[   18.160335]  test_invalid_addr_free+0x1e1/0x260
[   18.160522]  kunit_try_run_case+0x1a5/0x480
[   18.160771]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.160961]  kthread+0x337/0x6f0
[   18.161153]  ret_from_fork+0x116/0x1d0
[   18.161316]  ret_from_fork_asm+0x1a/0x30
[   18.161454] 
[   18.161579] kfence-#83: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.161579] 
[   18.162241] allocated by task 324 on cpu 0 at 18.159033s (0.003205s ago):
[   18.162554]  test_alloc+0x364/0x10f0
[   18.162756]  test_invalid_addr_free+0xdb/0x260
[   18.162966]  kunit_try_run_case+0x1a5/0x480
[   18.163211]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.163377]  kthread+0x337/0x6f0
[   18.163727]  ret_from_fork+0x116/0x1d0
[   18.163926]  ret_from_fork_asm+0x1a/0x30
[   18.164144] 
[   18.164271] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   18.164735] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.164926] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.165231] ==================================================================