Hay
Date
July 3, 2025, 6:13 p.m.

Environment
qemu-arm64
qemu-x86_64

[   22.093128] ==================================================================
[   22.093215] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   22.093215] 
[   22.093275] Invalid free of 0x00000000dea2e740 (in kfence-#94):
[   22.093328]  test_invalid_addr_free+0x1ac/0x238
[   22.093377]  kunit_try_run_case+0x170/0x3f0
[   22.093420]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.093464]  kthread+0x328/0x630
[   22.093502]  ret_from_fork+0x10/0x20
[   22.093542] 
[   22.093565] kfence-#94: 0x00000000d0adbf62-0x0000000032d1e917, size=32, cache=kmalloc-32
[   22.093565] 
[   22.093621] allocated by task 307 on cpu 0 at 22.092957s (0.000660s ago):
[   22.093682]  test_alloc+0x29c/0x628
[   22.093722]  test_invalid_addr_free+0xd4/0x238
[   22.093763]  kunit_try_run_case+0x170/0x3f0
[   22.093801]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.093845]  kthread+0x328/0x630
[   22.093878]  ret_from_fork+0x10/0x20
[   22.093917] 
[   22.093961] CPU: 0 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.094054] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.094084] Hardware name: linux,dummy-virt (DT)
[   22.094120] ==================================================================
[   22.197051] ==================================================================
[   22.197139] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   22.197139] 
[   22.197194] Invalid free of 0x00000000f5f1d063 (in kfence-#95):
[   22.197245]  test_invalid_addr_free+0xec/0x238
[   22.197290]  kunit_try_run_case+0x170/0x3f0
[   22.197331]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.197376]  kthread+0x328/0x630
[   22.197413]  ret_from_fork+0x10/0x20
[   22.197450] 
[   22.197474] kfence-#95: 0x0000000002f766ef-0x0000000075c9abe6, size=32, cache=test
[   22.197474] 
[   22.197525] allocated by task 309 on cpu 0 at 22.196923s (0.000599s ago):
[   22.197586]  test_alloc+0x230/0x628
[   22.197625]  test_invalid_addr_free+0xd4/0x238
[   22.197666]  kunit_try_run_case+0x170/0x3f0
[   22.197704]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   22.197746]  kthread+0x328/0x630
[   22.197782]  ret_from_fork+0x10/0x20
[   22.197821] 
[   22.197861] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT 
[   22.197938] Tainted: [B]=BAD_PAGE, [N]=TEST
[   22.197965] Hardware name: linux,dummy-virt (DT)
[   22.197999] ==================================================================

[   17.248571] ==================================================================
[   17.248991] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   17.248991] 
[   17.249523] Invalid free of 0x(____ptrval____) (in kfence-#76):
[   17.249786]  test_invalid_addr_free+0x1e1/0x260
[   17.249986]  kunit_try_run_case+0x1a5/0x480
[   17.250197]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.250474]  kthread+0x337/0x6f0
[   17.250650]  ret_from_fork+0x116/0x1d0
[   17.250857]  ret_from_fork_asm+0x1a/0x30
[   17.251048] 
[   17.251134] kfence-#76: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   17.251134] 
[   17.251660] allocated by task 325 on cpu 0 at 17.248447s (0.003211s ago):
[   17.252003]  test_alloc+0x364/0x10f0
[   17.252203]  test_invalid_addr_free+0xdb/0x260
[   17.252425]  kunit_try_run_case+0x1a5/0x480
[   17.252676]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.252973]  kthread+0x337/0x6f0
[   17.253214]  ret_from_fork+0x116/0x1d0
[   17.253350]  ret_from_fork_asm+0x1a/0x30
[   17.253490] 
[   17.253614] CPU: 0 UID: 0 PID: 325 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.254493] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.255090] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.255713] ==================================================================
[   17.352586] ==================================================================
[   17.352962] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   17.352962] 
[   17.353421] Invalid free of 0x(____ptrval____) (in kfence-#77):
[   17.353874]  test_invalid_addr_free+0xfb/0x260
[   17.354131]  kunit_try_run_case+0x1a5/0x480
[   17.354665]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.355126]  kthread+0x337/0x6f0
[   17.355395]  ret_from_fork+0x116/0x1d0
[   17.355598]  ret_from_fork_asm+0x1a/0x30
[   17.355956] 
[   17.356167] kfence-#77: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   17.356167] 
[   17.356697] allocated by task 327 on cpu 0 at 17.352486s (0.004208s ago):
[   17.357094]  test_alloc+0x2a6/0x10f0
[   17.357298]  test_invalid_addr_free+0xdb/0x260
[   17.357743]  kunit_try_run_case+0x1a5/0x480
[   17.358030]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.358395]  kthread+0x337/0x6f0
[   17.358561]  ret_from_fork+0x116/0x1d0
[   17.358774]  ret_from_fork_asm+0x1a/0x30
[   17.359162] 
[   17.359311] CPU: 0 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4 #1 PREEMPT(voluntary) 
[   17.359899] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.360121] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.360671] ==================================================================