Hay
Date
July 3, 2025, 10:10 a.m.

Environment
qemu-arm64
qemu-x86_64

[   36.920892] ==================================================================
[   36.920986] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   36.920986] 
[   36.921048] Invalid free of 0x00000000d40afea9 (in kfence-#145):
[   36.921102]  test_invalid_addr_free+0xec/0x238
[   36.921151]  kunit_try_run_case+0x170/0x3f0
[   36.921195]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.921242]  kthread+0x328/0x630
[   36.921282]  ret_from_fork+0x10/0x20
[   36.921322] 
[   36.921345] kfence-#145: 0x00000000f6c0028c-0x00000000820bfec4, size=32, cache=test
[   36.921345] 
[   36.921398] allocated by task 341 on cpu 0 at 36.920744s (0.000651s ago):
[   36.921462]  test_alloc+0x230/0x628
[   36.921506]  test_invalid_addr_free+0xd4/0x238
[   36.921549]  kunit_try_run_case+0x170/0x3f0
[   36.921592]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.921638]  kthread+0x328/0x630
[   36.921675]  ret_from_fork+0x10/0x20
[   36.921714] 
[   36.921757] CPU: 0 UID: 0 PID: 341 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   36.921849] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.921879] Hardware name: linux,dummy-virt (DT)
[   36.921913] ==================================================================
[   36.816913] ==================================================================
[   36.817002] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   36.817002] 
[   36.817068] Invalid free of 0x00000000689798e6 (in kfence-#144):
[   36.817122]  test_invalid_addr_free+0x1ac/0x238
[   36.817172]  kunit_try_run_case+0x170/0x3f0
[   36.817218]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.817265]  kthread+0x328/0x630
[   36.817306]  ret_from_fork+0x10/0x20
[   36.817348] 
[   36.817373] kfence-#144: 0x00000000da49c652-0x00000000ebf564b9, size=32, cache=kmalloc-32
[   36.817373] 
[   36.817428] allocated by task 339 on cpu 0 at 36.816734s (0.000690s ago):
[   36.817495]  test_alloc+0x29c/0x628
[   36.817536]  test_invalid_addr_free+0xd4/0x238
[   36.817578]  kunit_try_run_case+0x170/0x3f0
[   36.817620]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   36.817669]  kthread+0x328/0x630
[   36.817707]  ret_from_fork+0x10/0x20
[   36.817747] 
[   36.817797] CPU: 0 UID: 0 PID: 339 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   36.817891] Tainted: [B]=BAD_PAGE, [N]=TEST
[   36.817920] Hardware name: linux,dummy-virt (DT)
[   36.817957] ==================================================================

[   29.257593] ==================================================================
[   29.257954] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   29.257954] 
[   29.258511] Invalid free of 0x(____ptrval____) (in kfence-#100):
[   29.258754]  test_invalid_addr_free+0x1e1/0x260
[   29.258959]  kunit_try_run_case+0x1a5/0x480
[   29.259152]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.259848]  kthread+0x337/0x6f0
[   29.260216]  ret_from_fork+0x116/0x1d0
[   29.260387]  ret_from_fork_asm+0x1a/0x30
[   29.260611] 
[   29.260991] kfence-#100: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   29.260991] 
[   29.261400] allocated by task 356 on cpu 1 at 29.257466s (0.003931s ago):
[   29.261746]  test_alloc+0x364/0x10f0
[   29.262117]  test_invalid_addr_free+0xdb/0x260
[   29.262377]  kunit_try_run_case+0x1a5/0x480
[   29.262697]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.262956]  kthread+0x337/0x6f0
[   29.263247]  ret_from_fork+0x116/0x1d0
[   29.263532]  ret_from_fork_asm+0x1a/0x30
[   29.263733] 
[   29.264013] CPU: 1 UID: 0 PID: 356 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   29.264570] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.264781] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.265324] ==================================================================
[   29.361618] ==================================================================
[   29.361989] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   29.361989] 
[   29.362352] Invalid free of 0x(____ptrval____) (in kfence-#101):
[   29.362662]  test_invalid_addr_free+0xfb/0x260
[   29.362865]  kunit_try_run_case+0x1a5/0x480
[   29.363024]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.363279]  kthread+0x337/0x6f0
[   29.363414]  ret_from_fork+0x116/0x1d0
[   29.363601]  ret_from_fork_asm+0x1a/0x30
[   29.363738] 
[   29.363830] kfence-#101: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   29.363830] 
[   29.364284] allocated by task 358 on cpu 0 at 29.361497s (0.002785s ago):
[   29.364578]  test_alloc+0x2a6/0x10f0
[   29.364730]  test_invalid_addr_free+0xdb/0x260
[   29.364877]  kunit_try_run_case+0x1a5/0x480
[   29.365038]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   29.365281]  kthread+0x337/0x6f0
[   29.365421]  ret_from_fork+0x116/0x1d0
[   29.365558]  ret_from_fork_asm+0x1a/0x30
[   29.365692] 
[   29.365868] CPU: 0 UID: 0 PID: 358 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   29.366580] Tainted: [B]=BAD_PAGE, [N]=TEST
[   29.366731] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   29.367042] ==================================================================