Hay
Date
May 15, 2025, 10:38 a.m.

Environment
qemu-arm64
qemu-x86_64

[   22.559042] ==================================================================
[   22.559131] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.559131] 
[   22.559204] Invalid free of 0x000000001e561d7b (in kfence-#93):
[   22.559258]  test_invalid_addr_free+0x1ac/0x238
[   22.559307]  kunit_try_run_case+0x170/0x3f0
[   22.559352]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.559395]  kthread+0x328/0x630
[   22.559438]  ret_from_fork+0x10/0x20
[   22.559478] 
[   22.559502] kfence-#93: 0x00000000a0c95fc0-0x0000000049c60dc3, size=32, cache=kmalloc-32
[   22.559502] 
[   22.559556] allocated by task 307 on cpu 0 at 22.558906s (0.000647s ago):
[   22.559620]  test_alloc+0x29c/0x628
[   22.559660]  test_invalid_addr_free+0xd4/0x238
[   22.559702]  kunit_try_run_case+0x170/0x3f0
[   22.559742]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.559782]  kthread+0x328/0x630
[   22.559821]  ret_from_fork+0x10/0x20
[   22.559860] 
[   22.559903] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   22.559986] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.560015] Hardware name: linux,dummy-virt (DT)
[   22.560050] ==================================================================
[   22.662320] ==================================================================
[   22.662409] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.662409] 
[   22.662469] Invalid free of 0x00000000f418ffab (in kfence-#94):
[   22.662523]  test_invalid_addr_free+0xec/0x238
[   22.662568]  kunit_try_run_case+0x170/0x3f0
[   22.662612]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.662653]  kthread+0x328/0x630
[   22.662695]  ret_from_fork+0x10/0x20
[   22.662742] 
[   22.662765] kfence-#94: 0x00000000a6f78ade-0x000000007118df67, size=32, cache=test
[   22.662765] 
[   22.662816] allocated by task 309 on cpu 1 at 22.662194s (0.000618s ago):
[   22.662878]  test_alloc+0x230/0x628
[   22.662916]  test_invalid_addr_free+0xd4/0x238
[   22.662959]  kunit_try_run_case+0x170/0x3f0
[   22.662999]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.663039]  kthread+0x328/0x630
[   22.663079]  ret_from_fork+0x10/0x20
[   22.663117] 
[   22.663174] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   22.663257] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.663286] Hardware name: linux,dummy-virt (DT)
[   22.663321] ==================================================================


[   19.771199] ==================================================================
[   19.771689] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   19.771689] 
[   19.771898] Invalid free of 0x(____ptrval____) (in kfence-#91):
[   19.772131]  test_invalid_addr_free+0x1e1/0x260
[   19.772298]  kunit_try_run_case+0x1a5/0x480
[   19.772427]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.772602]  kthread+0x337/0x6f0
[   19.772725]  ret_from_fork+0x116/0x1d0
[   19.772835]  ret_from_fork_asm+0x1a/0x30
[   19.773012] 
[   19.773072] kfence-#91: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   19.773072] 
[   19.773264] allocated by task 325 on cpu 1 at 19.771033s (0.002229s ago):
[   19.773422]  test_alloc+0x364/0x10f0
[   19.773515]  test_invalid_addr_free+0xdb/0x260
[   19.773782]  kunit_try_run_case+0x1a5/0x480
[   19.774060]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.774398]  kthread+0x337/0x6f0
[   19.774631]  ret_from_fork+0x116/0x1d0
[   19.774900]  ret_from_fork_asm+0x1a/0x30
[   19.775096] 
[   19.775182] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) 
[   19.775409] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.775620] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.776126] ==================================================================
[   19.875256] ==================================================================
[   19.875709] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   19.875709] 
[   19.875943] Invalid free of 0x(____ptrval____) (in kfence-#92):
[   19.876067]  test_invalid_addr_free+0xfb/0x260
[   19.876168]  kunit_try_run_case+0x1a5/0x480
[   19.876295]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.876405]  kthread+0x337/0x6f0
[   19.876488]  ret_from_fork+0x116/0x1d0
[   19.876575]  ret_from_fork_asm+0x1a/0x30
[   19.876663] 
[   19.876745] kfence-#92: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   19.876745] 
[   19.877082] allocated by task 327 on cpu 0 at 19.875122s (0.001958s ago):
[   19.877254]  test_alloc+0x2a6/0x10f0
[   19.877345]  test_invalid_addr_free+0xdb/0x260
[   19.877442]  kunit_try_run_case+0x1a5/0x480
[   19.877667]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   19.877939]  kthread+0x337/0x6f0
[   19.878111]  ret_from_fork+0x116/0x1d0
[   19.878314]  ret_from_fork_asm+0x1a/0x30
[   19.878520] 
[   19.878644] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) 
[   19.879048] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.879212] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   19.879506] ==================================================================