Hay
Date
July 9, 2025, 1:08 p.m.

Environment
qemu-arm64
qemu-x86_64

[   34.716183] ==================================================================
[   34.716278] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   34.716278] 
[   34.716342] Invalid free of 0x000000005aec47be (in kfence-#134):
[   34.716398]  test_invalid_addr_free+0x1ac/0x238
[   34.716446]  kunit_try_run_case+0x170/0x3f0
[   34.716493]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.716538]  kthread+0x328/0x630
[   34.716579]  ret_from_fork+0x10/0x20
[   34.716620] 
[   34.716645] kfence-#134: 0x0000000077ea0043-0x00000000f117cec1, size=32, cache=kmalloc-32
[   34.716645] 
[   34.716700] allocated by task 339 on cpu 0 at 34.716015s (0.000682s ago):
[   34.716765]  test_alloc+0x29c/0x628
[   34.716807]  test_invalid_addr_free+0xd4/0x238
[   34.716850]  kunit_try_run_case+0x170/0x3f0
[   34.716893]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.716938]  kthread+0x328/0x630
[   34.716974]  ret_from_fork+0x10/0x20
[   34.717014] 
[   34.717073] CPU: 0 UID: 0 PID: 339 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   34.717159] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.717188] Hardware name: linux,dummy-virt (DT)
[   34.717223] ==================================================================
[   34.820183] ==================================================================
[   34.820274] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   34.820274] 
[   34.820337] Invalid free of 0x00000000066d1b55 (in kfence-#135):
[   34.820393]  test_invalid_addr_free+0xec/0x238
[   34.820440]  kunit_try_run_case+0x170/0x3f0
[   34.820487]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.820533]  kthread+0x328/0x630
[   34.820573]  ret_from_fork+0x10/0x20
[   34.820614] 
[   34.820639] kfence-#135: 0x000000008e91f4d9-0x00000000160f87ee, size=32, cache=test
[   34.820639] 
[   34.820692] allocated by task 341 on cpu 1 at 34.820043s (0.000645s ago):
[   34.820755]  test_alloc+0x230/0x628
[   34.820797]  test_invalid_addr_free+0xd4/0x238
[   34.820838]  kunit_try_run_case+0x170/0x3f0
[   34.820880]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.820924]  kthread+0x328/0x630
[   34.820960]  ret_from_fork+0x10/0x20
[   34.820999] 
[   34.821047] CPU: 1 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250709 #1 PREEMPT 
[   34.821145] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.821179] Hardware name: linux,dummy-virt (DT)
[   34.821212] ==================================================================

[   29.980368] ==================================================================
[   29.980773] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   29.980773] 
[   29.981125] Invalid free of 0x(____ptrval____) (in kfence-#102):
[   29.981411]  test_invalid_addr_free+0x1e1/0x260
[   29.981602]  kunit_try_run_case+0x1a5/0x480
[   29.981787]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.982048]  kthread+0x337/0x6f0
[   29.982219]  ret_from_fork+0x116/0x1d0
[   29.982376]  ret_from_fork_asm+0x1a/0x30
[   29.982545] 
[   29.982613] kfence-#102: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   29.982613] 
[   29.983085] allocated by task 357 on cpu 1 at 29.980234s (0.002848s ago):
[   29.983314]  test_alloc+0x364/0x10f0
[   29.983437]  test_invalid_addr_free+0xdb/0x260
[   29.983609]  kunit_try_run_case+0x1a5/0x480
[   29.983973]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.984224]  kthread+0x337/0x6f0
[   29.984382]  ret_from_fork+0x116/0x1d0
[   29.984503]  ret_from_fork_asm+0x1a/0x30
[   29.984657] 
[   29.984781] CPU: 1 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   29.985403] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   29.985613] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.986034] ==================================================================
[   30.084337] ==================================================================
[   30.084712] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   30.084712] 
[   30.085059] Invalid free of 0x(____ptrval____) (in kfence-#103):
[   30.085350]  test_invalid_addr_free+0xfb/0x260
[   30.085546]  kunit_try_run_case+0x1a5/0x480
[   30.085690]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.085943]  kthread+0x337/0x6f0
[   30.086120]  ret_from_fork+0x116/0x1d0
[   30.086306]  ret_from_fork_asm+0x1a/0x30
[   30.086577] 
[   30.086645] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.086645] 
[   30.087138] allocated by task 359 on cpu 1 at 30.084229s (0.002906s ago):
[   30.087366]  test_alloc+0x2a6/0x10f0
[   30.087491]  test_invalid_addr_free+0xdb/0x260
[   30.087709]  kunit_try_run_case+0x1a5/0x480
[   30.088105]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.088341]  kthread+0x337/0x6f0
[   30.088492]  ret_from_fork+0x116/0x1d0
[   30.088669]  ret_from_fork_asm+0x1a/0x30
[   30.088901] 
[   30.089008] CPU: 1 UID: 0 PID: 359 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) 
[   30.089455] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   30.089611] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.089965] ==================================================================