Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.041764] ================================================================== [ 22.042008] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 22.042197] Free of addr fff00000c642c001 by task kunit_try_catch/154 [ 22.042321] [ 22.044504] CPU: 1 UID: 0 PID: 154 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 22.045149] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.045252] Hardware name: linux,dummy-virt (DT) [ 22.045481] Call trace: [ 22.046100] show_stack+0x20/0x38 (C) [ 22.046440] dump_stack_lvl+0x8c/0xd0 [ 22.046618] print_report+0x118/0x608 [ 22.046789] kasan_report_invalid_free+0xc0/0xe8 [ 22.046966] __kasan_kfree_large+0x5c/0xa8 [ 22.047129] free_large_kmalloc+0x64/0x190 [ 22.047238] kfree+0x270/0x3c8 [ 22.047327] kmalloc_large_invalid_free+0x108/0x270 [ 22.047458] kunit_try_run_case+0x170/0x3f0 [ 22.047592] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.047732] kthread+0x328/0x630 [ 22.047874] ret_from_fork+0x10/0x20 [ 22.047988] [ 22.048043] The buggy address belongs to the physical page: [ 22.048304] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10642c [ 22.048456] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.048605] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 22.048781] page_type: f8(unknown) [ 22.048919] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.049064] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 22.049178] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.049295] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 22.049465] head: 0bfffe0000000002 ffffc1ffc3190b01 00000000ffffffff 00000000ffffffff [ 22.049579] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 22.049674] page dumped because: kasan: bad access detected [ 22.049764] [ 22.049829] Memory state around the buggy address: [ 22.049937] fff00000c642bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.050070] fff00000c642bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.050190] >fff00000c642c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.050288] ^ [ 22.050429] fff00000c642c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.050496] fff00000c642c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.050602] ==================================================================
[ 13.033950] ================================================================== [ 13.034500] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 13.035095] Free of addr ffff888102274001 by task kunit_try_catch/170 [ 13.035432] [ 13.036138] CPU: 0 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 13.036240] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.036266] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.036304] Call Trace: [ 13.036331] <TASK> [ 13.036366] dump_stack_lvl+0x73/0xb0 [ 13.036425] print_report+0xd1/0x650 [ 13.036465] ? __virt_addr_valid+0x1db/0x2d0 [ 13.036501] ? kasan_addr_to_slab+0x11/0xa0 [ 13.036535] ? kfree+0x274/0x3f0 [ 13.036582] kasan_report_invalid_free+0x10a/0x130 [ 13.036625] ? kfree+0x274/0x3f0 [ 13.036662] ? kfree+0x274/0x3f0 [ 13.036691] __kasan_kfree_large+0x86/0xd0 [ 13.036729] free_large_kmalloc+0x4b/0x110 [ 13.036767] kfree+0x274/0x3f0 [ 13.036806] ? kmalloc_large_invalid_free+0x8f/0x2b0 [ 13.036856] kmalloc_large_invalid_free+0x120/0x2b0 [ 13.036902] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 13.036938] ? __schedule+0x10cc/0x2b30 [ 13.036971] ? __pfx_read_tsc+0x10/0x10 [ 13.037004] ? ktime_get_ts64+0x86/0x230 [ 13.037044] kunit_try_run_case+0x1a5/0x480 [ 13.037077] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.037099] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.037123] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.037145] ? __kthread_parkme+0x82/0x180 [ 13.037168] ? preempt_count_sub+0x50/0x80 [ 13.037193] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.037216] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.037238] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.037260] kthread+0x337/0x6f0 [ 13.037277] ? trace_preempt_on+0x20/0xc0 [ 13.037301] ? __pfx_kthread+0x10/0x10 [ 13.037318] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.037339] ? calculate_sigpending+0x7b/0xa0 [ 13.037360] ? __pfx_kthread+0x10/0x10 [ 13.037378] ret_from_fork+0x41/0x80 [ 13.037399] ? __pfx_kthread+0x10/0x10 [ 13.037416] ret_from_fork_asm+0x1a/0x30 [ 13.037445] </TASK> [ 13.037459] [ 13.047114] The buggy address belongs to the physical page: [ 13.048028] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102274 [ 13.048657] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.049154] flags: 0x200000000000040(head|node=0|zone=2) [ 13.049468] page_type: f8(unknown) [ 13.049719] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.050127] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.050400] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 13.051107] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 13.052081] head: 0200000000000002 ffffea0004089d01 00000000ffffffff 00000000ffffffff [ 13.052600] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 13.053186] page dumped because: kasan: bad access detected [ 13.053415] [ 13.053750] Memory state around the buggy address: [ 13.053979] ffff888102273f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.054350] ffff888102273f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.054603] >ffff888102274000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.054848] ^ [ 13.055312] ffff888102274080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.056018] ffff888102274100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.056527] ==================================================================