Hay
Date
June 26, 2025, 11:12 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   70.249125] ==================================================================
[   70.249261] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   70.249261] 
[   70.249397] Invalid free of 0x(____ptrval____) (in kfence-#135):
[   70.249501]  test_invalid_addr_free+0x1ac/0x238
[   70.253006]  kunit_try_run_case+0x170/0x3f0
[   70.257173]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   70.262641]  kthread+0x328/0x630
[   70.265853]  ret_from_fork+0x10/0x20
[   70.269412] 
[   70.270891] kfence-#135: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   70.270891] 
[   70.280525] allocated by task 356 on cpu 0 at 70.249077s (0.031446s ago):
[   70.287306]  test_alloc+0x29c/0x628
[   70.290766]  test_invalid_addr_free+0xd4/0x238
[   70.295193]  kunit_try_run_case+0x170/0x3f0
[   70.299361]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   70.304828]  kthread+0x328/0x630
[   70.308040]  ret_from_fork+0x10/0x20
[   70.311601] 
[   70.313085] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   70.322980] Tainted: [B]=BAD_PAGE, [N]=TEST
[   70.327138] Hardware name: WinLink E850-96 board (DT)
[   70.332176] ==================================================================
[   70.457124] ==================================================================
[   70.457254] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   70.457254] 
[   70.457382] Invalid free of 0x(____ptrval____) (in kfence-#137):
[   70.457485]  test_invalid_addr_free+0xec/0x238
[   70.460826]  kunit_try_run_case+0x170/0x3f0
[   70.464992]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   70.470461]  kthread+0x328/0x630
[   70.473673]  ret_from_fork+0x10/0x20
[   70.477232] 
[   70.478711] kfence-#137: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   70.478711] 
[   70.487824] allocated by task 358 on cpu 7 at 70.457079s (0.030742s ago):
[   70.494606]  test_alloc+0x230/0x628
[   70.498065]  test_invalid_addr_free+0xd4/0x238
[   70.502492]  kunit_try_run_case+0x170/0x3f0
[   70.506659]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   70.512127]  kthread+0x328/0x630
[   70.515339]  ret_from_fork+0x10/0x20
[   70.518900] 
[   70.520383] CPU: 7 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   70.530279] Tainted: [B]=BAD_PAGE, [N]=TEST
[   70.534437] Hardware name: WinLink E850-96 board (DT)
[   70.539474] ==================================================================

[   23.032466] ==================================================================
[   23.032561] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.032561] 
[   23.032617] Invalid free of 0x00000000ccc1d97f (in kfence-#96):
[   23.032669]  test_invalid_addr_free+0xec/0x238
[   23.032712]  kunit_try_run_case+0x170/0x3f0
[   23.032759]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.032805]  kthread+0x328/0x630
[   23.032847]  ret_from_fork+0x10/0x20
[   23.032904] 
[   23.032930] kfence-#96: 0x00000000bdc96dad-0x000000007180765e, size=32, cache=test
[   23.032930] 
[   23.032982] allocated by task 311 on cpu 1 at 23.032348s (0.000630s ago):
[   23.033044]  test_alloc+0x230/0x628
[   23.033084]  test_invalid_addr_free+0xd4/0x238
[   23.033124]  kunit_try_run_case+0x170/0x3f0
[   23.033165]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.033210]  kthread+0x328/0x630
[   23.033250]  ret_from_fork+0x10/0x20
[   23.033290] 
[   23.033333] CPU: 1 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   23.033415] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.033446] Hardware name: linux,dummy-virt (DT)
[   23.033479] ==================================================================
[   22.928865] ==================================================================
[   22.929060] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.929060] 
[   22.929120] Invalid free of 0x00000000dbc1e4e1 (in kfence-#95):
[   22.929206]  test_invalid_addr_free+0x1ac/0x238
[   22.929251]  kunit_try_run_case+0x170/0x3f0
[   22.929327]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.929391]  kthread+0x328/0x630
[   22.929451]  ret_from_fork+0x10/0x20
[   22.929494] 
[   22.929573] kfence-#95: 0x00000000720e4533-0x00000000cd701452, size=32, cache=kmalloc-32
[   22.929573] 
[   22.929683] allocated by task 309 on cpu 1 at 22.928684s (0.000979s ago):
[   22.929746]  test_alloc+0x29c/0x628
[   22.929839]  test_invalid_addr_free+0xd4/0x238
[   22.929892]  kunit_try_run_case+0x170/0x3f0
[   22.929933]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.930004]  kthread+0x328/0x630
[   22.930050]  ret_from_fork+0x10/0x20
[   22.930210] 
[   22.930258] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   22.930381] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.930418] Hardware name: linux,dummy-virt (DT)
[   22.930453] ==================================================================

[   16.917232] ==================================================================
[   16.917695] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   16.917695] 
[   16.918064] Invalid free of 0x(____ptrval____) (in kfence-#80):
[   16.918352]  test_invalid_addr_free+0xfb/0x260
[   16.918538]  kunit_try_run_case+0x1a5/0x480
[   16.918726]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.918968]  kthread+0x337/0x6f0
[   16.919144]  ret_from_fork+0x41/0x80
[   16.919329]  ret_from_fork_asm+0x1a/0x30
[   16.919505] 
[   16.919577] kfence-#80: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.919577] 
[   16.919992] allocated by task 328 on cpu 0 at 16.917103s (0.002886s ago):
[   16.920281]  test_alloc+0x2a6/0x10f0
[   16.920445]  test_invalid_addr_free+0xdb/0x260
[   16.920597]  kunit_try_run_case+0x1a5/0x480
[   16.920853]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.921116]  kthread+0x337/0x6f0
[   16.921246]  ret_from_fork+0x41/0x80
[   16.921376]  ret_from_fork_asm+0x1a/0x30
[   16.921638] 
[   16.921761] CPU: 0 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT(voluntary) 
[   16.922231] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.922435] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.922831] ==================================================================
[   16.813499] ==================================================================
[   16.813951] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   16.813951] 
[   16.814302] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   16.814587]  test_invalid_addr_free+0x1e1/0x260
[   16.814837]  kunit_try_run_case+0x1a5/0x480
[   16.815070]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.815328]  kthread+0x337/0x6f0
[   16.815495]  ret_from_fork+0x41/0x80
[   16.815683]  ret_from_fork_asm+0x1a/0x30
[   16.815851] 
[   16.815960] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.815960] 
[   16.816404] allocated by task 326 on cpu 1 at 16.813353s (0.003048s ago):
[   16.816892]  test_alloc+0x364/0x10f0
[   16.817093]  test_invalid_addr_free+0xdb/0x260
[   16.817285]  kunit_try_run_case+0x1a5/0x480
[   16.817477]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.818218]  kthread+0x337/0x6f0
[   16.818582]  ret_from_fork+0x41/0x80
[   16.818893]  ret_from_fork_asm+0x1a/0x30
[   16.819254] 
[   16.819385] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT(voluntary) 
[   16.819872] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.820112] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.820481] ==================================================================