Hay
Date
July 19, 2025, 11:11 a.m.

Environment
qemu-arm64
qemu-x86_64

[   20.242211] ==================================================================
[   20.242298] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.242298] 
[   20.242359] Invalid free of 0x000000003cffa602 (in kfence-#92):
[   20.242408]  test_invalid_addr_free+0xec/0x238
[   20.242461]  kunit_try_run_case+0x170/0x3f0
[   20.242503]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.242559]  kthread+0x328/0x630
[   20.242597]  ret_from_fork+0x10/0x20
[   20.242637] 
[   20.242661] kfence-#92: 0x00000000ffd8456a-0x0000000057f56297, size=32, cache=test
[   20.242661] 
[   20.242713] allocated by task 310 on cpu 1 at 20.242097s (0.000612s ago):
[   20.242774]  test_alloc+0x230/0x628
[   20.242815]  test_invalid_addr_free+0xd4/0x238
[   20.242857]  kunit_try_run_case+0x170/0x3f0
[   20.242897]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.242939]  kthread+0x328/0x630
[   20.242975]  ret_from_fork+0x10/0x20
[   20.243013] 
[   20.243053] CPU: 1 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.243133] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.243163] Hardware name: linux,dummy-virt (DT)
[   20.243196] ==================================================================
[   20.141176] ==================================================================
[   20.141264] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.141264] 
[   20.141324] Invalid free of 0x00000000ab481706 (in kfence-#91):
[   20.141746]  test_invalid_addr_free+0x1ac/0x238
[   20.142067]  kunit_try_run_case+0x170/0x3f0
[   20.142576]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.142709]  kthread+0x328/0x630
[   20.142866]  ret_from_fork+0x10/0x20
[   20.143025] 
[   20.143088] kfence-#91: 0x00000000c35b3026-0x00000000fd32b922, size=32, cache=kmalloc-32
[   20.143088] 
[   20.143190] allocated by task 308 on cpu 1 at 20.140339s (0.002847s ago):
[   20.143270]  test_alloc+0x29c/0x628
[   20.143322]  test_invalid_addr_free+0xd4/0x238
[   20.143385]  kunit_try_run_case+0x170/0x3f0
[   20.143454]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.143499]  kthread+0x328/0x630
[   20.143559]  ret_from_fork+0x10/0x20
[   20.143625] 
[   20.143671] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.143767] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.143813] Hardware name: linux,dummy-virt (DT)
[   20.143855] ==================================================================

[   18.061593] ==================================================================
[   18.062029] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.062029] 
[   18.062418] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   18.063266]  test_invalid_addr_free+0xfb/0x260
[   18.063629]  kunit_try_run_case+0x1a5/0x480
[   18.063906]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.064138]  kthread+0x337/0x6f0
[   18.064365]  ret_from_fork+0x116/0x1d0
[   18.064582]  ret_from_fork_asm+0x1a/0x30
[   18.064782] 
[   18.064890] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.064890] 
[   18.065188] allocated by task 327 on cpu 0 at 18.061396s (0.003790s ago):
[   18.065678]  test_alloc+0x2a6/0x10f0
[   18.065862]  test_invalid_addr_free+0xdb/0x260
[   18.066072]  kunit_try_run_case+0x1a5/0x480
[   18.066297]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.066543]  kthread+0x337/0x6f0
[   18.066739]  ret_from_fork+0x116/0x1d0
[   18.066928]  ret_from_fork_asm+0x1a/0x30
[   18.067083] 
[   18.067181] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.067675] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.067820] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.068206] ==================================================================
[   17.957540] ==================================================================
[   17.957934] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.957934] 
[   17.958365] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   17.958652]  test_invalid_addr_free+0x1e1/0x260
[   17.958828]  kunit_try_run_case+0x1a5/0x480
[   17.959022]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.959388]  kthread+0x337/0x6f0
[   17.959555]  ret_from_fork+0x116/0x1d0
[   17.959729]  ret_from_fork_asm+0x1a/0x30
[   17.959911] 
[   17.959995] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.959995] 
[   17.960432] allocated by task 325 on cpu 1 at 17.957398s (0.003032s ago):
[   17.960705]  test_alloc+0x364/0x10f0
[   17.960888]  test_invalid_addr_free+0xdb/0x260
[   17.961081]  kunit_try_run_case+0x1a5/0x480
[   17.961230]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.961406]  kthread+0x337/0x6f0
[   17.961539]  ret_from_fork+0x116/0x1d0
[   17.961743]  ret_from_fork_asm+0x1a/0x30
[   17.961945] 
[   17.962062] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   17.962618] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.962760] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.963042] ==================================================================