Hay
Date
June 17, 2025, 3:40 p.m.

Environment
qemu-arm64
qemu-x86_64

[   28.127928] ==================================================================
[   28.128098] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   28.128098] 
[   28.128233] Invalid free of 0x00000000c398715c (in kfence-#131):
[   28.128847]  test_invalid_addr_free+0x1ac/0x238
[   28.129382]  kunit_try_run_case+0x170/0x3f0
[   28.129595]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.129762]  kthread+0x328/0x630
[   28.129913]  ret_from_fork+0x10/0x20
[   28.130017] 
[   28.130117] kfence-#131: 0x00000000fd021af8-0x000000009a410a8f, size=32, cache=kmalloc-32
[   28.130117] 
[   28.130274] allocated by task 309 on cpu 0 at 28.127629s (0.002636s ago):
[   28.130437]  test_alloc+0x29c/0x628
[   28.130523]  test_invalid_addr_free+0xd4/0x238
[   28.130599]  kunit_try_run_case+0x170/0x3f0
[   28.130675]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.130785]  kthread+0x328/0x630
[   28.130884]  ret_from_fork+0x10/0x20
[   28.131038] 
[   28.131206] CPU: 0 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   28.131439] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.131544] Hardware name: linux,dummy-virt (DT)
[   28.131677] ==================================================================
[   28.232900] ==================================================================
[   28.233385] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   28.233385] 
[   28.233572] Invalid free of 0x0000000098118a45 (in kfence-#132):
[   28.233833]  test_invalid_addr_free+0xec/0x238
[   28.234052]  kunit_try_run_case+0x170/0x3f0
[   28.234166]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.234297]  kthread+0x328/0x630
[   28.234449]  ret_from_fork+0x10/0x20
[   28.234552] 
[   28.234616] kfence-#132: 0x000000001040e374-0x000000004358c0b4, size=32, cache=test
[   28.234616] 
[   28.234815] allocated by task 311 on cpu 0 at 28.232638s (0.002163s ago):
[   28.235037]  test_alloc+0x230/0x628
[   28.235167]  test_invalid_addr_free+0xd4/0x238
[   28.235320]  kunit_try_run_case+0x170/0x3f0
[   28.235420]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   28.235508]  kthread+0x328/0x630
[   28.235574]  ret_from_fork+0x10/0x20
[   28.235647] 
[   28.236556] CPU: 0 UID: 0 PID: 311 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT 
[   28.236952] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.237043] Hardware name: linux,dummy-virt (DT)
[   28.237133] ==================================================================

[   28.619822] ==================================================================
[   28.620539] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   28.620539] 
[   28.621969] Invalid free of 0x(____ptrval____) (in kfence-#117):
[   28.622936]  test_invalid_addr_free+0xfb/0x260
[   28.623436]  kunit_try_run_case+0x1a5/0x480
[   28.624175]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.624706]  kthread+0x337/0x6f0
[   28.625361]  ret_from_fork+0x41/0x80
[   28.625919]  ret_from_fork_asm+0x1a/0x30
[   28.626588] 
[   28.626999] kfence-#117: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   28.626999] 
[   28.627745] allocated by task 329 on cpu 0 at 28.619627s (0.008112s ago):
[   28.628530]  test_alloc+0x2a6/0x10f0
[   28.629239]  test_invalid_addr_free+0xdb/0x260
[   28.629808]  kunit_try_run_case+0x1a5/0x480
[   28.630444]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.631062]  kthread+0x337/0x6f0
[   28.631445]  ret_from_fork+0x41/0x80
[   28.632092]  ret_from_fork_asm+0x1a/0x30
[   28.632516] 
[   28.632802] CPU: 0 UID: 0 PID: 329 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   28.633928] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.634509] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.635469] ==================================================================
[   28.515832] ==================================================================
[   28.516611] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   28.516611] 
[   28.517312] Invalid free of 0x(____ptrval____) (in kfence-#116):
[   28.517789]  test_invalid_addr_free+0x1e1/0x260
[   28.518156]  kunit_try_run_case+0x1a5/0x480
[   28.518786]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.519334]  kthread+0x337/0x6f0
[   28.519636]  ret_from_fork+0x41/0x80
[   28.520069]  ret_from_fork_asm+0x1a/0x30
[   28.520517] 
[   28.520756] kfence-#116: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   28.520756] 
[   28.521536] allocated by task 327 on cpu 1 at 28.515606s (0.005925s ago):
[   28.522124]  test_alloc+0x364/0x10f0
[   28.522625]  test_invalid_addr_free+0xdb/0x260
[   28.522973]  kunit_try_run_case+0x1a5/0x480
[   28.523465]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.523992]  kthread+0x337/0x6f0
[   28.524384]  ret_from_fork+0x41/0x80
[   28.524689]  ret_from_fork_asm+0x1a/0x30
[   28.525098] 
[   28.525405] CPU: 1 UID: 0 PID: 327 Comm: kunit_try_catch Tainted: G    B            N  6.15.3-rc1 #1 PREEMPT(voluntary) 
[   28.526406] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.526791] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.527380] ==================================================================