Hay
Date
July 2, 2025, 11:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   35.620624] ==================================================================
[   35.620721] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   35.620721] 
[   35.620970] Invalid free of 0x0000000077e571a3 (in kfence-#129):
[   35.621048]  test_invalid_addr_free+0x1ac/0x238
[   35.621280]  kunit_try_run_case+0x170/0x3f0
[   35.621348]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.621430]  kthread+0x328/0x630
[   35.621472]  ret_from_fork+0x10/0x20
[   35.621520] 
[   35.621546] kfence-#129: 0x00000000aede2ff6-0x000000005708fff7, size=32, cache=kmalloc-32
[   35.621546] 
[   35.621903] allocated by task 340 on cpu 1 at 35.620194s (0.001681s ago):
[   35.621986]  test_alloc+0x29c/0x628
[   35.622097]  test_invalid_addr_free+0xd4/0x238
[   35.622166]  kunit_try_run_case+0x170/0x3f0
[   35.622210]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.622286]  kthread+0x328/0x630
[   35.622333]  ret_from_fork+0x10/0x20
[   35.622376] 
[   35.622674] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   35.622803] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.622893] Hardware name: linux,dummy-virt (DT)
[   35.622944] ==================================================================
[   35.725719] ==================================================================
[   35.725792] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   35.725792] 
[   35.725847] Invalid free of 0x0000000083ebad82 (in kfence-#130):
[   35.726210]  test_invalid_addr_free+0xec/0x238
[   35.726288]  kunit_try_run_case+0x170/0x3f0
[   35.726355]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.726409]  kthread+0x328/0x630
[   35.726703]  ret_from_fork+0x10/0x20
[   35.726768] 
[   35.726794] kfence-#130: 0x000000001e9031b0-0x0000000060315d60, size=32, cache=test
[   35.726794] 
[   35.727270] allocated by task 342 on cpu 1 at 35.725520s (0.001329s ago):
[   35.727538]  test_alloc+0x230/0x628
[   35.728167]  test_invalid_addr_free+0xd4/0x238
[   35.728287]  kunit_try_run_case+0x170/0x3f0
[   35.728436]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   35.728496]  kthread+0x328/0x630
[   35.728867]  ret_from_fork+0x10/0x20
[   35.728989] 
[   35.729075] CPU: 1 UID: 0 PID: 342 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   35.729224] Tainted: [B]=BAD_PAGE, [N]=TEST
[   35.729293] Hardware name: linux,dummy-virt (DT)
[   35.729416] ==================================================================

[   38.027972] ==================================================================
[   38.028075] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   38.028075] 
[   38.028138] Invalid free of 0x00000000595be825 (in kfence-#137):
[   38.028209]  test_invalid_addr_free+0xec/0x238
[   38.028257]  kunit_try_run_case+0x170/0x3f0
[   38.028302]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.028345]  kthread+0x328/0x630
[   38.028385]  ret_from_fork+0x10/0x20
[   38.028426] 
[   38.028450] kfence-#137: 0x00000000fccd5bc0-0x0000000097a502c3, size=32, cache=test
[   38.028450] 
[   38.028506] allocated by task 340 on cpu 1 at 38.027854s (0.000648s ago):
[   38.028570]  test_alloc+0x230/0x628
[   38.028610]  test_invalid_addr_free+0xd4/0x238
[   38.028653]  kunit_try_run_case+0x170/0x3f0
[   38.028694]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   38.028737]  kthread+0x328/0x630
[   38.028774]  ret_from_fork+0x10/0x20
[   38.028812] 
[   38.028857] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   38.028939] Tainted: [B]=BAD_PAGE, [N]=TEST
[   38.028969] Hardware name: linux,dummy-virt (DT)
[   38.029005] ==================================================================
[   37.923985] ==================================================================
[   37.924072] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   37.924072] 
[   37.924133] Invalid free of 0x000000003bef8c4d (in kfence-#136):
[   37.924209]  test_invalid_addr_free+0x1ac/0x238
[   37.924259]  kunit_try_run_case+0x170/0x3f0
[   37.924306]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.924351]  kthread+0x328/0x630
[   37.924392]  ret_from_fork+0x10/0x20
[   37.924433] 
[   37.924460] kfence-#136: 0x0000000076a6c9c0-0x00000000a843d109, size=32, cache=kmalloc-32
[   37.924460] 
[   37.924519] allocated by task 338 on cpu 1 at 37.923836s (0.000679s ago):
[   37.924584]  test_alloc+0x29c/0x628
[   37.924625]  test_invalid_addr_free+0xd4/0x238
[   37.924668]  kunit_try_run_case+0x170/0x3f0
[   37.924711]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   37.924754]  kthread+0x328/0x630
[   37.924790]  ret_from_fork+0x10/0x20
[   37.924831] 
[   37.924875] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT 
[   37.924959] Tainted: [B]=BAD_PAGE, [N]=TEST
[   37.924988] Hardware name: linux,dummy-virt (DT)
[   37.925024] ==================================================================

