Hay
Date
July 9, 2025, 2:07 p.m.

Environment
qemu-arm64
qemu-x86_64

[   21.794224] ==================================================================
[   21.794317] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.794317] 
[   21.794382] Invalid free of 0x00000000307d343e (in kfence-#93):
[   21.794435]  test_invalid_addr_free+0x1ac/0x238
[   21.794482]  kunit_try_run_case+0x170/0x3f0
[   21.794528]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.794571]  kthread+0x328/0x630
[   21.794611]  ret_from_fork+0x10/0x20
[   21.794651] 
[   21.794676] kfence-#93: 0x00000000ae7ddc11-0x000000003f968809, size=32, cache=kmalloc-32
[   21.794676] 
[   21.794736] allocated by task 307 on cpu 0 at 21.794046s (0.000687s ago):
[   21.794803]  test_alloc+0x29c/0x628
[   21.794843]  test_invalid_addr_free+0xd4/0x238
[   21.794886]  kunit_try_run_case+0x170/0x3f0
[   21.794925]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.794970]  kthread+0x328/0x630
[   21.795005]  ret_from_fork+0x10/0x20
[   21.795046] 
[   21.795109] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5 #1 PREEMPT 
[   21.795200] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   21.795231] Hardware name: linux,dummy-virt (DT)
[   21.795267] ==================================================================
[   21.898199] ==================================================================
[   21.898286] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.898286] 
[   21.898353] Invalid free of 0x00000000311bee1e (in kfence-#94):
[   21.898406]  test_invalid_addr_free+0xec/0x238
[   21.898454]  kunit_try_run_case+0x170/0x3f0
[   21.898500]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.898543]  kthread+0x328/0x630
[   21.898585]  ret_from_fork+0x10/0x20
[   21.898625] 
[   21.898651] kfence-#94: 0x000000000294e244-0x000000008ed306dd, size=32, cache=test
[   21.898651] 
[   21.898705] allocated by task 309 on cpu 1 at 21.898050s (0.000651s ago):
[   21.898769]  test_alloc+0x230/0x628
[   21.898810]  test_invalid_addr_free+0xd4/0x238
[   21.898853]  kunit_try_run_case+0x170/0x3f0
[   21.898894]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.898940]  kthread+0x328/0x630
[   21.898977]  ret_from_fork+0x10/0x20
[   21.899018] 
[   21.899064] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5 #1 PREEMPT 
[   21.899162] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   21.899194] Hardware name: linux,dummy-virt (DT)
[   21.899229] ==================================================================

[   18.583315] ==================================================================
[   18.583738] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.583738] 
[   18.584105] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   18.584394]  test_invalid_addr_free+0xfb/0x260
[   18.584606]  kunit_try_run_case+0x1a5/0x480
[   18.584769]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.585037]  kthread+0x337/0x6f0
[   18.585209]  ret_from_fork+0x116/0x1d0
[   18.585396]  ret_from_fork_asm+0x1a/0x30
[   18.585542] 
[   18.585625] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.585625] 
[   18.586046] allocated by task 326 on cpu 0 at 18.583187s (0.002857s ago):
[   18.586360]  test_alloc+0x2a6/0x10f0
[   18.586538]  test_invalid_addr_free+0xdb/0x260
[   18.586750]  kunit_try_run_case+0x1a5/0x480
[   18.586966]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.587152]  kthread+0x337/0x6f0
[   18.587324]  ret_from_fork+0x116/0x1d0
[   18.587515]  ret_from_fork_asm+0x1a/0x30
[   18.587725] 
[   18.587872] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.588247] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.588385] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.588794] ==================================================================
[   18.479343] ==================================================================
[   18.479756] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.479756] 
[   18.480108] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.480391]  test_invalid_addr_free+0x1e1/0x260
[   18.480635]  kunit_try_run_case+0x1a5/0x480
[   18.481416]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.481680]  kthread+0x337/0x6f0
[   18.482017]  ret_from_fork+0x116/0x1d0
[   18.482207]  ret_from_fork_asm+0x1a/0x30
[   18.482603] 
[   18.482803] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.482803] 
[   18.483238] allocated by task 324 on cpu 1 at 18.479191s (0.004045s ago):
[   18.483755]  test_alloc+0x364/0x10f0
[   18.484098]  test_invalid_addr_free+0xdb/0x260
[   18.484310]  kunit_try_run_case+0x1a5/0x480
[   18.484646]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.485001]  kthread+0x337/0x6f0
[   18.485183]  ret_from_fork+0x116/0x1d0
[   18.485500]  ret_from_fork_asm+0x1a/0x30
[   18.485790] 
[   18.485969] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.486555] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.486772] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.487272] ==================================================================