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

Environment
qemu-arm64
qemu-x86_64

[   22.020353] ==================================================================
[   22.020451] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.020451] 
[   22.020514] Invalid free of 0x000000000d5fe8e8 (in kfence-#100):
[   22.020567]  test_invalid_addr_free+0xec/0x238
[   22.020616]  kunit_try_run_case+0x170/0x3f0
[   22.020660]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.020704]  kthread+0x328/0x630
[   22.020743]  ret_from_fork+0x10/0x20
[   22.020784] 
[   22.020808] kfence-#100: 0x00000000a818be61-0x00000000ca1a1cea, size=32, cache=test
[   22.020808] 
[   22.020863] allocated by task 309 on cpu 0 at 22.020217s (0.000642s ago):
[   22.020924]  test_alloc+0x230/0x628
[   22.020966]  test_invalid_addr_free+0xd4/0x238
[   22.021006]  kunit_try_run_case+0x170/0x3f0
[   22.021046]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.021090]  kthread+0x328/0x630
[   22.021140]  ret_from_fork+0x10/0x20
[   22.021182] 
[   22.021227] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   22.021309] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.021336] Hardware name: linux,dummy-virt (DT)
[   22.021371] ==================================================================
[   21.916330] ==================================================================
[   21.916424] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.916424] 
[   21.916488] Invalid free of 0x000000006532ea9e (in kfence-#99):
[   21.916543]  test_invalid_addr_free+0x1ac/0x238
[   21.916591]  kunit_try_run_case+0x170/0x3f0
[   21.916637]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.916681]  kthread+0x328/0x630
[   21.916722]  ret_from_fork+0x10/0x20
[   21.916764] 
[   21.916789] kfence-#99: 0x00000000300c3cff-0x00000000efe7d755, size=32, cache=kmalloc-32
[   21.916789] 
[   21.916845] allocated by task 307 on cpu 0 at 21.916176s (0.000665s ago):
[   21.916909]  test_alloc+0x29c/0x628
[   21.916949]  test_invalid_addr_free+0xd4/0x238
[   21.916991]  kunit_try_run_case+0x170/0x3f0
[   21.917032]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.917075]  kthread+0x328/0x630
[   21.917110]  ret_from_fork+0x10/0x20
[   21.917163] 
[   21.917211] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT 
[   21.917292] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.917321] Hardware name: linux,dummy-virt (DT)
[   21.917356] ==================================================================

[   18.635449] ==================================================================
[   18.635843] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.635843] 
[   18.636235] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   18.636520]  test_invalid_addr_free+0x1e1/0x260
[   18.636750]  kunit_try_run_case+0x1a5/0x480
[   18.636964]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.637249]  kthread+0x337/0x6f0
[   18.637442]  ret_from_fork+0x116/0x1d0
[   18.637599]  ret_from_fork_asm+0x1a/0x30
[   18.637753] 
[   18.637826] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.637826] 
[   18.638505] allocated by task 324 on cpu 0 at 18.635330s (0.003173s ago):
[   18.638809]  test_alloc+0x364/0x10f0
[   18.638940]  test_invalid_addr_free+0xdb/0x260
[   18.639171]  kunit_try_run_case+0x1a5/0x480
[   18.639446]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.639633]  kthread+0x337/0x6f0
[   18.639764]  ret_from_fork+0x116/0x1d0
[   18.639973]  ret_from_fork_asm+0x1a/0x30
[   18.640170] 
[   18.640308] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.640768] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.640973] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.641304] ==================================================================
[   18.739493] ==================================================================
[   18.739890] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.739890] 
[   18.740217] Invalid free of 0x(____ptrval____) (in kfence-#79):
[   18.740490]  test_invalid_addr_free+0xfb/0x260
[   18.740695]  kunit_try_run_case+0x1a5/0x480
[   18.740880]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.741131]  kthread+0x337/0x6f0
[   18.741301]  ret_from_fork+0x116/0x1d0
[   18.741438]  ret_from_fork_asm+0x1a/0x30
[   18.741639] 
[   18.741748] kfence-#79: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.741748] 
[   18.742132] allocated by task 326 on cpu 0 at 18.739386s (0.002745s ago):
[   18.742417]  test_alloc+0x2a6/0x10f0
[   18.742550]  test_invalid_addr_free+0xdb/0x260
[   18.742779]  kunit_try_run_case+0x1a5/0x480
[   18.742991]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.743214]  kthread+0x337/0x6f0
[   18.743336]  ret_from_fork+0x116/0x1d0
[   18.743515]  ret_from_fork_asm+0x1a/0x30
[   18.743739] 
[   18.743861] CPU: 0 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5 #1 PREEMPT(voluntary) 
[   18.744377] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.744557] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.744877] ==================================================================