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

Environment
qemu-arm64
qemu-x86_64

[   20.577442] ==================================================================
[   20.577540] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   20.577540] 
[   20.577605] Invalid free of 0x000000006029dbe0 (in kfence-#92):
[   20.577662]  test_invalid_addr_free+0xec/0x238
[   20.577711]  kunit_try_run_case+0x170/0x3f0
[   20.577753]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.577797]  kthread+0x328/0x630
[   20.577835]  ret_from_fork+0x10/0x20
[   20.577874] 
[   20.577897] kfence-#92: 0x00000000e02b4599-0x00000000baccb227, size=32, cache=test
[   20.577897] 
[   20.577951] allocated by task 310 on cpu 0 at 20.577218s (0.000730s ago):
[   20.578031]  test_alloc+0x230/0x628
[   20.578071]  test_invalid_addr_free+0xd4/0x238
[   20.578112]  kunit_try_run_case+0x170/0x3f0
[   20.578152]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.578195]  kthread+0x328/0x630
[   20.578229]  ret_from_fork+0x10/0x20
[   20.578269] 
[   20.578314] CPU: 0 UID: 0 PID: 310 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.578395] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.578424] Hardware name: linux,dummy-virt (DT)
[   20.578458] ==================================================================
[   20.473347] ==================================================================
[   20.473440] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   20.473440] 
[   20.473506] Invalid free of 0x0000000018d2cd67 (in kfence-#91):
[   20.473560]  test_invalid_addr_free+0x1ac/0x238
[   20.473608]  kunit_try_run_case+0x170/0x3f0
[   20.473653]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.473696]  kthread+0x328/0x630
[   20.473735]  ret_from_fork+0x10/0x20
[   20.473776] 
[   20.473799] kfence-#91: 0x0000000042d58662-0x000000007123df67, size=32, cache=kmalloc-32
[   20.473799] 
[   20.473855] allocated by task 308 on cpu 0 at 20.473199s (0.000652s ago):
[   20.473919]  test_alloc+0x29c/0x628
[   20.473960]  test_invalid_addr_free+0xd4/0x238
[   20.474016]  kunit_try_run_case+0x170/0x3f0
[   20.474056]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   20.474101]  kthread+0x328/0x630
[   20.474136]  ret_from_fork+0x10/0x20
[   20.474176] 
[   20.474221] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT 
[   20.474302] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.474331] Hardware name: linux,dummy-virt (DT)
[   20.474365] ==================================================================

[   18.714731] ==================================================================
[   18.715112] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   18.715112] 
[   18.715423] Invalid free of 0x(____ptrval____) (in kfence-#73):
[   18.715728]  test_invalid_addr_free+0xfb/0x260
[   18.715946]  kunit_try_run_case+0x1a5/0x480
[   18.716229]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.716435]  kthread+0x337/0x6f0
[   18.716692]  ret_from_fork+0x116/0x1d0
[   18.716836]  ret_from_fork_asm+0x1a/0x30
[   18.717003] 
[   18.717103] kfence-#73: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   18.717103] 
[   18.717539] allocated by task 326 on cpu 1 at 18.714622s (0.002914s ago):
[   18.717855]  test_alloc+0x2a6/0x10f0
[   18.718049]  test_invalid_addr_free+0xdb/0x260
[   18.718258]  kunit_try_run_case+0x1a5/0x480
[   18.718478]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.718695]  kthread+0x337/0x6f0
[   18.718867]  ret_from_fork+0x116/0x1d0
[   18.719048]  ret_from_fork_asm+0x1a/0x30
[   18.719235] 
[   18.719335] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.719695] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.719834] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.720399] ==================================================================
[   18.610704] ==================================================================
[   18.611133] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   18.611133] 
[   18.611665] Invalid free of 0x(____ptrval____) (in kfence-#72):
[   18.611872]  test_invalid_addr_free+0x1e1/0x260
[   18.612105]  kunit_try_run_case+0x1a5/0x480
[   18.612324]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.612511]  kthread+0x337/0x6f0
[   18.612754]  ret_from_fork+0x116/0x1d0
[   18.612950]  ret_from_fork_asm+0x1a/0x30
[   18.613135] 
[   18.613236] kfence-#72: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   18.613236] 
[   18.613657] allocated by task 324 on cpu 1 at 18.610596s (0.003059s ago):
[   18.613911]  test_alloc+0x364/0x10f0
[   18.614096]  test_invalid_addr_free+0xdb/0x260
[   18.614292]  kunit_try_run_case+0x1a5/0x480
[   18.614441]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   18.614868]  kthread+0x337/0x6f0
[   18.615039]  ret_from_fork+0x116/0x1d0
[   18.615194]  ret_from_fork_asm+0x1a/0x30
[   18.615336] 
[   18.615444] CPU: 1 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc6 #1 PREEMPT(voluntary) 
[   18.615943] Tainted: [B]=BAD_PAGE, [N]=TEST
[   18.616118] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   18.616503] ==================================================================