Hay
Date
May 26, 2025, 9:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   23.287469] ==================================================================
[   23.287566] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   23.287566] 
[   23.287634] Invalid free of 0x0000000090129151 (in kfence-#111):
[   23.287690]  test_invalid_addr_free+0x1ac/0x238
[   23.287742]  kunit_try_run_case+0x170/0x3f0
[   23.287791]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.287837]  kthread+0x328/0x630
[   23.287876]  ret_from_fork+0x10/0x20
[   23.287918] 
[   23.287945] kfence-#111: 0x00000000ea84e820-0x00000000ca35bded, size=32, cache=kmalloc-32
[   23.287945] 
[   23.288006] allocated by task 307 on cpu 0 at 23.287285s (0.000717s ago):
[   23.288073]  test_alloc+0x29c/0x628
[   23.288116]  test_invalid_addr_free+0xd4/0x238
[   23.288170]  kunit_try_run_case+0x170/0x3f0
[   23.288221]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.288264]  kthread+0x328/0x630
[   23.288340]  ret_from_fork+0x10/0x20
[   23.288425] 
[   23.288548] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   23.288693] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.288725] Hardware name: linux,dummy-virt (DT)
[   23.288798] ==================================================================
[   23.391668] ==================================================================
[   23.391766] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   23.391766] 
[   23.391830] Invalid free of 0x00000000d929a14b (in kfence-#112):
[   23.391889]  test_invalid_addr_free+0xec/0x238
[   23.391938]  kunit_try_run_case+0x170/0x3f0
[   23.391985]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.392031]  kthread+0x328/0x630
[   23.392069]  ret_from_fork+0x10/0x20
[   23.392111] 
[   23.392137] kfence-#112: 0x000000009e6bfb40-0x00000000055ec2a5, size=32, cache=test
[   23.392137] 
[   23.392196] allocated by task 309 on cpu 0 at 23.391514s (0.000677s ago):
[   23.392266]  test_alloc+0x230/0x628
[   23.392311]  test_invalid_addr_free+0xd4/0x238
[   23.392370]  kunit_try_run_case+0x170/0x3f0
[   23.392414]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   23.392468]  kthread+0x328/0x630
[   23.392514]  ret_from_fork+0x10/0x20
[   23.392558] 
[   23.392612] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT 
[   23.392705] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.392739] Hardware name: linux,dummy-virt (DT)
[   23.392778] ==================================================================


[   16.923363] ==================================================================
[   16.923766] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   16.923766] 
[   16.924268] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   16.924581]  test_invalid_addr_free+0x1e1/0x260
[   16.924750]  kunit_try_run_case+0x1a5/0x480
[   16.924948]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.925258]  kthread+0x337/0x6f0
[   16.925475]  ret_from_fork+0x116/0x1d0
[   16.925706]  ret_from_fork_asm+0x1a/0x30
[   16.926136] 
[   16.926237] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.926237] 
[   16.926698] allocated by task 325 on cpu 1 at 16.923256s (0.003440s ago):
[   16.927009]  test_alloc+0x364/0x10f0
[   16.927179]  test_invalid_addr_free+0xdb/0x260
[   16.927339]  kunit_try_run_case+0x1a5/0x480
[   16.927495]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.927672]  kthread+0x337/0x6f0
[   16.927835]  ret_from_fork+0x116/0x1d0
[   16.928029]  ret_from_fork_asm+0x1a/0x30
[   16.928232] 
[   16.928353] CPU: 1 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   16.928961] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.929172] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.930099] ==================================================================
[   17.027440] ==================================================================
[   17.027897] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.027897] 
[   17.028242] Invalid free of 0x(____ptrval____) (in kfence-#78):
[   17.028551]  test_invalid_addr_free+0xfb/0x260
[   17.028742]  kunit_try_run_case+0x1a5/0x480
[   17.028933]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.029223]  kthread+0x337/0x6f0
[   17.029405]  ret_from_fork+0x116/0x1d0
[   17.029544]  ret_from_fork_asm+0x1a/0x30
[   17.029742] 
[   17.029844] kfence-#78: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.029844] 
[   17.030300] allocated by task 327 on cpu 0 at 17.027309s (0.002988s ago):
[   17.030575]  test_alloc+0x2a6/0x10f0
[   17.030816]  test_invalid_addr_free+0xdb/0x260
[   17.031064]  kunit_try_run_case+0x1a5/0x480
[   17.031265]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.031497]  kthread+0x337/0x6f0
[   17.031693]  ret_from_fork+0x116/0x1d0
[   17.031855]  ret_from_fork_asm+0x1a/0x30
[   17.032000] 
[   17.032120] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) 
[   17.032617] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.032761] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.033469] ==================================================================