Hay
Date
July 20, 2025, 8:11 p.m.

Environment
qemu-arm64
qemu-x86_64

[   20.625457] ==================================================================
[   20.625542] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.625542] 
[   20.625603] Invalid free of 0x000000007f143fae (in kfence-#96):
[   20.625658]  test_invalid_addr_free+0x1ac/0x238
[   20.625705]  kunit_try_run_case+0x170/0x3f0
[   20.625767]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.625810]  kthread+0x328/0x630
[   20.625851]  ret_from_fork+0x10/0x20
[   20.625890] 
[   20.625915] kfence-#96: 0x000000000f305c06-0x00000000c1a82395, size=32, cache=kmalloc-32
[   20.625915] 
[   20.625969] allocated by task 308 on cpu 1 at 20.625305s (0.000660s ago):
[   20.626032]  test_alloc+0x29c/0x628
[   20.626073]  test_invalid_addr_free+0xd4/0x238
[   20.626116]  kunit_try_run_case+0x170/0x3f0
[   20.626157]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.626215]  kthread+0x328/0x630
[   20.626253]  ret_from_fork+0x10/0x20
[   20.626294] 
[   20.626341] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.626422] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.626452] Hardware name: linux,dummy-virt (DT)
[   20.626488] ==================================================================
[   20.729440] ==================================================================
[   20.729525] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.729525] 
[   20.729586] Invalid free of 0x000000004f447cb1 (in kfence-#97):
[   20.729640]  test_invalid_addr_free+0xec/0x238
[   20.729688]  kunit_try_run_case+0x170/0x3f0
[   20.729730]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.729776]  kthread+0x328/0x630
[   20.729813]  ret_from_fork+0x10/0x20
[   20.729852] 
[   20.729876] kfence-#97: 0x000000000f836b44-0x000000008a57362b, size=32, cache=test
[   20.729876] 
[   20.729929] allocated by task 310 on cpu 1 at 20.729327s (0.000599s ago):
[   20.729992]  test_alloc+0x230/0x628
[   20.730033]  test_invalid_addr_free+0xd4/0x238
[   20.730074]  kunit_try_run_case+0x170/0x3f0
[   20.730115]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.730158]  kthread+0x328/0x630
[   20.730207]  ret_from_fork+0x10/0x20
[   20.730246] 
[   20.730287] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.730365] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.730393] Hardware name: linux,dummy-virt (DT)
[   20.730427] ==================================================================

[   18.987514] ==================================================================
[   18.987985] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.987985] 
[   18.988340] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.988647]  test_invalid_addr_free+0x1e1/0x260
[   18.988882]  kunit_try_run_case+0x1a5/0x480
[   18.989041]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.989330]  kthread+0x337/0x6f0
[   18.989498]  ret_from_fork+0x116/0x1d0
[   18.989668]  ret_from_fork_asm+0x1a/0x30
[   18.989831] 
[   18.989955] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.989955] 
[   18.990375] allocated by task 325 on cpu 0 at 18.987383s (0.002990s ago):
[   18.990681]  test_alloc+0x364/0x10f0
[   18.990853]  test_invalid_addr_free+0xdb/0x260
[   18.991014]  kunit_try_run_case+0x1a5/0x480
[   18.991176]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.991441]  kthread+0x337/0x6f0
[   18.991669]  ret_from_fork+0x116/0x1d0
[   18.991901]  ret_from_fork_asm+0x1a/0x30
[   18.992065] 
[   18.992167] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.992619] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.992852] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.993206] ==================================================================
[   19.091560] ==================================================================
[   19.092066] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.092066] 
[   19.092528] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   19.092839]  test_invalid_addr_free+0xfb/0x260
[   19.093097]  kunit_try_run_case+0x1a5/0x480
[   19.093256]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.093502]  kthread+0x337/0x6f0
[   19.093714]  ret_from_fork+0x116/0x1d0
[   19.093910]  ret_from_fork_asm+0x1a/0x30
[   19.094239] 
[   19.094352] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.094352] 
[   19.094653] allocated by task 327 on cpu 1 at 19.091424s (0.003226s ago):
[   19.094975]  test_alloc+0x2a6/0x10f0
[   19.095187]  test_invalid_addr_free+0xdb/0x260
[   19.095392]  kunit_try_run_case+0x1a5/0x480
[   19.095556]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.095867]  kthread+0x337/0x6f0
[   19.096073]  ret_from_fork+0x116/0x1d0
[   19.096272]  ret_from_fork_asm+0x1a/0x30
[   19.096504] 
[   19.096620] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   19.097144] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.097350] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.097790] ==================================================================