Hay
Date
July 23, 2025, 3:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   35.889008] ==================================================================
[   35.889100] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   35.889100] 
[   35.889160] Invalid free of 0x00000000b0133952 (in kfence-#132):
[   35.889216]  test_invalid_addr_free+0xec/0x238
[   35.889260]  kunit_try_run_case+0x170/0x3f0
[   35.889305]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.889347]  kthread+0x328/0x630
[   35.889385]  ret_from_fork+0x10/0x20
[   35.889425] 
[   35.889450] kfence-#132: 0x00000000c4cd7fa6-0x000000007721b191, size=32, cache=test
[   35.889450] 
[   35.889503] allocated by task 342 on cpu 1 at 35.888869s (0.000630s ago):
[   35.889563]  test_alloc+0x230/0x628
[   35.889604]  test_invalid_addr_free+0xd4/0x238
[   35.889644]  kunit_try_run_case+0x170/0x3f0
[   35.889684]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.889728]  kthread+0x328/0x630
[   35.889764]  ret_from_fork+0x10/0x20
[   35.889803] 
[   35.889848] CPU: 1 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   35.889947] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   35.889979] Hardware name: linux,dummy-virt (DT)
[   35.890011] ==================================================================
[   35.785203] ==================================================================
[   35.785288] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   35.785288] 
[   35.785347] Invalid free of 0x00000000fd00de05 (in kfence-#131):
[   35.785402]  test_invalid_addr_free+0x1ac/0x238
[   35.785449]  kunit_try_run_case+0x170/0x3f0
[   35.785494]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.785536]  kthread+0x328/0x630
[   35.785574]  ret_from_fork+0x10/0x20
[   35.785616] 
[   35.785639] kfence-#131: 0x00000000e880db90-0x00000000f999c545, size=32, cache=kmalloc-32
[   35.785639] 
[   35.785693] allocated by task 340 on cpu 1 at 35.785067s (0.000623s ago):
[   35.785755]  test_alloc+0x29c/0x628
[   35.785794]  test_invalid_addr_free+0xd4/0x238
[   35.785832]  kunit_try_run_case+0x170/0x3f0
[   35.785871]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.785928]  kthread+0x328/0x630
[   35.785965]  ret_from_fork+0x10/0x20
[   35.786003] 
[   35.786048] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc7-next-20250723 #1 PREEMPT 
[   35.786133] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   35.786166] Hardware name: linux,dummy-virt (DT)
[   35.786198] ==================================================================

[   31.084841] ==================================================================
[   31.085296] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   31.085296] 
[   31.085666] Invalid free of 0x(____ptrval____) (in kfence-#103):
[   31.085962]  test_invalid_addr_free+0x1e1/0x260
[   31.086197]  kunit_try_run_case+0x1a5/0x480
[   31.086386]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.086575]  kthread+0x337/0x6f0
[   31.086740]  ret_from_fork+0x116/0x1d0
[   31.086921]  ret_from_fork_asm+0x1a/0x30
[   31.087085] 
[   31.087164] kfence-#103: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   31.087164] 
[   31.087589] allocated by task 356 on cpu 0 at 31.084710s (0.002876s ago):
[   31.087914]  test_alloc+0x364/0x10f0
[   31.088057]  test_invalid_addr_free+0xdb/0x260
[   31.088253]  kunit_try_run_case+0x1a5/0x480
[   31.088479]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.088690]  kthread+0x337/0x6f0
[   31.088870]  ret_from_fork+0x116/0x1d0
[   31.089087]  ret_from_fork_asm+0x1a/0x30
[   31.089294] 
[   31.089406] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   31.089896] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.090175] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.090539] ==================================================================
[   31.188875] ==================================================================
[   31.189280] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   31.189280] 
[   31.189623] Invalid free of 0x(____ptrval____) (in kfence-#104):
[   31.190234]  test_invalid_addr_free+0xfb/0x260
[   31.190431]  kunit_try_run_case+0x1a5/0x480
[   31.190579]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.190809]  kthread+0x337/0x6f0
[   31.191005]  ret_from_fork+0x116/0x1d0
[   31.191218]  ret_from_fork_asm+0x1a/0x30
[   31.191386] 
[   31.191501] kfence-#104: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   31.191501] 
[   31.191866] allocated by task 358 on cpu 1 at 31.188727s (0.003136s ago):
[   31.192213]  test_alloc+0x2a6/0x10f0
[   31.192400]  test_invalid_addr_free+0xdb/0x260
[   31.192610]  kunit_try_run_case+0x1a5/0x480
[   31.192816]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   31.193106]  kthread+0x337/0x6f0
[   31.193307]  ret_from_fork+0x116/0x1d0
[   31.193462]  ret_from_fork_asm+0x1a/0x30
[   31.193602] 
[   31.193735] CPU: 1 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) 
[   31.194362] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.194534] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   31.194875] ==================================================================