Hay
Date
July 17, 2025, 10:12 a.m.

Environment
qemu-arm64
qemu-x86_64

[   35.204874] ==================================================================
[   35.204954] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   35.204954] 
[   35.205016] Invalid free of 0x0000000038fa978d (in kfence-#142):
[   35.205088]  test_invalid_addr_free+0x1ac/0x238
[   35.205134]  kunit_try_run_case+0x170/0x3f0
[   35.205178]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.205224]  kthread+0x328/0x630
[   35.205266]  ret_from_fork+0x10/0x20
[   35.205307] 
[   35.205331] kfence-#142: 0x0000000054b67fc4-0x0000000054eb5d6f, size=32, cache=kmalloc-32
[   35.205331] 
[   35.205385] allocated by task 338 on cpu 1 at 35.204733s (0.000648s ago):
[   35.205452]  test_alloc+0x29c/0x628
[   35.205491]  test_invalid_addr_free+0xd4/0x238
[   35.205531]  kunit_try_run_case+0x170/0x3f0
[   35.205571]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.205614]  kthread+0x328/0x630
[   35.205651]  ret_from_fork+0x10/0x20
[   35.205692] 
[   35.205736] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT 
[   35.205815] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.205844] Hardware name: linux,dummy-virt (DT)
[   35.205877] ==================================================================
[   35.308858] ==================================================================
[   35.308946] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   35.308946] 
[   35.309005] Invalid free of 0x000000005edac6bc (in kfence-#143):
[   35.309077]  test_invalid_addr_free+0xec/0x238
[   35.309121]  kunit_try_run_case+0x170/0x3f0
[   35.309165]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.309209]  kthread+0x328/0x630
[   35.309247]  ret_from_fork+0x10/0x20
[   35.309287] 
[   35.309311] kfence-#143: 0x0000000019d546bd-0x0000000026079be3, size=32, cache=test
[   35.309311] 
[   35.309363] allocated by task 340 on cpu 1 at 35.308735s (0.000624s ago):
[   35.309428]  test_alloc+0x230/0x628
[   35.309467]  test_invalid_addr_free+0xd4/0x238
[   35.309504]  kunit_try_run_case+0x170/0x3f0
[   35.309544]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.309587]  kthread+0x328/0x630
[   35.309622]  ret_from_fork+0x10/0x20
[   35.309661] 
[   35.309701] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT 
[   35.309782] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.309813] Hardware name: linux,dummy-virt (DT)
[   35.309844] ==================================================================

[   31.126665] ==================================================================
[   31.127097] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   31.127097] 
[   31.127585] Invalid free of 0x(____ptrval____) (in kfence-#96):
[   31.127863]  test_invalid_addr_free+0x1e1/0x260
[   31.128019]  kunit_try_run_case+0x1a5/0x480
[   31.128243]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.128536]  kthread+0x337/0x6f0
[   31.128708]  ret_from_fork+0x116/0x1d0
[   31.128850]  ret_from_fork_asm+0x1a/0x30
[   31.129031] 
[   31.129108] kfence-#96: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.129108] 
[   31.129573] allocated by task 356 on cpu 0 at 31.126536s (0.003035s ago):
[   31.129800]  test_alloc+0x364/0x10f0
[   31.130021]  test_invalid_addr_free+0xdb/0x260
[   31.130247]  kunit_try_run_case+0x1a5/0x480
[   31.130515]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.130914]  kthread+0x337/0x6f0
[   31.131100]  ret_from_fork+0x116/0x1d0
[   31.131236]  ret_from_fork_asm+0x1a/0x30
[   31.131412] 
[   31.131559] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) 
[   31.132102] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.132299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.132854] ==================================================================
[   31.230707] ==================================================================
[   31.231075] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   31.231075] 
[   31.231487] Invalid free of 0x(____ptrval____) (in kfence-#97):
[   31.231777]  test_invalid_addr_free+0xfb/0x260
[   31.231968]  kunit_try_run_case+0x1a5/0x480
[   31.232214]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.232459]  kthread+0x337/0x6f0
[   31.232652]  ret_from_fork+0x116/0x1d0
[   31.232831]  ret_from_fork_asm+0x1a/0x30
[   31.232968] 
[   31.233053] kfence-#97: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.233053] 
[   31.233969] allocated by task 358 on cpu 0 at 31.230600s (0.003366s ago):
[   31.234312]  test_alloc+0x2a6/0x10f0
[   31.234442]  test_invalid_addr_free+0xdb/0x260
[   31.234583]  kunit_try_run_case+0x1a5/0x480
[   31.234719]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.234882]  kthread+0x337/0x6f0
[   31.234992]  ret_from_fork+0x116/0x1d0
[   31.235126]  ret_from_fork_asm+0x1a/0x30
[   31.235257] 
[   31.235345] CPU: 0 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) 
[   31.235711] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.236282] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.237042] ==================================================================