Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.839702] ================================================================== [ 18.840143] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 18.840804] Free of addr fff00000c660c001 by task kunit_try_catch/159 [ 18.841037] [ 18.841138] CPU: 0 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 18.841444] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.841504] Hardware name: linux,dummy-virt (DT) [ 18.841781] Call trace: [ 18.841866] show_stack+0x20/0x38 (C) [ 18.842007] dump_stack_lvl+0x8c/0xd0 [ 18.842131] print_report+0x118/0x608 [ 18.842246] kasan_report_invalid_free+0xc0/0xe8 [ 18.842646] __kasan_kfree_large+0x5c/0xa8 [ 18.842892] free_large_kmalloc+0x64/0x190 [ 18.843409] kfree+0x270/0x3c8 [ 18.843538] kmalloc_large_invalid_free+0x108/0x270 [ 18.843659] kunit_try_run_case+0x170/0x3f0 [ 18.843777] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.843919] kthread+0x328/0x630 [ 18.844105] ret_from_fork+0x10/0x20 [ 18.844546] [ 18.845578] The buggy address belongs to the physical page: [ 18.845701] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10660c [ 18.845860] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.846354] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.846688] page_type: f8(unknown) [ 18.847175] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.847384] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.847845] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.848002] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.848114] head: 0bfffe0000000002 ffffc1ffc3198301 00000000ffffffff 00000000ffffffff [ 18.848746] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.848983] page dumped because: kasan: bad access detected [ 18.849068] [ 18.849152] Memory state around the buggy address: [ 18.849247] fff00000c660bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.849508] fff00000c660bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.849712] >fff00000c660c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.849825] ^ [ 18.849918] fff00000c660c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.850025] fff00000c660c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.850587] ==================================================================
[ 10.928972] ================================================================== [ 10.929874] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.930265] Free of addr ffff888102ad0001 by task kunit_try_catch/175 [ 10.930858] [ 10.931002] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 10.931053] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.931065] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.931087] Call Trace: [ 10.931102] <TASK> [ 10.931121] dump_stack_lvl+0x73/0xb0 [ 10.931155] print_report+0xd1/0x650 [ 10.931179] ? __virt_addr_valid+0x1db/0x2d0 [ 10.931202] ? kasan_addr_to_slab+0x11/0xa0 [ 10.931221] ? kfree+0x274/0x3f0 [ 10.931243] kasan_report_invalid_free+0x10a/0x130 [ 10.931266] ? kfree+0x274/0x3f0 [ 10.931288] ? kfree+0x274/0x3f0 [ 10.931307] __kasan_kfree_large+0x86/0xd0 [ 10.931327] free_large_kmalloc+0x4b/0x110 [ 10.931350] kfree+0x274/0x3f0 [ 10.931373] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.931395] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.931416] ? __schedule+0x10cc/0x2b60 [ 10.931438] ? __pfx_read_tsc+0x10/0x10 [ 10.931458] ? ktime_get_ts64+0x86/0x230 [ 10.931483] kunit_try_run_case+0x1a5/0x480 [ 10.931531] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.931552] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.931574] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.931595] ? __kthread_parkme+0x82/0x180 [ 10.931614] ? preempt_count_sub+0x50/0x80 [ 10.931638] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.931660] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.931683] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.931705] kthread+0x337/0x6f0 [ 10.931723] ? trace_preempt_on+0x20/0xc0 [ 10.931747] ? __pfx_kthread+0x10/0x10 [ 10.931766] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.931785] ? calculate_sigpending+0x7b/0xa0 [ 10.931809] ? __pfx_kthread+0x10/0x10 [ 10.931829] ret_from_fork+0x116/0x1d0 [ 10.931846] ? __pfx_kthread+0x10/0x10 [ 10.931866] ret_from_fork_asm+0x1a/0x30 [ 10.931896] </TASK> [ 10.931907] [ 10.941226] The buggy address belongs to the physical page: [ 10.941753] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ad0 [ 10.942190] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.942686] flags: 0x200000000000040(head|node=0|zone=2) [ 10.942901] page_type: f8(unknown) [ 10.943079] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.943702] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.944078] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.944394] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.944916] head: 0200000000000002 ffffea00040ab401 00000000ffffffff 00000000ffffffff [ 10.945339] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.945881] page dumped because: kasan: bad access detected [ 10.946228] [ 10.946302] Memory state around the buggy address: [ 10.946611] ffff888102acff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.947089] ffff888102acff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.947352] >ffff888102ad0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.947790] ^ [ 10.948062] ffff888102ad0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.948334] ffff888102ad0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.948648] ==================================================================