Hay
Date
July 15, 2025, 11:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.793557] ==================================================================
[   20.793640] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.793640] 
[   20.793701] Invalid free of 0x00000000f258e936 (in kfence-#95):
[   20.793752]  test_invalid_addr_free+0x1ac/0x238
[   20.793798]  kunit_try_run_case+0x170/0x3f0
[   20.793842]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.793887]  kthread+0x328/0x630
[   20.793924]  ret_from_fork+0x10/0x20
[   20.793963] 
[   20.793986] kfence-#95: 0x00000000b7761d8e-0x00000000688cae7b, size=32, cache=kmalloc-32
[   20.793986] 
[   20.794041] allocated by task 308 on cpu 0 at 20.793422s (0.000616s ago):
[   20.794103]  test_alloc+0x29c/0x628
[   20.794144]  test_invalid_addr_free+0xd4/0x238
[   20.794201]  kunit_try_run_case+0x170/0x3f0
[   20.794242]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.794286]  kthread+0x328/0x630
[   20.794320]  ret_from_fork+0x10/0x20
[   20.794360] 
[   20.794403] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.794483] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.794512] Hardware name: linux,dummy-virt (DT)
[   20.794546] ==================================================================
[   20.897505] ==================================================================
[   20.897588] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.897588] 
[   20.897648] Invalid free of 0x0000000059e7154d (in kfence-#96):
[   20.897702]  test_invalid_addr_free+0xec/0x238
[   20.897746]  kunit_try_run_case+0x170/0x3f0
[   20.897787]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.897831]  kthread+0x328/0x630
[   20.897866]  ret_from_fork+0x10/0x20
[   20.897905] 
[   20.897929] kfence-#96: 0x0000000035bd346d-0x00000000d1bd7121, size=32, cache=test
[   20.897929] 
[   20.897983] allocated by task 310 on cpu 0 at 20.897396s (0.000584s ago):
[   20.898044]  test_alloc+0x230/0x628
[   20.898086]  test_invalid_addr_free+0xd4/0x238
[   20.898128]  kunit_try_run_case+0x170/0x3f0
[   20.898168]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.898222]  kthread+0x328/0x630
[   20.898258]  ret_from_fork+0x10/0x20
[   20.898297] 
[   20.898338] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.898417] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.898446] Hardware name: linux,dummy-virt (DT)
[   20.898477] ==================================================================

[   18.435794] ==================================================================
[   18.436188] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.436188] 
[   18.436622] Invalid free of 0x(____ptrval____) (in kfence-#74):
[   18.436909]  test_invalid_addr_free+0x1e1/0x260
[   18.437076]  kunit_try_run_case+0x1a5/0x480
[   18.437294]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.437552]  kthread+0x337/0x6f0
[   18.437736]  ret_from_fork+0x116/0x1d0
[   18.437932]  ret_from_fork_asm+0x1a/0x30
[   18.438108] 
[   18.438206] kfence-#74: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.438206] 
[   18.438605] allocated by task 324 on cpu 1 at 18.435660s (0.002943s ago):
[   18.438909]  test_alloc+0x364/0x10f0
[   18.439088]  test_invalid_addr_free+0xdb/0x260
[   18.439277]  kunit_try_run_case+0x1a5/0x480
[   18.439479]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.439703]  kthread+0x337/0x6f0
[   18.439881]  ret_from_fork+0x116/0x1d0
[   18.440052]  ret_from_fork_asm+0x1a/0x30
[   18.440238] 
[   18.440339] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.440798] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.440979] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.441325] ==================================================================
[   18.539811] ==================================================================
[   18.540165] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.540165] 
[   18.540731] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   18.541298]  test_invalid_addr_free+0xfb/0x260
[   18.541679]  kunit_try_run_case+0x1a5/0x480
[   18.541850]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.542026]  kthread+0x337/0x6f0
[   18.542150]  ret_from_fork+0x116/0x1d0
[   18.542284]  ret_from_fork_asm+0x1a/0x30
[   18.542429] 
[   18.542627] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.542627] 
[   18.543475] allocated by task 326 on cpu 0 at 18.539694s (0.003779s ago):
[   18.544007]  test_alloc+0x2a6/0x10f0
[   18.544183]  test_invalid_addr_free+0xdb/0x260
[   18.544412]  kunit_try_run_case+0x1a5/0x480
[   18.544591]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.544945]  kthread+0x337/0x6f0
[   18.545144]  ret_from_fork+0x116/0x1d0
[   18.545327]  ret_from_fork_asm+0x1a/0x30
[   18.545586] 
[   18.545690] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.546149] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.546350] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.546753] ==================================================================