Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.966470] ================================================================== [ 29.967049] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 29.967310] Free of addr fff00000c7700001 by task kunit_try_catch/161 [ 29.967599] [ 29.967831] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 29.968489] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.968591] Hardware name: linux,dummy-virt (DT) [ 29.968740] Call trace: [ 29.968808] show_stack+0x20/0x38 (C) [ 29.969111] dump_stack_lvl+0x8c/0xd0 [ 29.969339] print_report+0x118/0x608 [ 29.969555] kasan_report_invalid_free+0xc0/0xe8 [ 29.969990] __kasan_kfree_large+0x5c/0xa8 [ 29.970178] free_large_kmalloc+0x68/0x150 [ 29.970439] kfree+0x270/0x3c8 [ 29.970644] kmalloc_large_invalid_free+0x108/0x270 [ 29.970941] kunit_try_run_case+0x170/0x3f0 [ 29.971097] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.971227] kthread+0x328/0x630 [ 29.971471] ret_from_fork+0x10/0x20 [ 29.971821] [ 29.971894] The buggy address belongs to the physical page: [ 29.971969] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107700 [ 29.972089] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.972365] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.972678] page_type: f8(unknown) [ 29.972869] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.973068] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.973747] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.973984] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.974222] head: 0bfffe0000000002 ffffc1ffc31dc001 00000000ffffffff 00000000ffffffff [ 29.974495] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 29.974688] page dumped because: kasan: bad access detected [ 29.974764] [ 29.974802] Memory state around the buggy address: [ 29.974880] fff00000c76fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.975164] fff00000c76fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.975274] >fff00000c7700000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.975450] ^ [ 29.975513] fff00000c7700080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.975603] fff00000c7700100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.975722] ==================================================================
[ 26.158744] ================================================================== [ 26.159409] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 26.159715] Free of addr ffff8881029f8001 by task kunit_try_catch/179 [ 26.160994] [ 26.161218] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 26.161542] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.161577] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.161623] Call Trace: [ 26.161656] <TASK> [ 26.161693] dump_stack_lvl+0x73/0xb0 [ 26.161751] print_report+0xd1/0x650 [ 26.161778] ? __virt_addr_valid+0x1db/0x2d0 [ 26.161805] ? kasan_addr_to_slab+0x11/0xa0 [ 26.161827] ? kfree+0x274/0x3f0 [ 26.161851] kasan_report_invalid_free+0x10a/0x130 [ 26.161877] ? kfree+0x274/0x3f0 [ 26.161905] ? kfree+0x274/0x3f0 [ 26.161962] __kasan_kfree_large+0x86/0xd0 [ 26.162088] free_large_kmalloc+0x52/0x110 [ 26.162137] kfree+0x274/0x3f0 [ 26.162165] kmalloc_large_invalid_free+0x120/0x2b0 [ 26.162191] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 26.162217] ? __schedule+0x10cc/0x2b60 [ 26.162243] ? __pfx_read_tsc+0x10/0x10 [ 26.162266] ? ktime_get_ts64+0x86/0x230 [ 26.162294] kunit_try_run_case+0x1a5/0x480 [ 26.162322] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.162346] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.162370] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.162395] ? __kthread_parkme+0x82/0x180 [ 26.162418] ? preempt_count_sub+0x50/0x80 [ 26.162444] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.162469] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.162494] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.162519] kthread+0x337/0x6f0 [ 26.162540] ? trace_preempt_on+0x20/0xc0 [ 26.162566] ? __pfx_kthread+0x10/0x10 [ 26.162588] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.162611] ? calculate_sigpending+0x7b/0xa0 [ 26.162637] ? __pfx_kthread+0x10/0x10 [ 26.162660] ret_from_fork+0x116/0x1d0 [ 26.162680] ? __pfx_kthread+0x10/0x10 [ 26.162703] ret_from_fork_asm+0x1a/0x30 [ 26.162736] </TASK> [ 26.162749] [ 26.176883] The buggy address belongs to the physical page: [ 26.177318] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f8 [ 26.177802] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.179283] flags: 0x200000000000040(head|node=0|zone=2) [ 26.180252] page_type: f8(unknown) [ 26.180446] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.181249] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 26.181718] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.182682] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 26.183506] head: 0200000000000002 ffffea00040a7e01 00000000ffffffff 00000000ffffffff [ 26.184684] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 26.185388] page dumped because: kasan: bad access detected [ 26.185749] [ 26.185890] Memory state around the buggy address: [ 26.186730] ffff8881029f7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.187424] ffff8881029f7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.187911] >ffff8881029f8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.188684] ^ [ 26.189296] ffff8881029f8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.189809] ffff8881029f8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.190609] ==================================================================