Date
July 8, 2025, 4:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.667006] ================================================================== [ 17.667095] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 17.667154] Free of addr fff00000c5d30001 by task kunit_try_catch/152 [ 17.667200] [ 17.667230] CPU: 1 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT [ 17.667310] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.667349] Hardware name: linux,dummy-virt (DT) [ 17.667379] Call trace: [ 17.667401] show_stack+0x20/0x38 (C) [ 17.667461] dump_stack_lvl+0x8c/0xd0 [ 17.667508] print_report+0x118/0x608 [ 17.667576] kasan_report_invalid_free+0xc0/0xe8 [ 17.667958] __kasan_kfree_large+0x5c/0xa8 [ 17.668127] free_large_kmalloc+0x64/0x190 [ 17.668255] kfree+0x270/0x3c8 [ 17.668677] kmalloc_large_invalid_free+0x108/0x270 [ 17.668972] kunit_try_run_case+0x170/0x3f0 [ 17.669219] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.669314] kthread+0x328/0x630 [ 17.669658] ret_from_fork+0x10/0x20 [ 17.670151] [ 17.670177] The buggy address belongs to the physical page: [ 17.670210] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105d30 [ 17.670261] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.670308] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.670371] page_type: f8(unknown) [ 17.670409] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.670456] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.670503] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.670549] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.670596] head: 0bfffe0000000002 ffffc1ffc3174c01 00000000ffffffff 00000000ffffffff [ 17.670643] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.670682] page dumped because: kasan: bad access detected [ 17.670723] [ 17.670742] Memory state around the buggy address: [ 17.670773] fff00000c5d2ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.671086] fff00000c5d2ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.671458] >fff00000c5d30000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.671497] ^ [ 17.671525] fff00000c5d30080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.671565] fff00000c5d30100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.672038] ==================================================================
[ 10.718680] ================================================================== [ 10.719302] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.719622] Free of addr ffff888102d68001 by task kunit_try_catch/170 [ 10.720448] [ 10.720639] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT(voluntary) [ 10.720686] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.720697] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.720718] Call Trace: [ 10.720731] <TASK> [ 10.720744] dump_stack_lvl+0x73/0xb0 [ 10.720770] print_report+0xd1/0x650 [ 10.720793] ? __virt_addr_valid+0x1db/0x2d0 [ 10.720824] ? kasan_addr_to_slab+0x11/0xa0 [ 10.720845] ? kfree+0x274/0x3f0 [ 10.720864] kasan_report_invalid_free+0x10a/0x130 [ 10.720906] ? kfree+0x274/0x3f0 [ 10.720936] ? kfree+0x274/0x3f0 [ 10.720954] __kasan_kfree_large+0x86/0xd0 [ 10.720976] free_large_kmalloc+0x4b/0x110 [ 10.720997] kfree+0x274/0x3f0 [ 10.721019] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.721142] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.721167] ? __schedule+0x10cc/0x2b60 [ 10.721191] ? __pfx_read_tsc+0x10/0x10 [ 10.721211] ? ktime_get_ts64+0x86/0x230 [ 10.721236] kunit_try_run_case+0x1a5/0x480 [ 10.721257] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.721276] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.721300] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.721324] ? __kthread_parkme+0x82/0x180 [ 10.721345] ? preempt_count_sub+0x50/0x80 [ 10.721370] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.721390] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.721413] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.721437] kthread+0x337/0x6f0 [ 10.721454] ? trace_preempt_on+0x20/0xc0 [ 10.721477] ? __pfx_kthread+0x10/0x10 [ 10.721495] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.721593] ? calculate_sigpending+0x7b/0xa0 [ 10.721618] ? __pfx_kthread+0x10/0x10 [ 10.721638] ret_from_fork+0x41/0x80 [ 10.721659] ? __pfx_kthread+0x10/0x10 [ 10.721677] ret_from_fork_asm+0x1a/0x30 [ 10.721708] </TASK> [ 10.721719] [ 10.731996] The buggy address belongs to the physical page: [ 10.732572] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d68 [ 10.733113] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.733433] flags: 0x200000000000040(head|node=0|zone=2) [ 10.733668] page_type: f8(unknown) [ 10.734102] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.734477] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.735047] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.735559] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.736085] head: 0200000000000002 ffffea00040b5a01 00000000ffffffff 00000000ffffffff [ 10.736608] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.737090] page dumped because: kasan: bad access detected [ 10.737350] [ 10.737561] Memory state around the buggy address: [ 10.737807] ffff888102d67f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.738346] ffff888102d67f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.738812] >ffff888102d68000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.739277] ^ [ 10.739419] ffff888102d68080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.739974] ffff888102d68100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.740308] ==================================================================