Hay
Date
May 12, 2025, 11:48 a.m.

Environment
qemu-arm64
qemu-x86_64

[   21.554505] ==================================================================
[   21.554595] BUG: KFENCE: invalid free in test_invalid_addr_free+0xec/0x238
[   21.554595] 
[   21.554659] Invalid free of 0x00000000bf68c757 (in kfence-#107):
[   21.554712]  test_invalid_addr_free+0xec/0x238
[   21.554759]  kunit_try_run_case+0x170/0x3f0
[   21.554800]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.554840]  kthread+0x328/0x630
[   21.554879]  ret_from_fork+0x10/0x20
[   21.554917] 
[   21.554941] kfence-#107: 0x000000000df7af08-0x000000000fa48d90, size=32, cache=test
[   21.554941] 
[   21.554993] allocated by task 309 on cpu 1 at 21.554391s (0.000598s ago):
[   21.555067]  test_alloc+0x230/0x628
[   21.555108]  test_invalid_addr_free+0xd4/0x238
[   21.555149]  kunit_try_run_case+0x170/0x3f0
[   21.555185]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.555227]  kthread+0x328/0x630
[   21.555264]  ret_from_fork+0x10/0x20
[   21.555302] 
[   21.555343] CPU: 1 UID: 0 PID: 309 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   21.555423] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.555453] Hardware name: linux,dummy-virt (DT)
[   21.555486] ==================================================================
[   21.450626] ==================================================================
[   21.450703] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1ac/0x238
[   21.450703] 
[   21.450768] Invalid free of 0x0000000048dc97a3 (in kfence-#106):
[   21.450825]  test_invalid_addr_free+0x1ac/0x238
[   21.450874]  kunit_try_run_case+0x170/0x3f0
[   21.450919]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.450961]  kthread+0x328/0x630
[   21.451006]  ret_from_fork+0x10/0x20
[   21.451072] 
[   21.451100] kfence-#106: 0x00000000a335a609-0x00000000f57d7805, size=32, cache=kmalloc-32
[   21.451100] 
[   21.451156] allocated by task 307 on cpu 1 at 21.450478s (0.000674s ago):
[   21.451222]  test_alloc+0x29c/0x628
[   21.451261]  test_invalid_addr_free+0xd4/0x238
[   21.451302]  kunit_try_run_case+0x170/0x3f0
[   21.451341]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.451381]  kthread+0x328/0x630
[   21.451417]  ret_from_fork+0x10/0x20
[   21.451456] 
[   21.451501] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT 
[   21.451585] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.451613] Hardware name: linux,dummy-virt (DT)
[   21.451648] ==================================================================

[   24.450584] ==================================================================
[   24.451030] BUG: KFENCE: invalid free in test_invalid_addr_free+0x1e1/0x260
[   24.451030] 
[   24.451336] Invalid free of 0x(____ptrval____) (in kfence-#106):
[   24.451835]  test_invalid_addr_free+0x1e1/0x260
[   24.452234]  kunit_try_run_case+0x1a5/0x480
[   24.452548]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.452752]  kthread+0x337/0x6f0
[   24.452938]  ret_from_fork+0x116/0x1d0
[   24.453132]  ret_from_fork_asm+0x1a/0x30
[   24.453387] 
[   24.453498] kfence-#106: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=kmalloc-32
[   24.453498] 
[   24.454208] allocated by task 324 on cpu 0 at 24.450333s (0.003868s ago):
[   24.454518]  test_alloc+0x364/0x10f0
[   24.454724]  test_invalid_addr_free+0xdb/0x260
[   24.455086]  kunit_try_run_case+0x1a5/0x480
[   24.455460]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.455976]  kthread+0x337/0x6f0
[   24.456279]  ret_from_fork+0x116/0x1d0
[   24.456475]  ret_from_fork_asm+0x1a/0x30
[   24.456669] 
[   24.456830] CPU: 0 UID: 0 PID: 324 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   24.457513] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.457848] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.458586] ==================================================================
[   24.553879] ==================================================================
[   24.554360] BUG: KFENCE: invalid free in test_invalid_addr_free+0xfb/0x260
[   24.554360] 
[   24.554710] Invalid free of 0x(____ptrval____) (in kfence-#107):
[   24.555293]  test_invalid_addr_free+0xfb/0x260
[   24.555523]  kunit_try_run_case+0x1a5/0x480
[   24.555705]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.556118]  kthread+0x337/0x6f0
[   24.556491]  ret_from_fork+0x116/0x1d0
[   24.556852]  ret_from_fork_asm+0x1a/0x30
[   24.557058] 
[   24.557180] kfence-#107: 0x(____ptrval____)-0x(____ptrval____), size=32, cache=test
[   24.557180] 
[   24.557665] allocated by task 326 on cpu 1 at 24.553689s (0.003969s ago):
[   24.558303]  test_alloc+0x2a6/0x10f0
[   24.558568]  test_invalid_addr_free+0xdb/0x260
[   24.559006]  kunit_try_run_case+0x1a5/0x480
[   24.559215]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   24.559463]  kthread+0x337/0x6f0
[   24.559640]  ret_from_fork+0x116/0x1d0
[   24.559971]  ret_from_fork_asm+0x1a/0x30
[   24.560375] 
[   24.560655] CPU: 1 UID: 0 PID: 326 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) 
[   24.561454] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.561808] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.562253] ==================================================================