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

Environment
qemu-arm64
qemu-x86_64

[   36.589157] ==================================================================
[   36.589267] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   36.589267] 
[   36.589335] Invalid free of 0x000000005f6241f1 (in kfence-#145):
[   36.589393]  test_invalid_addr_free+0x1ac/0x238
[   36.589442]  kunit_try_run_case+0x170/0x3f0
[   36.589487]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.589534]  kthread+0x328/0x630
[   36.589574]  ret_from_fork+0x10/0x20
[   36.589616] 
[   36.589641] kfence-#145: 0x000000002b4736fa-0x00000000c27d130c, size=32, cache=kmalloc-32
[   36.589641] 
[   36.589696] allocated by task 338 on cpu 1 at 36.589000s (0.000692s ago):
[   36.589762]  test_alloc+0x29c/0x628
[   36.589802]  test_invalid_addr_free+0xd4/0x238
[   36.589846]  kunit_try_run_case+0x170/0x3f0
[   36.589887]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.589932]  kthread+0x328/0x630
[   36.589968]  ret_from_fork+0x10/0x20
[   36.590008] 
[   36.590057] CPU: 1 UID: 0 PID: 338 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   36.590138] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.590167] Hardware name: linux,dummy-virt (DT)
[   36.590200] ==================================================================
[   36.693085] ==================================================================
[   36.693178] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   36.693178] 
[   36.693257] Invalid free of 0x00000000e2ab1308 (in kfence-#146):
[   36.693314]  test_invalid_addr_free+0xec/0x238
[   36.693361]  kunit_try_run_case+0x170/0x3f0
[   36.693407]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.693453]  kthread+0x328/0x630
[   36.693490]  ret_from_fork+0x10/0x20
[   36.693529] 
[   36.693554] kfence-#146: 0x0000000096c8dce3-0x000000005554ee18, size=32, cache=test
[   36.693554] 
[   36.693606] allocated by task 340 on cpu 1 at 36.692940s (0.000662s ago):
[   36.693670]  test_alloc+0x230/0x628
[   36.693710]  test_invalid_addr_free+0xd4/0x238
[   36.693753]  kunit_try_run_case+0x170/0x3f0
[   36.693794]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.693837]  kthread+0x328/0x630
[   36.693873]  ret_from_fork+0x10/0x20
[   36.693912] 
[   36.693954] CPU: 1 UID: 0 PID: 340 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT 
[   36.694034] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.694063] Hardware name: linux,dummy-virt (DT)
[   36.694097] ==================================================================

[   30.312287] ==================================================================
[   30.312668] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   30.312668] 
[   30.313016] Invalid free of 0x(____ptrval____) (in kfence-#106):
[   30.313325]  test_invalid_addr_free+0xfb/0x260
[   30.313523]  kunit_try_run_case+0x1a5/0x480
[   30.313670]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.313989]  kthread+0x337/0x6f0
[   30.314216]  ret_from_fork+0x116/0x1d0
[   30.314399]  ret_from_fork_asm+0x1a/0x30
[   30.314544] 
[   30.314695] kfence-#106: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   30.314695] 
[   30.315172] allocated by task 357 on cpu 0 at 30.312142s (0.003028s ago):
[   30.315492]  test_alloc+0x2a6/0x10f0
[   30.315684]  test_invalid_addr_free+0xdb/0x260
[   30.315896]  kunit_try_run_case+0x1a5/0x480
[   30.316075]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.316306]  kthread+0x337/0x6f0
[   30.316424]  ret_from_fork+0x116/0x1d0
[   30.316592]  ret_from_fork_asm+0x1a/0x30
[   30.316795] 
[   30.316944] CPU: 0 UID: 0 PID: 357 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   30.317338] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.317531] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.317961] ==================================================================
[   30.208250] ==================================================================
[   30.208632] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   30.208632] 
[   30.209058] Invalid free of 0x(____ptrval____) (in kfence-#105):
[   30.209420]  test_invalid_addr_free+0x1e1/0x260
[   30.210143]  kunit_try_run_case+0x1a5/0x480
[   30.210498]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.210805]  kthread+0x337/0x6f0
[   30.211013]  ret_from_fork+0x116/0x1d0
[   30.211332]  ret_from_fork_asm+0x1a/0x30
[   30.211542] 
[   30.211620] kfence-#105: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   30.211620] 
[   30.212267] allocated by task 355 on cpu 1 at 30.208108s (0.004156s ago):
[   30.212598]  test_alloc+0x364/0x10f0
[   30.212767]  test_invalid_addr_free+0xdb/0x260
[   30.213250]  kunit_try_run_case+0x1a5/0x480
[   30.213551]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   30.213790]  kthread+0x337/0x6f0
[   30.214105]  ret_from_fork+0x116/0x1d0
[   30.214415]  ret_from_fork_asm+0x1a/0x30
[   30.214718] 
[   30.214824] CPU: 1 UID: 0 PID: 355 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) 
[   30.215509] Tainted: [B]=BAD_PAGE, [N]=TEST
[   30.215801] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   30.216299] ==================================================================