Hay
Date
June 18, 2025, 6:43 a.m.

Environment
qemu-arm64
qemu-x86_64

[   27.171155] ==================================================================
[   27.171331] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   27.171331] 
[   27.171446] Invalid free of 0x000000009175ca9d (in kfence-#125):
[   27.171515]  test_invalid_addr_free+0xec/0x238
[   27.171569]  kunit_try_run_case+0x170/0x3f0
[   27.171613]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.171658]  kthread+0x328/0x630
[   27.171696]  ret_from_fork+0x10/0x20
[   27.171738] 
[   27.171764] kfence-#125: 0x000000005d93cbea-0x00000000413512fd, size=32, cache=test
[   27.171764] 
[   27.171824] allocated by task 319 on cpu 0 at 27.170932s (0.000887s ago):
[   27.171891]  test_alloc+0x230/0x628
[   27.171936]  test_invalid_addr_free+0xd4/0x238
[   27.171980]  kunit_try_run_case+0x170/0x3f0
[   27.172043]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.172095]  kthread+0x328/0x630
[   27.172133]  ret_from_fork+0x10/0x20
[   27.172174] 
[   27.172228] CPU: 0 UID: 0 PID: 319 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc2-next-20250618 #1 PREEMPT 
[   27.172319] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   27.172353] Hardware name: linux,dummy-virt (DT)
[   27.172390] ==================================================================
[   27.066969] ==================================================================
[   27.067106] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   27.067106] 
[   27.067184] Invalid free of 0x00000000ce2b9955 (in kfence-#124):
[   27.067247]  test_invalid_addr_free+0x1ac/0x238
[   27.067302]  kunit_try_run_case+0x170/0x3f0
[   27.067352]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.067401]  kthread+0x328/0x630
[   27.067443]  ret_from_fork+0x10/0x20
[   27.067486] 
[   27.067513] kfence-#124: 0x00000000c2c2a5e2-0x00000000fad8ab2a, size=32, cache=kmalloc-32
[   27.067513] 
[   27.067577] allocated by task 317 on cpu 0 at 27.066791s (0.000781s ago):
[   27.067650]  test_alloc+0x29c/0x628
[   27.067697]  test_invalid_addr_free+0xd4/0x238
[   27.067744]  kunit_try_run_case+0x170/0x3f0
[   27.067785]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   27.067833]  kthread+0x328/0x630
[   27.067873]  ret_from_fork+0x10/0x20
[   27.067917] 
[   27.067973] CPU: 0 UID: 0 PID: 317 Comm: kunit_try_catch Tainted: G    B   W        N  6.16.0-rc2-next-20250618 #1 PREEMPT 
[   27.068103] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST
[   27.068142] Hardware name: linux,dummy-virt (DT)
[   27.068184] ==================================================================

[   16.753870] ==================================================================
[   16.754323] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   16.754323] 
[   16.754665] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   16.754939]  test_invalid_addr_free+0xfb/0x260
[   16.755094]  kunit_try_run_case+0x1a5/0x480
[   16.755424]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.755691]  kthread+0x337/0x6f0
[   16.755848]  ret_from_fork+0x116/0x1d0
[   16.756013]  ret_from_fork_asm+0x1a/0x30
[   16.756199] 
[   16.756289] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   16.756289] 
[   16.756669] allocated by task 335 on cpu 1 at 16.753772s (0.002894s ago):
[   16.756949]  test_alloc+0x2a6/0x10f0
[   16.757124]  test_invalid_addr_free+0xdb/0x260
[   16.757394]  kunit_try_run_case+0x1a5/0x480
[   16.757571]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.757785]  kthread+0x337/0x6f0
[   16.757926]  ret_from_fork+0x116/0x1d0
[   16.758080]  ret_from_fork_asm+0x1a/0x30
[   16.758294] 
[   16.758407] CPU: 1 UID: 0 PID: 335 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) 
[   16.758758] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.758890] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.759277] ==================================================================
[   16.649858] ==================================================================
[   16.650281] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   16.650281] 
[   16.650706] Invalid free of 0x(____ptrval____) (in kfence-#75):
[   16.650991]  test_invalid_addr_free+0x1e1/0x260
[   16.651172]  kunit_try_run_case+0x1a5/0x480
[   16.651323]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.651681]  kthread+0x337/0x6f0
[   16.651975]  ret_from_fork+0x116/0x1d0
[   16.652150]  ret_from_fork_asm+0x1a/0x30
[   16.652357] 
[   16.652451] kfence-#75: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   16.652451] 
[   16.652852] allocated by task 333 on cpu 0 at 16.649743s (0.003106s ago):
[   16.653131]  test_alloc+0x364/0x10f0
[   16.653260]  test_invalid_addr_free+0xdb/0x260
[   16.653399]  kunit_try_run_case+0x1a5/0x480
[   16.653706]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   16.653970]  kthread+0x337/0x6f0
[   16.654150]  ret_from_fork+0x116/0x1d0
[   16.654541]  ret_from_fork_asm+0x1a/0x30
[   16.654743] 
[   16.654834] CPU: 0 UID: 0 PID: 333 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) 
[   16.655946] Tainted: [B]=BAD_PAGE, [N]=TEST
[   16.656106] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   16.656600] ==================================================================