Date
July 15, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.631803] ================================================================== [ 17.631895] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 17.632712] Free of addr fff00000c787c001 by task kunit_try_catch/152 [ 17.632855] [ 17.632890] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT [ 17.633000] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.633235] Hardware name: linux,dummy-virt (DT) [ 17.633414] Call trace: [ 17.633499] show_stack+0x20/0x38 (C) [ 17.633554] dump_stack_lvl+0x8c/0xd0 [ 17.633601] print_report+0x118/0x5d0 [ 17.633644] kasan_report_invalid_free+0xc0/0xe8 [ 17.633690] __kasan_kfree_large+0x5c/0xa8 [ 17.633735] free_large_kmalloc+0x64/0x190 [ 17.634277] kfree+0x270/0x3c8 [ 17.634330] kmalloc_large_invalid_free+0x108/0x270 [ 17.634675] kunit_try_run_case+0x170/0x3f0 [ 17.634818] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.634920] kthread+0x328/0x630 [ 17.635329] ret_from_fork+0x10/0x20 [ 17.635480] [ 17.635502] The buggy address belongs to the physical page: [ 17.635704] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10787c [ 17.635894] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.636026] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.636112] page_type: f8(unknown) [ 17.636160] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.636224] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.636274] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.636322] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.636371] head: 0bfffe0000000002 ffffc1ffc31e1f01 00000000ffffffff 00000000ffffffff [ 17.636448] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.636506] page dumped because: kasan: bad access detected [ 17.636539] [ 17.636556] Memory state around the buggy address: [ 17.636597] fff00000c787bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.636649] fff00000c787bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.636691] >fff00000c787c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.636738] ^ [ 17.636764] fff00000c787c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.636807] fff00000c787c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.636881] ==================================================================
[ 10.549760] ================================================================== [ 10.551082] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.551297] Free of addr ffff888102aa8001 by task kunit_try_catch/169 [ 10.551499] [ 10.551580] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.15.7-rc1 #1 PREEMPT(voluntary) [ 10.551621] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.551632] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.551650] Call Trace: [ 10.551660] <TASK> [ 10.551673] dump_stack_lvl+0x73/0xb0 [ 10.551695] print_report+0xd1/0x610 [ 10.551717] ? __virt_addr_valid+0x1db/0x2d0 [ 10.551739] ? kasan_addr_to_slab+0x11/0xa0 [ 10.551759] ? kfree+0x274/0x3f0 [ 10.551776] kasan_report_invalid_free+0x10a/0x130 [ 10.551800] ? kfree+0x274/0x3f0 [ 10.551819] ? kfree+0x274/0x3f0 [ 10.551836] __kasan_kfree_large+0x86/0xd0 [ 10.551856] free_large_kmalloc+0x4b/0x110 [ 10.551876] kfree+0x274/0x3f0 [ 10.551919] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.551941] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.551964] ? __schedule+0x10cc/0x2b60 [ 10.551986] ? __pfx_read_tsc+0x10/0x10 [ 10.552009] ? ktime_get_ts64+0x86/0x230 [ 10.552032] kunit_try_run_case+0x1a5/0x480 [ 10.552052] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.552070] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.552103] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.552127] ? __kthread_parkme+0x82/0x180 [ 10.552151] ? preempt_count_sub+0x50/0x80 [ 10.552186] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.552205] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.552227] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.552249] kthread+0x337/0x6f0 [ 10.552264] ? trace_preempt_on+0x20/0xc0 [ 10.552286] ? __pfx_kthread+0x10/0x10 [ 10.552303] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.552324] ? calculate_sigpending+0x7b/0xa0 [ 10.552355] ? __pfx_kthread+0x10/0x10 [ 10.552373] ret_from_fork+0x41/0x80 [ 10.552400] ? __pfx_kthread+0x10/0x10 [ 10.552427] ret_from_fork_asm+0x1a/0x30 [ 10.552461] </TASK> [ 10.552470] [ 10.564490] The buggy address belongs to the physical page: [ 10.564784] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102aa8 [ 10.565408] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.566005] flags: 0x200000000000040(head|node=0|zone=2) [ 10.566271] page_type: f8(unknown) [ 10.566568] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.567079] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.567365] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.567839] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.568305] head: 0200000000000002 ffffea00040aaa01 00000000ffffffff 00000000ffffffff [ 10.568645] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.569159] page dumped because: kasan: bad access detected [ 10.569479] [ 10.569558] Memory state around the buggy address: [ 10.569786] ffff888102aa7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.570341] ffff888102aa7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.570656] >ffff888102aa8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.571227] ^ [ 10.571377] ffff888102aa8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.571753] ffff888102aa8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.572128] ==================================================================