Date
July 3, 2025, 3:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.312420] ================================================================== [ 15.312511] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.312573] Free of addr fff00000c65c0001 by task kunit_try_catch/153 [ 15.312630] [ 15.312662] CPU: 1 UID: 0 PID: 153 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT [ 15.312747] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.312773] Hardware name: linux,dummy-virt (DT) [ 15.312808] Call trace: [ 15.312830] show_stack+0x20/0x38 (C) [ 15.312887] dump_stack_lvl+0x8c/0xd0 [ 15.312935] print_report+0x118/0x608 [ 15.313164] kasan_report_invalid_free+0xc0/0xe8 [ 15.313225] __kasan_kfree_large+0x5c/0xa8 [ 15.313270] free_large_kmalloc+0x64/0x190 [ 15.313459] kfree+0x270/0x3c8 [ 15.313655] kmalloc_large_invalid_free+0x108/0x270 [ 15.313715] kunit_try_run_case+0x170/0x3f0 [ 15.313764] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.313833] kthread+0x328/0x630 [ 15.313877] ret_from_fork+0x10/0x20 [ 15.313922] [ 15.314217] The buggy address belongs to the physical page: [ 15.314459] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c0 [ 15.314516] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.314888] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.314962] page_type: f8(unknown) [ 15.315178] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.315473] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.315534] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.315590] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.315805] head: 0bfffe0000000002 ffffc1ffc3197001 00000000ffffffff 00000000ffffffff [ 15.315970] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.316182] page dumped because: kasan: bad access detected [ 15.316345] [ 15.316477] Memory state around the buggy address: [ 15.316510] fff00000c65bff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.316596] fff00000c65bff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.316823] >fff00000c65c0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.317181] ^ [ 15.317391] fff00000c65c0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.317461] fff00000c65c0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.317794] ==================================================================
[ 10.738067] ================================================================== [ 10.738614] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.738885] Free of addr ffff888102a24001 by task kunit_try_catch/169 [ 10.739148] [ 10.739258] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT(voluntary) [ 10.739303] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.739314] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.739335] Call Trace: [ 10.739346] <TASK> [ 10.739361] dump_stack_lvl+0x73/0xb0 [ 10.739387] print_report+0xd1/0x650 [ 10.739410] ? __virt_addr_valid+0x1db/0x2d0 [ 10.739433] ? kasan_addr_to_slab+0x11/0xa0 [ 10.739453] ? kfree+0x274/0x3f0 [ 10.739472] kasan_report_invalid_free+0x10a/0x130 [ 10.739496] ? kfree+0x274/0x3f0 [ 10.739517] ? kfree+0x274/0x3f0 [ 10.739534] __kasan_kfree_large+0x86/0xd0 [ 10.739556] free_large_kmalloc+0x4b/0x110 [ 10.739576] kfree+0x274/0x3f0 [ 10.739598] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.739621] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.739645] ? __schedule+0x10cc/0x2b60 [ 10.739668] ? __pfx_read_tsc+0x10/0x10 [ 10.739687] ? ktime_get_ts64+0x86/0x230 [ 10.739712] kunit_try_run_case+0x1a5/0x480 [ 10.739737] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.739760] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.739793] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.739817] ? __kthread_parkme+0x82/0x180 [ 10.739838] ? preempt_count_sub+0x50/0x80 [ 10.739863] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.739886] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.739909] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.739931] kthread+0x337/0x6f0 [ 10.739948] ? trace_preempt_on+0x20/0xc0 [ 10.739971] ? __pfx_kthread+0x10/0x10 [ 10.739989] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.740010] ? calculate_sigpending+0x7b/0xa0 [ 10.740032] ? __pfx_kthread+0x10/0x10 [ 10.740050] ret_from_fork+0x41/0x80 [ 10.740071] ? __pfx_kthread+0x10/0x10 [ 10.740088] ret_from_fork_asm+0x1a/0x30 [ 10.740119] </TASK> [ 10.740129] [ 10.749970] The buggy address belongs to the physical page: [ 10.750220] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a24 [ 10.750945] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.751232] flags: 0x200000000000040(head|node=0|zone=2) [ 10.751567] page_type: f8(unknown) [ 10.751775] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.752132] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.752613] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.753056] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.753631] head: 0200000000000002 ffffea00040a8901 00000000ffffffff 00000000ffffffff [ 10.754058] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.754489] page dumped because: kasan: bad access detected [ 10.754752] [ 10.754901] Memory state around the buggy address: [ 10.755108] ffff888102a23f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.755613] ffff888102a23f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.755946] >ffff888102a24000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.756519] ^ [ 10.756692] ffff888102a24080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.757080] ffff888102a24100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.757510] ==================================================================