Hay
Date
July 18, 2025, 1:09 p.m.

Environment
qemu-arm64
qemu-x86_64

[   36.620306] ==================================================================
[   36.620397] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   36.620397] 
[   36.620456] Invalid free of 0x00000000c2baa3a2 (in kfence-#132):
[   36.620509]  test_invalid_addr_free+0xec/0x238
[   36.620553]  kunit_try_run_case+0x170/0x3f0
[   36.620593]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.620636]  kthread+0x328/0x630
[   36.620674]  ret_from_fork+0x10/0x20
[   36.620714] 
[   36.620737] kfence-#132: 0x00000000957a8944-0x0000000001b3a575, size=32, cache=test
[   36.620737] 
[   36.620788] allocated by task 340 on cpu 1 at 36.620188s (0.000597s ago):
[   36.620850]  test_alloc+0x230/0x628
[   36.620890]  test_invalid_addr_free+0xd4/0x238
[   36.620927]  kunit_try_run_case+0x170/0x3f0
[   36.620967]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.621009]  kthread+0x328/0x630
[   36.621044]  ret_from_fork+0x10/0x20
[   36.621097] 
[   36.621138] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   36.621216] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.621245] Hardware name: linux,dummy-virt (DT)
[   36.621277] ==================================================================
[   36.516228] ==================================================================
[   36.516306] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   36.516306] 
[   36.516367] Invalid free of 0x000000009d499f19 (in kfence-#131):
[   36.516421]  test_invalid_addr_free+0x1ac/0x238
[   36.516466]  kunit_try_run_case+0x170/0x3f0
[   36.516510]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.516553]  kthread+0x328/0x630
[   36.516593]  ret_from_fork+0x10/0x20
[   36.516633] 
[   36.516656] kfence-#131: 0x0000000035c139a3-0x00000000ffbecc92, size=32, cache=kmalloc-32
[   36.516656] 
[   36.516711] allocated by task 338 on cpu 1 at 36.516091s (0.000615s ago):
[   36.516774]  test_alloc+0x29c/0x628
[   36.516812]  test_invalid_addr_free+0xd4/0x238
[   36.516851]  kunit_try_run_case+0x170/0x3f0
[   36.516890]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.516933]  kthread+0x328/0x630
[   36.516968]  ret_from_fork+0x10/0x20
[   36.517006] 
[   36.517049] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT 
[   36.517143] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.517173] Hardware name: linux,dummy-virt (DT)
[   36.517207] ==================================================================


[   30.650248] ==================================================================
[   30.650646] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   30.650646] 
[   30.651005] Invalid free of 0x(____ptrval____) (in kfence-#101):
[   30.651397]  test_invalid_addr_free+0xfb/0x260
[   30.651601]  kunit_try_run_case+0x1a5/0x480
[   30.651748]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.652001]  kthread+0x337/0x6f0
[   30.652173]  ret_from_fork+0x116/0x1d0
[   30.652343]  ret_from_fork_asm+0x1a/0x30
[   30.652513] 
[   30.652580] kfence-#101: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.652580] 
[   30.652977] allocated by task 357 on cpu 0 at 30.650114s (0.002859s ago):
[   30.653255]  test_alloc+0x2a6/0x10f0
[   30.653429]  test_invalid_addr_free+0xdb/0x260
[   30.653572]  kunit_try_run_case+0x1a5/0x480
[   30.653711]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.653925]  kthread+0x337/0x6f0
[   30.654084]  ret_from_fork+0x116/0x1d0
[   30.654265]  ret_from_fork_asm+0x1a/0x30
[   30.654467] 
[   30.654584] CPU: 0 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   30.655072] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.655209] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.655559] ==================================================================
[   30.546191] ==================================================================
[   30.546578] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   30.546578] 
[   30.546874] Invalid free of 0x(____ptrval____) (in kfence-#100):
[   30.547189]  test_invalid_addr_free+0x1e1/0x260
[   30.547377]  kunit_try_run_case+0x1a5/0x480
[   30.547543]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.547804]  kthread+0x337/0x6f0
[   30.547979]  ret_from_fork+0x116/0x1d0
[   30.548137]  ret_from_fork_asm+0x1a/0x30
[   30.548324] 
[   30.548397] kfence-#100: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.548397] 
[   30.548732] allocated by task 355 on cpu 0 at 30.546078s (0.002652s ago):
[   30.548978]  test_alloc+0x364/0x10f0
[   30.549151]  test_invalid_addr_free+0xdb/0x260
[   30.549353]  kunit_try_run_case+0x1a5/0x480
[   30.549526]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.549693]  kthread+0x337/0x6f0
[   30.549821]  ret_from_fork+0x116/0x1d0
[   30.550002]  ret_from_fork_asm+0x1a/0x30
[   30.550198] 
[   30.550313] CPU: 0 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) 
[   30.550826] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.550989] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.551352] ==================================================================