Hay
Date
June 24, 2025, 12:47 p.m.

Environment
qemu-arm64
qemu-x86_64

[   31.193982] ==================================================================
[   31.194119] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   31.194119] 
[   31.194243] Invalid free of 0x0000000094300254 (in kfence-#131):
[   31.194365]  test_invalid_addr_free+0x1ac/0x238
[   31.194498]  kunit_try_run_case+0x170/0x3f0
[   31.194605]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.194710]  kthread+0x328/0x630
[   31.194816]  ret_from_fork+0x10/0x20
[   31.194915] 
[   31.194969] kfence-#131: 0x000000007d9c16b7-0x000000000243442a, size=32, cache=kmalloc-32
[   31.194969] 
[   31.195098] allocated by task 309 on cpu 1 at 31.193681s (0.001409s ago):
[   31.195255]  test_alloc+0x29c/0x628
[   31.195449]  test_invalid_addr_free+0xd4/0x238
[   31.195564]  kunit_try_run_case+0x170/0x3f0
[   31.195689]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.195871]  kthread+0x328/0x630
[   31.195997]  ret_from_fork+0x10/0x20
[   31.196108] 
[   31.196244] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   31.196619] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.196704] Hardware name: linux,dummy-virt (DT)
[   31.196789] ==================================================================
[   31.301587] ==================================================================
[   31.301728] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   31.301728] 
[   31.301850] Invalid free of 0x0000000006ad0a83 (in kfence-#132):
[   31.301960]  test_invalid_addr_free+0xec/0x238
[   31.302068]  kunit_try_run_case+0x170/0x3f0
[   31.302172]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.302286]  kthread+0x328/0x630
[   31.303163]  ret_from_fork+0x10/0x20
[   31.303317] 
[   31.303401] kfence-#132: 0x0000000012e76533-0x0000000082ce78d4, size=32, cache=test
[   31.303401] 
[   31.304248] allocated by task 311 on cpu 1 at 31.301371s (0.002164s ago):
[   31.304601]  test_alloc+0x230/0x628
[   31.305279]  test_invalid_addr_free+0xd4/0x238
[   31.305796]  kunit_try_run_case+0x170/0x3f0
[   31.305905]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.306067]  kthread+0x328/0x630
[   31.306184]  ret_from_fork+0x10/0x20
[   31.306309] 
[   31.306427] CPU: 1 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT 
[   31.306875] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.307102] Hardware name: linux,dummy-virt (DT)
[   31.307222] ==================================================================

[   18.491088] ==================================================================
[   18.491569] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.491569] 
[   18.491843] Invalid free of 0x(____ptrval____) (in kfence-#93):
[   18.492306]  test_invalid_addr_free+0x1e1/0x260
[   18.492614]  kunit_try_run_case+0x1a5/0x480
[   18.492824]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.493174]  kthread+0x337/0x6f0
[   18.493427]  ret_from_fork+0x41/0x80
[   18.493846]  ret_from_fork_asm+0x1a/0x30
[   18.494589] 
[   18.494794] kfence-#93: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.494794] 
[   18.495219] allocated by task 327 on cpu 1 at 18.490880s (0.004335s ago):
[   18.495977]  test_alloc+0x364/0x10f0
[   18.496287]  test_invalid_addr_free+0xdb/0x260
[   18.496575]  kunit_try_run_case+0x1a5/0x480
[   18.496778]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.496963]  kthread+0x337/0x6f0
[   18.497233]  ret_from_fork+0x41/0x80
[   18.497567]  ret_from_fork_asm+0x1a/0x30
[   18.497769] 
[   18.497982] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   18.498618] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.498927] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.499360] ==================================================================
[   18.595200] ==================================================================
[   18.595655] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.595655] 
[   18.595912] Invalid free of 0x(____ptrval____) (in kfence-#94):
[   18.596340]  test_invalid_addr_free+0xfb/0x260
[   18.596674]  kunit_try_run_case+0x1a5/0x480
[   18.596990]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.597301]  kthread+0x337/0x6f0
[   18.597479]  ret_from_fork+0x41/0x80
[   18.597814]  ret_from_fork_asm+0x1a/0x30
[   18.598012] 
[   18.598125] kfence-#94: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.598125] 
[   18.598600] allocated by task 329 on cpu 0 at 18.594994s (0.003600s ago):
[   18.599218]  test_alloc+0x2a6/0x10f0
[   18.599463]  test_invalid_addr_free+0xdb/0x260
[   18.599648]  kunit_try_run_case+0x1a5/0x480
[   18.599833]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.600041]  kthread+0x337/0x6f0
[   18.600197]  ret_from_fork+0x41/0x80
[   18.600360]  ret_from_fork_asm+0x1a/0x30
[   18.600535] 
[   18.600760] CPU: 0 UID: 0 PID: 329 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc2 #1 PREEMPT(voluntary) 
[   18.601577] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.601903] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.602739] ==================================================================