Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.248754] ================================================================== [ 21.249812] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 21.249987] Free of addr fff00000c788c001 by task kunit_try_catch/152 [ 21.250091] [ 21.250175] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.250432] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.250508] Hardware name: linux,dummy-virt (DT) [ 21.250601] Call trace: [ 21.250677] show_stack+0x20/0x38 (C) [ 21.250857] dump_stack_lvl+0x8c/0xd0 [ 21.251014] print_report+0x118/0x608 [ 21.251159] kasan_report_invalid_free+0xc0/0xe8 [ 21.251316] __kasan_kfree_large+0x5c/0xa8 [ 21.251415] free_large_kmalloc+0x64/0x190 [ 21.251562] kfree+0x270/0x3c8 [ 21.251696] kmalloc_large_invalid_free+0x108/0x270 [ 21.251895] kunit_try_run_case+0x170/0x3f0 [ 21.252014] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.252151] kthread+0x328/0x630 [ 21.252263] ret_from_fork+0x10/0x20 [ 21.252377] [ 21.252427] The buggy address belongs to the physical page: [ 21.252504] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10788c [ 21.252635] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.252758] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.252881] page_type: f8(unknown) [ 21.252978] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.253100] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.253221] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.253350] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.253470] head: 0bfffe0000000002 ffffc1ffc31e2301 00000000ffffffff 00000000ffffffff [ 21.253654] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 21.253780] page dumped because: kasan: bad access detected [ 21.253883] [ 21.253936] Memory state around the buggy address: [ 21.254030] fff00000c788bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.254138] fff00000c788bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.254247] >fff00000c788c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.254363] ^ [ 21.254455] fff00000c788c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.254634] fff00000c788c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.254850] ==================================================================
[ 18.101556] ================================================================== [ 18.102647] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 18.103239] Free of addr ffff8881030bc001 by task kunit_try_catch/170 [ 18.104002] [ 18.104277] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 18.104422] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.104459] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.104514] Call Trace: [ 18.104556] <TASK> [ 18.104607] dump_stack_lvl+0x73/0xb0 [ 18.104689] print_report+0xd1/0x650 [ 18.104761] ? __virt_addr_valid+0x1db/0x2d0 [ 18.104837] ? kasan_addr_to_slab+0x11/0xa0 [ 18.104904] ? kfree+0x274/0x3f0 [ 18.104969] kasan_report_invalid_free+0x10a/0x130 [ 18.105054] ? kfree+0x274/0x3f0 [ 18.105129] ? kfree+0x274/0x3f0 [ 18.105195] __kasan_kfree_large+0x86/0xd0 [ 18.105273] free_large_kmalloc+0x4b/0x110 [ 18.105370] kfree+0x274/0x3f0 [ 18.105705] kmalloc_large_invalid_free+0x120/0x2b0 [ 18.105794] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 18.105879] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 18.105967] kunit_try_run_case+0x1a5/0x480 [ 18.106167] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.106239] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.106343] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.106417] ? __kthread_parkme+0x82/0x180 [ 18.106482] ? preempt_count_sub+0x50/0x80 [ 18.106522] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.106557] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.106592] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.106626] kthread+0x337/0x6f0 [ 18.106650] ? trace_preempt_on+0x20/0xc0 [ 18.106687] ? __pfx_kthread+0x10/0x10 [ 18.106712] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.106742] ? calculate_sigpending+0x7b/0xa0 [ 18.106772] ? __pfx_kthread+0x10/0x10 [ 18.106796] ret_from_fork+0x41/0x80 [ 18.106827] ? __pfx_kthread+0x10/0x10 [ 18.106851] ret_from_fork_asm+0x1a/0x30 [ 18.106894] </TASK> [ 18.106909] [ 18.129693] The buggy address belongs to the physical page: [ 18.130809] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1030bc [ 18.131704] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.132484] flags: 0x200000000000040(head|node=0|zone=2) [ 18.132900] page_type: f8(unknown) [ 18.134390] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.134857] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.135808] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.136965] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.137963] head: 0200000000000002 ffffea00040c2f01 00000000ffffffff 00000000ffffffff [ 18.138789] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.140219] page dumped because: kasan: bad access detected [ 18.140754] [ 18.141393] Memory state around the buggy address: [ 18.141774] ffff8881030bbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.142654] ffff8881030bbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.143471] >ffff8881030bc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.144783] ^ [ 18.145024] ffff8881030bc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.145687] ffff8881030bc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.146763] ==================================================================