Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.884856] ================================================================== [ 21.886332] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 21.887011] Free of addr fff00000c64a4001 by task kunit_try_catch/139 [ 21.888444] [ 21.888815] CPU: 1 UID: 0 PID: 139 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 21.889329] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.889376] Hardware name: linux,dummy-virt (DT) [ 21.889415] Call trace: [ 21.889446] show_stack+0x20/0x38 (C) [ 21.889514] dump_stack_lvl+0x8c/0xd0 [ 21.889574] print_report+0x118/0x608 [ 21.889634] kasan_report_invalid_free+0xc0/0xe8 [ 21.889694] __kasan_kfree_large+0x5c/0xa8 [ 21.889751] free_large_kmalloc+0x58/0x140 [ 21.889807] kfree+0x270/0x3c8 [ 21.889859] kmalloc_large_invalid_free+0x108/0x270 [ 21.889952] kunit_try_run_case+0x170/0x3f0 [ 21.890014] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.890079] kthread+0x318/0x620 [ 21.890134] ret_from_fork+0x10/0x20 [ 21.890210] [ 21.897691] The buggy address belongs to the physical page: [ 21.898253] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064a4 [ 21.899165] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.900019] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.900938] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.902911] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.903853] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.904688] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.905910] head: 0bfffe0000000002 ffffc1ffc3192901 ffffffffffffffff 0000000000000000 [ 21.906693] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 21.907509] page dumped because: kasan: bad access detected [ 21.908094] [ 21.908378] Memory state around the buggy address: [ 21.908968] fff00000c64a3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.909936] fff00000c64a3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.910703] >fff00000c64a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.911406] ^ [ 21.911867] fff00000c64a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.912552] fff00000c64a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.913379] ==================================================================
[ 16.767277] ================================================================== [ 16.768179] BUG: KASAN: invalid-free in kfree+0x276/0x3f0 [ 16.768805] Free of addr ffff8881022ec001 by task kunit_try_catch/158 [ 16.769210] [ 16.769353] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 16.769452] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.769479] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.769537] Call Trace: [ 16.769574] <TASK> [ 16.769630] dump_stack_lvl+0x73/0xb0 [ 16.769705] print_report+0xd1/0x650 [ 16.769757] ? __virt_addr_valid+0x1db/0x2d0 [ 16.769814] ? kasan_addr_to_slab+0x11/0xa0 [ 16.769888] ? kfree+0x276/0x3f0 [ 16.769941] kasan_report_invalid_free+0xfc/0x120 [ 16.770020] ? kfree+0x276/0x3f0 [ 16.770072] ? kfree+0x276/0x3f0 [ 16.770106] __kasan_kfree_large+0x86/0xd0 [ 16.770134] free_large_kmalloc+0x3b/0xd0 [ 16.770162] kfree+0x276/0x3f0 [ 16.770194] kmalloc_large_invalid_free+0x121/0x2b0 [ 16.770228] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 16.770274] ? __schedule+0xce8/0x2840 [ 16.770330] ? __pfx_read_tsc+0x10/0x10 [ 16.770383] ? ktime_get_ts64+0x86/0x230 [ 16.770456] kunit_try_run_case+0x1a6/0x480 [ 16.770535] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.770590] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 16.770641] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.770695] ? __kthread_parkme+0x82/0x160 [ 16.770751] ? preempt_count_sub+0x50/0x80 [ 16.770825] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.770916] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.770976] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.771030] kthread+0x324/0x6e0 [ 16.771064] ? trace_preempt_on+0x20/0xc0 [ 16.771096] ? __pfx_kthread+0x10/0x10 [ 16.771125] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.771153] ? calculate_sigpending+0x7b/0xa0 [ 16.771181] ? __pfx_kthread+0x10/0x10 [ 16.771209] ret_from_fork+0x41/0x80 [ 16.771234] ? __pfx_kthread+0x10/0x10 [ 16.771261] ret_from_fork_asm+0x1a/0x30 [ 16.771301] </TASK> [ 16.771324] [ 16.785682] The buggy address belongs to the physical page: [ 16.785966] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022ec [ 16.786732] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.787317] flags: 0x200000000000040(head|node=0|zone=2) [ 16.787903] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.788495] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 16.789118] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.789925] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 16.790630] head: 0200000000000002 ffffea000408bb01 ffffffffffffffff 0000000000000000 [ 16.791509] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 16.792062] page dumped because: kasan: bad access detected [ 16.792515] [ 16.792753] Memory state around the buggy address: [ 16.793291] ffff8881022ebf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.793632] ffff8881022ebf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.794254] >ffff8881022ec000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.794724] ^ [ 16.795048] ffff8881022ec080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.795533] ffff8881022ec100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.796089] ==================================================================