Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.386323] ================================================================== [ 30.386526] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 30.386620] Free of addr fff00000c9b20001 by task kunit_try_catch/181 [ 30.386676] [ 30.386725] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 30.386819] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.386846] Hardware name: linux,dummy-virt (DT) [ 30.386894] Call trace: [ 30.386933] show_stack+0x20/0x38 (C) [ 30.386982] dump_stack_lvl+0x8c/0xd0 [ 30.387029] print_report+0x118/0x5d0 [ 30.387072] kasan_report_invalid_free+0xc0/0xe8 [ 30.387119] __kasan_kfree_large+0x5c/0xa8 [ 30.387163] free_large_kmalloc+0x68/0x150 [ 30.387209] kfree+0x270/0x3c8 [ 30.387278] kmalloc_large_invalid_free+0x108/0x270 [ 30.387346] kunit_try_run_case+0x170/0x3f0 [ 30.387402] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.387479] kthread+0x328/0x630 [ 30.387563] ret_from_fork+0x10/0x20 [ 30.387610] [ 30.387637] The buggy address belongs to the physical page: [ 30.387703] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b20 [ 30.387821] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.388038] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.388126] page_type: f8(unknown) [ 30.388236] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.388344] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.388593] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.388836] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.388988] head: 0bfffe0000000002 ffffc1ffc326c801 00000000ffffffff 00000000ffffffff [ 30.389071] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 30.389112] page dumped because: kasan: bad access detected [ 30.389164] [ 30.389183] Memory state around the buggy address: [ 30.389215] fff00000c9b1ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.389258] fff00000c9b1ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.389337] >fff00000c9b20000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.389564] ^ [ 30.389873] fff00000c9b20080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.389959] fff00000c9b20100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.390257] ==================================================================
[ 22.813784] ================================================================== [ 22.815213] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 22.815542] Free of addr ffff8881050ec001 by task kunit_try_catch/199 [ 22.815745] [ 22.815828] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 22.815888] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.815902] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.815921] Call Trace: [ 22.815934] <TASK> [ 22.815950] dump_stack_lvl+0x73/0xb0 [ 22.815979] print_report+0xd1/0x610 [ 22.816002] ? __virt_addr_valid+0x1db/0x2d0 [ 22.816028] ? kasan_addr_to_slab+0x11/0xa0 [ 22.816047] ? kfree+0x274/0x3f0 [ 22.816068] kasan_report_invalid_free+0x10a/0x130 [ 22.816092] ? kfree+0x274/0x3f0 [ 22.816114] ? kfree+0x274/0x3f0 [ 22.816134] __kasan_kfree_large+0x86/0xd0 [ 22.816155] free_large_kmalloc+0x52/0x110 [ 22.816177] kfree+0x274/0x3f0 [ 22.816201] kmalloc_large_invalid_free+0x120/0x2b0 [ 22.816223] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 22.816246] ? __pfx_queued_spin_lock_slowpath+0x10/0x10 [ 22.816282] ? __pfx_read_tsc+0x10/0x10 [ 22.816304] ? ktime_get_ts64+0x86/0x230 [ 22.816329] kunit_try_run_case+0x1a5/0x480 [ 22.816354] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.816376] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 22.816397] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.816419] ? __kthread_parkme+0x82/0x180 [ 22.816439] ? preempt_count_sub+0x50/0x80 [ 22.816462] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.816485] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.816511] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.816537] kthread+0x337/0x6f0 [ 22.816556] ? trace_preempt_on+0x20/0xc0 [ 22.816579] ? __pfx_kthread+0x10/0x10 [ 22.816607] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.816628] ? calculate_sigpending+0x7b/0xa0 [ 22.816651] ? __pfx_kthread+0x10/0x10 [ 22.816672] ret_from_fork+0x116/0x1d0 [ 22.816691] ? __pfx_kthread+0x10/0x10 [ 22.816711] ret_from_fork_asm+0x1a/0x30 [ 22.816742] </TASK> [ 22.816752] [ 22.829747] The buggy address belongs to the physical page: [ 22.830061] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050ec [ 22.830319] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.830542] flags: 0x200000000000040(head|node=0|zone=2) [ 22.830766] page_type: f8(unknown) [ 22.830887] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.831323] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 22.831612] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.831904] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 22.832355] head: 0200000000000002 ffffea0004143b01 00000000ffffffff 00000000ffffffff [ 22.832605] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 22.832990] page dumped because: kasan: bad access detected [ 22.833310] [ 22.833392] Memory state around the buggy address: [ 22.833546] ffff8881050ebf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.833872] ffff8881050ebf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.834323] >ffff8881050ec000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.834672] ^ [ 22.834819] ffff8881050ec080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.835113] ffff8881050ec100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.835443] ==================================================================