Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.168516] ================================================================== [ 24.168731] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 24.168881] Free of addr fff00000c641c001 by task kunit_try_catch/152 [ 24.168985] [ 24.169067] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.169271] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.169332] Hardware name: linux,dummy-virt (DT) [ 24.169420] Call trace: [ 24.169476] show_stack+0x20/0x38 (C) [ 24.169591] dump_stack_lvl+0x8c/0xd0 [ 24.169703] print_report+0x118/0x608 [ 24.169814] kasan_report_invalid_free+0xc0/0xe8 [ 24.169925] __kasan_kfree_large+0x5c/0xa8 [ 24.170033] free_large_kmalloc+0x64/0x190 [ 24.170146] kfree+0x270/0x3c8 [ 24.170243] kmalloc_large_invalid_free+0x108/0x270 [ 24.170362] kunit_try_run_case+0x170/0x3f0 [ 24.170522] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.170722] kthread+0x328/0x630 [ 24.170859] ret_from_fork+0x10/0x20 [ 24.171042] [ 24.171104] The buggy address belongs to the physical page: [ 24.171186] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10641c [ 24.171322] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.171462] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 24.171774] page_type: f8(unknown) [ 24.171882] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.171995] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 24.172128] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.172244] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 24.172364] head: 0bfffe0000000002 ffffc1ffc3190701 00000000ffffffff 00000000ffffffff [ 24.172506] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.173059] page dumped because: kasan: bad access detected [ 24.173281] [ 24.173495] Memory state around the buggy address: [ 24.173591] fff00000c641bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.174066] fff00000c641bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.174253] >fff00000c641c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.174428] ^ [ 24.174512] fff00000c641c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.174711] fff00000c641c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.175214] ==================================================================
[ 16.264978] ================================================================== [ 16.265842] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 16.266178] Free of addr ffff88810a0a4001 by task kunit_try_catch/171 [ 16.267202] [ 16.267717] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.267843] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.267880] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.267936] Call Trace: [ 16.267974] <TASK> [ 16.268022] dump_stack_lvl+0x73/0xb0 [ 16.268106] print_report+0xd1/0x650 [ 16.268179] ? __virt_addr_valid+0x1db/0x2d0 [ 16.268256] ? kasan_addr_to_slab+0x11/0xa0 [ 16.268326] ? kfree+0x274/0x3f0 [ 16.268391] kasan_report_invalid_free+0x10a/0x130 [ 16.268475] ? kfree+0x274/0x3f0 [ 16.268545] ? kfree+0x274/0x3f0 [ 16.268793] __kasan_kfree_large+0x86/0xd0 [ 16.268878] free_large_kmalloc+0x4b/0x110 [ 16.268963] kfree+0x274/0x3f0 [ 16.269045] kmalloc_large_invalid_free+0x120/0x2b0 [ 16.269123] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 16.269202] ? __schedule+0x10cc/0x2b60 [ 16.269281] ? __pfx_read_tsc+0x10/0x10 [ 16.269323] ? ktime_get_ts64+0x86/0x230 [ 16.269361] kunit_try_run_case+0x1a5/0x480 [ 16.269399] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.269432] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.269466] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.269499] ? __kthread_parkme+0x82/0x180 [ 16.269529] ? preempt_count_sub+0x50/0x80 [ 16.269564] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.269600] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.269695] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.269766] kthread+0x337/0x6f0 [ 16.269794] ? trace_preempt_on+0x20/0xc0 [ 16.269829] ? __pfx_kthread+0x10/0x10 [ 16.269853] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.269883] ? calculate_sigpending+0x7b/0xa0 [ 16.269912] ? __pfx_kthread+0x10/0x10 [ 16.269936] ret_from_fork+0x41/0x80 [ 16.269964] ? __pfx_kthread+0x10/0x10 [ 16.269987] ret_from_fork_asm+0x1a/0x30 [ 16.270028] </TASK> [ 16.270044] [ 16.286477] The buggy address belongs to the physical page: [ 16.287070] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a0a4 [ 16.287937] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.288482] flags: 0x200000000000040(head|node=0|zone=2) [ 16.289370] page_type: f8(unknown) [ 16.289982] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.290740] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.291428] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.292223] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.292863] head: 0200000000000002 ffffea0004282901 00000000ffffffff 00000000ffffffff [ 16.293429] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 16.294063] page dumped because: kasan: bad access detected [ 16.295041] [ 16.295292] Memory state around the buggy address: [ 16.295761] ffff88810a0a3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.296458] ffff88810a0a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.297295] >ffff88810a0a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.298209] ^ [ 16.298564] ffff88810a0a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.299175] ffff88810a0a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.299773] ==================================================================