[   28.634112] ==================================================================
[   28.634493] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   28.634493] 
[   28.634925] Invalid free of 0x(____ptrval____) (in kfence-#96):
[   28.635243]  test_invalid_addr_free+0x1e1/0x260
[   28.635408]  kunit_try_run_case+0x1a5/0x480
[   28.635641]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.635910]  kthread+0x337/0x6f0
[   28.636077]  ret_from_fork+0x116/0x1d0
[   28.636278]  ret_from_fork_asm+0x1a/0x30
[   28.636513] 
[   28.636637] kfence-#96: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.636637] 
[   28.636973] allocated by task 355 on cpu 0 at 28.633978s (0.002992s ago):
[   28.637184]  test_alloc+0x364/0x10f0
[   28.637377]  test_invalid_addr_free+0xdb/0x260
[   28.637612]  kunit_try_run_case+0x1a5/0x480
[   28.637986]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.638588]  kthread+0x337/0x6f0
[   28.638868]  ret_from_fork+0x116/0x1d0
[   28.639000]  ret_from_fork_asm+0x1a/0x30
[   28.639160] 
[   28.639280] CPU: 0 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   28.640343] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.640696] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.641144] ==================================================================
[   28.738142] ==================================================================
[   28.738531] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   28.738531] 
[   28.738869] Invalid free of 0x(____ptrval____) (in kfence-#97):
[   28.739150]  test_invalid_addr_free+0xfb/0x260
[   28.739339]  kunit_try_run_case+0x1a5/0x480
[   28.739567]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.739832]  kthread+0x337/0x6f0
[   28.740000]  ret_from_fork+0x116/0x1d0
[   28.740180]  ret_from_fork_asm+0x1a/0x30
[   28.740380] 
[   28.740465] kfence-#97: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.740465] 
[   28.740810] allocated by task 357 on cpu 1 at 28.738037s (0.002770s ago):
[   28.741139]  test_alloc+0x2a6/0x10f0
[   28.741297]  test_invalid_addr_free+0xdb/0x260
[   28.741523]  kunit_try_run_case+0x1a5/0x480
[   28.741722]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.741923]  kthread+0x337/0x6f0
[   28.742086]  ret_from_fork+0x116/0x1d0
[   28.742256]  ret_from_fork_asm+0x1a/0x30
[   28.742430] 
[   28.742579] CPU: 1 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   28.743034] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.743198] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.743594] ==================================================================

[   29.011684] ==================================================================
[   29.012202] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   29.012202] 
[   29.012528] Invalid free of 0x(____ptrval____) (in kfence-#99):
[   29.012812]  test_invalid_addr_free+0x1e1/0x260
[   29.012995]  kunit_try_run_case+0x1a5/0x480
[   29.013205]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.013459]  kthread+0x337/0x6f0
[   29.013631]  ret_from_fork+0x116/0x1d0
[   29.013794]  ret_from_fork_asm+0x1a/0x30
[   29.013985] 
[   29.014093] kfence-#99: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   29.014093] 
[   29.014379] allocated by task 356 on cpu 0 at 29.011531s (0.002845s ago):
[   29.014707]  test_alloc+0x364/0x10f0
[   29.014878]  test_invalid_addr_free+0xdb/0x260
[   29.015079]  kunit_try_run_case+0x1a5/0x480
[   29.015219]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.015464]  kthread+0x337/0x6f0
[   29.015628]  ret_from_fork+0x116/0x1d0
[   29.015798]  ret_from_fork_asm+0x1a/0x30
[   29.015931] 
[   29.016023] CPU: 0 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   29.016548] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.016749] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.017568] ==================================================================
[   29.115701] ==================================================================
[   29.116200] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   29.116200] 
[   29.116487] Invalid free of 0x(____ptrval____) (in kfence-#100):
[   29.116768]  test_invalid_addr_free+0xfb/0x260
[   29.116965]  kunit_try_run_case+0x1a5/0x480
[   29.117126]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.117497]  kthread+0x337/0x6f0
[   29.117757]  ret_from_fork+0x116/0x1d0
[   29.117905]  ret_from_fork_asm+0x1a/0x30
[   29.118044] 
[   29.118151] kfence-#100: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   29.118151] 
[   29.118525] allocated by task 358 on cpu 0 at 29.115552s (0.002970s ago):
[   29.118814]  test_alloc+0x2a6/0x10f0
[   29.119025]  test_invalid_addr_free+0xdb/0x260
[   29.119217]  kunit_try_run_case+0x1a5/0x480
[   29.119362]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.119582]  kthread+0x337/0x6f0
[   29.119748]  ret_from_fork+0x116/0x1d0
[   29.120031]  ret_from_fork_asm+0x1a/0x30
[   29.120484] 
[   29.121220] CPU: 0 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) 
[   29.121844] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.122177] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.122642] ==================================================================