Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.346830] ================================================================== [ 16.347006] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 16.347196] Free of addr fff00000c78dc001 by task kunit_try_catch/150 [ 16.347893] [ 16.348361] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 16.348587] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.348734] Hardware name: linux,dummy-virt (DT) [ 16.348893] Call trace: [ 16.348966] show_stack+0x20/0x38 (C) [ 16.349236] dump_stack_lvl+0x8c/0xd0 [ 16.349560] print_report+0x118/0x608 [ 16.349746] kasan_report_invalid_free+0xc0/0xe8 [ 16.349953] __kasan_kfree_large+0x5c/0xa8 [ 16.350175] free_large_kmalloc+0x64/0x190 [ 16.350323] kfree+0x270/0x3c8 [ 16.350439] kmalloc_large_invalid_free+0x108/0x270 [ 16.350594] kunit_try_run_case+0x170/0x3f0 [ 16.350909] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.351108] kthread+0x328/0x630 [ 16.351558] ret_from_fork+0x10/0x20 [ 16.351787] [ 16.351875] The buggy address belongs to the physical page: [ 16.352148] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078dc [ 16.352371] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.352541] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.352985] page_type: f8(unknown) [ 16.353073] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.353513] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.353822] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.354089] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.354174] head: 0bfffe0000000002 ffffc1ffc31e3701 00000000ffffffff 00000000ffffffff [ 16.354263] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 16.355344] page dumped because: kasan: bad access detected [ 16.355709] [ 16.355760] Memory state around the buggy address: [ 16.355830] fff00000c78dbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.355915] fff00000c78dbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.355999] >fff00000c78dc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.356335] ^ [ 16.356656] fff00000c78dc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.356752] fff00000c78dc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.356936] ==================================================================
[ 15.936813] ================================================================== [ 15.937817] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 15.938681] Free of addr ffff888102990001 by task kunit_try_catch/167 [ 15.939251] [ 15.939656] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 15.939806] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.939832] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.939876] Call Trace: [ 15.939905] <TASK> [ 15.939942] dump_stack_lvl+0x73/0xb0 [ 15.940014] print_report+0xd1/0x650 [ 15.940064] ? __virt_addr_valid+0x1db/0x2d0 [ 15.940115] ? kasan_addr_to_slab+0x11/0xa0 [ 15.940160] ? kfree+0x274/0x3f0 [ 15.940199] kasan_report_invalid_free+0x10a/0x130 [ 15.940241] ? kfree+0x274/0x3f0 [ 15.940324] ? kfree+0x274/0x3f0 [ 15.940355] __kasan_kfree_large+0x86/0xd0 [ 15.940394] free_large_kmalloc+0x4b/0x110 [ 15.940423] kfree+0x274/0x3f0 [ 15.940445] kmalloc_large_invalid_free+0x120/0x2b0 [ 15.940471] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 15.940496] ? __schedule+0x10cc/0x2b60 [ 15.940520] ? __pfx_read_tsc+0x10/0x10 [ 15.940542] ? ktime_get_ts64+0x86/0x230 [ 15.940571] kunit_try_run_case+0x1a5/0x480 [ 15.940597] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.940621] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.940645] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.940692] ? __kthread_parkme+0x82/0x180 [ 15.940722] ? preempt_count_sub+0x50/0x80 [ 15.940748] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.940773] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.940796] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.940821] kthread+0x337/0x6f0 [ 15.940841] ? trace_preempt_on+0x20/0xc0 [ 15.940868] ? __pfx_kthread+0x10/0x10 [ 15.940889] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.940911] ? calculate_sigpending+0x7b/0xa0 [ 15.940936] ? __pfx_kthread+0x10/0x10 [ 15.940958] ret_from_fork+0x116/0x1d0 [ 15.940978] ? __pfx_kthread+0x10/0x10 [ 15.940999] ret_from_fork_asm+0x1a/0x30 [ 15.941033] </TASK> [ 15.941064] [ 15.955936] The buggy address belongs to the physical page: [ 15.956370] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102990 [ 15.957017] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.957458] flags: 0x200000000000040(head|node=0|zone=2) [ 15.957784] page_type: f8(unknown) [ 15.958122] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.958980] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.959360] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.959756] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.960219] head: 0200000000000002 ffffea00040a6401 00000000ffffffff 00000000ffffffff [ 15.960725] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.961146] page dumped because: kasan: bad access detected [ 15.961774] [ 15.961970] Memory state around the buggy address: [ 15.962926] ffff88810298ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.963870] ffff88810298ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.964277] >ffff888102990000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.965205] ^ [ 15.965647] ffff888102990080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.966241] ffff888102990100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.966617] ==================================================================