Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.020173] ================================================================== [ 17.020422] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 17.020619] Free of addr fff00000c65b0001 by task kunit_try_catch/150 [ 17.020722] [ 17.021110] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 17.021480] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.021549] Hardware name: linux,dummy-virt (DT) [ 17.021615] Call trace: [ 17.021956] show_stack+0x20/0x38 (C) [ 17.022099] dump_stack_lvl+0x8c/0xd0 [ 17.022394] print_report+0x118/0x608 [ 17.022676] kasan_report_invalid_free+0xc0/0xe8 [ 17.022969] __kasan_kfree_large+0x5c/0xa8 [ 17.023293] free_large_kmalloc+0x64/0x190 [ 17.023452] kfree+0x270/0x3c8 [ 17.023570] kmalloc_large_invalid_free+0x108/0x270 [ 17.023672] kunit_try_run_case+0x170/0x3f0 [ 17.023937] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.024199] kthread+0x328/0x630 [ 17.024411] ret_from_fork+0x10/0x20 [ 17.024538] [ 17.024591] The buggy address belongs to the physical page: [ 17.024670] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065b0 [ 17.024787] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.025149] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.025302] page_type: f8(unknown) [ 17.025457] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.025607] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.025754] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.025895] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.026314] head: 0bfffe0000000002 ffffc1ffc3196c01 00000000ffffffff 00000000ffffffff [ 17.026451] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.026722] page dumped because: kasan: bad access detected [ 17.026902] [ 17.026980] Memory state around the buggy address: [ 17.027062] fff00000c65aff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.027308] fff00000c65aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.027535] >fff00000c65b0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.027657] ^ [ 17.027823] fff00000c65b0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.027902] fff00000c65b0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.027999] ==================================================================
[ 10.542527] ================================================================== [ 10.543010] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.543589] Free of addr ffff888102a04001 by task kunit_try_catch/168 [ 10.544418] [ 10.544534] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.544791] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.544821] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.544845] Call Trace: [ 10.544857] <TASK> [ 10.544872] dump_stack_lvl+0x73/0xb0 [ 10.544899] print_report+0xd1/0x650 [ 10.544922] ? __virt_addr_valid+0x1db/0x2d0 [ 10.544944] ? kasan_addr_to_slab+0x11/0xa0 [ 10.544964] ? kfree+0x274/0x3f0 [ 10.544982] kasan_report_invalid_free+0x10a/0x130 [ 10.545297] ? kfree+0x274/0x3f0 [ 10.545322] ? kfree+0x274/0x3f0 [ 10.545339] __kasan_kfree_large+0x86/0xd0 [ 10.545361] free_large_kmalloc+0x4b/0x110 [ 10.545397] kfree+0x274/0x3f0 [ 10.545419] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.545441] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.545464] ? __schedule+0x10cc/0x2b60 [ 10.545487] ? __pfx_read_tsc+0x10/0x10 [ 10.545507] ? ktime_get_ts64+0x86/0x230 [ 10.545530] kunit_try_run_case+0x1a5/0x480 [ 10.545550] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.545569] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.545592] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.545616] ? __kthread_parkme+0x82/0x180 [ 10.545636] ? preempt_count_sub+0x50/0x80 [ 10.545659] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.545679] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.545702] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.545734] kthread+0x337/0x6f0 [ 10.545752] ? trace_preempt_on+0x20/0xc0 [ 10.545774] ? __pfx_kthread+0x10/0x10 [ 10.545794] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.545816] ? calculate_sigpending+0x7b/0xa0 [ 10.545840] ? __pfx_kthread+0x10/0x10 [ 10.545860] ret_from_fork+0x116/0x1d0 [ 10.545879] ? __pfx_kthread+0x10/0x10 [ 10.545898] ret_from_fork_asm+0x1a/0x30 [ 10.545927] </TASK> [ 10.545937] [ 10.557857] The buggy address belongs to the physical page: [ 10.558275] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a04 [ 10.558610] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.559293] flags: 0x200000000000040(head|node=0|zone=2) [ 10.559571] page_type: f8(unknown) [ 10.559895] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.560542] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.561004] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.561556] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.561993] head: 0200000000000002 ffffea00040a8101 00000000ffffffff 00000000ffffffff [ 10.562569] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.563192] page dumped because: kasan: bad access detected [ 10.563452] [ 10.563871] Memory state around the buggy address: [ 10.564132] ffff888102a03f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.564736] ffff888102a03f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.565224] >ffff888102a04000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.565562] ^ [ 10.565939] ffff888102a04080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.566568] ffff888102a04100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.567057] ==================================================================