Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.202273] ================================================================== [ 18.202398] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 18.202761] Free of addr fff00000c64b0001 by task kunit_try_catch/151 [ 18.202838] [ 18.202916] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.203026] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.203092] Hardware name: linux,dummy-virt (DT) [ 18.203181] Call trace: [ 18.203209] show_stack+0x20/0x38 (C) [ 18.203268] dump_stack_lvl+0x8c/0xd0 [ 18.203319] print_report+0x118/0x608 [ 18.203368] kasan_report_invalid_free+0xc0/0xe8 [ 18.203422] __kasan_kfree_large+0x5c/0xa8 [ 18.203723] free_large_kmalloc+0x64/0x190 [ 18.203904] kfree+0x270/0x3c8 [ 18.203998] kmalloc_large_invalid_free+0x108/0x270 [ 18.204112] kunit_try_run_case+0x170/0x3f0 [ 18.204259] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.204316] kthread+0x328/0x630 [ 18.204670] ret_from_fork+0x10/0x20 [ 18.204815] [ 18.204901] The buggy address belongs to the physical page: [ 18.205025] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064b0 [ 18.205099] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.205317] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.205483] page_type: f8(unknown) [ 18.205629] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.205726] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.205836] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.205948] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.206036] head: 0bfffe0000000002 ffffc1ffc3192c01 00000000ffffffff 00000000ffffffff [ 18.206088] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.206357] page dumped because: kasan: bad access detected [ 18.206518] [ 18.206554] Memory state around the buggy address: [ 18.206596] fff00000c64aff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.206650] fff00000c64aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.206703] >fff00000c64b0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.206746] ^ [ 18.206794] fff00000c64b0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.206841] fff00000c64b0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.206916] ==================================================================
[ 11.096236] ================================================================== [ 11.097697] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.098720] Free of addr ffff888102be0001 by task kunit_try_catch/167 [ 11.099602] [ 11.099739] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.099788] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.099800] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.099821] Call Trace: [ 11.099838] <TASK> [ 11.099857] dump_stack_lvl+0x73/0xb0 [ 11.099889] print_report+0xd1/0x650 [ 11.099913] ? __virt_addr_valid+0x1db/0x2d0 [ 11.099937] ? kasan_addr_to_slab+0x11/0xa0 [ 11.099956] ? kfree+0x274/0x3f0 [ 11.099977] kasan_report_invalid_free+0x10a/0x130 [ 11.100000] ? kfree+0x274/0x3f0 [ 11.100022] ? kfree+0x274/0x3f0 [ 11.100042] __kasan_kfree_large+0x86/0xd0 [ 11.100062] free_large_kmalloc+0x4b/0x110 [ 11.100084] kfree+0x274/0x3f0 [ 11.100108] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.100130] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.100151] ? __schedule+0x10cc/0x2b60 [ 11.100173] ? __pfx_read_tsc+0x10/0x10 [ 11.100194] ? ktime_get_ts64+0x86/0x230 [ 11.100217] kunit_try_run_case+0x1a5/0x480 [ 11.100240] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.100261] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.100283] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.100304] ? __kthread_parkme+0x82/0x180 [ 11.100324] ? preempt_count_sub+0x50/0x80 [ 11.100347] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.100369] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.100411] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.100433] kthread+0x337/0x6f0 [ 11.100451] ? trace_preempt_on+0x20/0xc0 [ 11.100480] ? __pfx_kthread+0x10/0x10 [ 11.100500] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.100520] ? calculate_sigpending+0x7b/0xa0 [ 11.100543] ? __pfx_kthread+0x10/0x10 [ 11.100563] ret_from_fork+0x116/0x1d0 [ 11.100580] ? __pfx_kthread+0x10/0x10 [ 11.100600] ret_from_fork_asm+0x1a/0x30 [ 11.100630] </TASK> [ 11.100641] [ 11.112892] The buggy address belongs to the physical page: [ 11.113360] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102be0 [ 11.113830] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.114329] flags: 0x200000000000040(head|node=0|zone=2) [ 11.114607] page_type: f8(unknown) [ 11.115219] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.115727] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.116124] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.116489] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.117097] head: 0200000000000002 ffffea00040af801 00000000ffffffff 00000000ffffffff [ 11.117536] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.118098] page dumped because: kasan: bad access detected [ 11.118355] [ 11.118467] Memory state around the buggy address: [ 11.119152] ffff888102bdff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.119630] ffff888102bdff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.120053] >ffff888102be0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.120404] ^ [ 11.120718] ffff888102be0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.121192] ffff888102be0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.121673] ==================================================================