Hay
Date
May 29, 2025, 7:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   28.212615] ==================================================================
[   28.212841] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   28.212841] 
[   28.212992] Invalid free of 0x00000000caa90f78 (in kfence-#126):
[   28.213132]  test_invalid_addr_free+0xec/0x238
[   28.213339]  kunit_try_run_case+0x170/0x3f0
[   28.213455]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.213551]  kthread+0x328/0x630
[   28.213645]  ret_from_fork+0x10/0x20
[   28.213739] 
[   28.213795] kfence-#126: 0x00000000002681c5-0x000000007b3d20ee, size=32, cache=test
[   28.213795] 
[   28.213924] allocated by task 309 on cpu 1 at 28.212144s (0.001772s ago):
[   28.214083]  test_alloc+0x230/0x628
[   28.214171]  test_invalid_addr_free+0xd4/0x238
[   28.214381]  kunit_try_run_case+0x170/0x3f0
[   28.214614]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.214850]  kthread+0x328/0x630
[   28.214941]  ret_from_fork+0x10/0x20
[   28.215278] 
[   28.215423] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT 
[   28.215673] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.215773] Hardware name: linux,dummy-virt (DT)
[   28.215861] ==================================================================
[   28.112359] ==================================================================
[   28.112539] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   28.112539] 
[   28.112681] Invalid free of 0x000000008fc115df (in kfence-#125):
[   28.113534]  test_invalid_addr_free+0x1ac/0x238
[   28.113694]  kunit_try_run_case+0x170/0x3f0
[   28.113809]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.113925]  kthread+0x328/0x630
[   28.114025]  ret_from_fork+0x10/0x20
[   28.114128] 
[   28.114197] kfence-#125: 0x000000007d750a3c-0x00000000557a2836, size=32, cache=kmalloc-32
[   28.114197] 
[   28.114332] allocated by task 307 on cpu 1 at 28.111771s (0.002541s ago):
[   28.114710]  test_alloc+0x29c/0x628
[   28.114930]  test_invalid_addr_free+0xd4/0x238
[   28.115026]  kunit_try_run_case+0x170/0x3f0
[   28.115130]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.115630]  kthread+0x328/0x630
[   28.115813]  ret_from_fork+0x10/0x20
[   28.116094] 
[   28.116372] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT 
[   28.116849] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.116943] Hardware name: linux,dummy-virt (DT)
[   28.117237] ==================================================================


[   16.994192] ==================================================================
[   16.994585] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   16.994585] 
[   16.994962] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   16.995236]  test_invalid_addr_free+0x1e1/0x260
[   16.995417]  kunit_try_run_case+0x1a5/0x480
[   16.995636]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.995861]  kthread+0x337/0x6f0
[   16.996039]  ret_from_fork+0x116/0x1d0
[   16.996195]  ret_from_fork_asm+0x1a/0x30
[   16.996406] 
[   16.996505] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.996505] 
[   16.996957] allocated by task 324 on cpu 0 at 16.994089s (0.002867s ago):
[   16.997246]  test_alloc+0x364/0x10f0
[   16.997416]  test_invalid_addr_free+0xdb/0x260
[   16.997648]  kunit_try_run_case+0x1a5/0x480
[   16.997891]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.998076]  kthread+0x337/0x6f0
[   16.998202]  ret_from_fork+0x116/0x1d0
[   16.998396]  ret_from_fork_asm+0x1a/0x30
[   16.998605] 
[   16.998733] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   16.999130] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.999333] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.999760] ==================================================================
[   17.098221] ==================================================================
[   17.098631] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.098631] 
[   17.099008] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.099308]  test_invalid_addr_free+0xfb/0x260
[   17.099964]  kunit_try_run_case+0x1a5/0x480
[   17.100184]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.100426]  kthread+0x337/0x6f0
[   17.100584]  ret_from_fork+0x116/0x1d0
[   17.101098]  ret_from_fork_asm+0x1a/0x30
[   17.101301] 
[   17.101384] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.101384] 
[   17.101945] allocated by task 326 on cpu 1 at 17.098118s (0.003824s ago):
[   17.102406]  test_alloc+0x2a6/0x10f0
[   17.102573]  test_invalid_addr_free+0xdb/0x260
[   17.102994]  kunit_try_run_case+0x1a5/0x480
[   17.103255]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.103574]  kthread+0x337/0x6f0
[   17.103880]  ret_from_fork+0x116/0x1d0
[   17.104061]  ret_from_fork_asm+0x1a/0x30
[   17.104363] 
[   17.104487] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250529 #1 PREEMPT(voluntary) 
[   17.105140] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.105415] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.105951] ==================================================================