Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.139037] ================================================================== [ 30.139231] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 30.139511] Free of addr fff00000c9ae0001 by task kunit_try_catch/183 [ 30.139716] [ 30.139782] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.139870] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.140003] Hardware name: linux,dummy-virt (DT) [ 30.140146] Call trace: [ 30.140228] show_stack+0x20/0x38 (C) [ 30.140282] dump_stack_lvl+0x8c/0xd0 [ 30.140437] print_report+0x118/0x5e8 [ 30.140491] kasan_report_invalid_free+0xc0/0xe8 [ 30.140586] __kasan_kfree_large+0x5c/0xa8 [ 30.140630] free_large_kmalloc+0x68/0x150 [ 30.140675] kfree+0x270/0x3c8 [ 30.140717] kmalloc_large_invalid_free+0x108/0x270 [ 30.140766] kunit_try_run_case+0x170/0x3f0 [ 30.140886] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.141170] kthread+0x328/0x630 [ 30.141233] ret_from_fork+0x10/0x20 [ 30.141320] [ 30.141427] The buggy address belongs to the physical page: [ 30.141806] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ae0 [ 30.142057] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.142128] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.142254] page_type: f8(unknown) [ 30.142324] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.142425] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.142561] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.142609] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 30.142664] head: 0bfffe0000000002 ffffc1ffc326b801 00000000ffffffff 00000000ffffffff [ 30.142886] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 30.143137] page dumped because: kasan: bad access detected [ 30.143246] [ 30.143266] Memory state around the buggy address: [ 30.143303] fff00000c9adff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.143347] fff00000c9adff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.143390] >fff00000c9ae0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.143428] ^ [ 30.143457] fff00000c9ae0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.143499] fff00000c9ae0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.144040] ==================================================================
[ 24.629915] ================================================================== [ 24.630424] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 24.630878] Free of addr ffff8881060d8001 by task kunit_try_catch/199 [ 24.631389] [ 24.631517] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 24.631572] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.631585] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.631606] Call Trace: [ 24.631626] <TASK> [ 24.631645] dump_stack_lvl+0x73/0xb0 [ 24.631676] print_report+0xd1/0x640 [ 24.631700] ? __virt_addr_valid+0x1db/0x2d0 [ 24.631727] ? kasan_addr_to_slab+0x11/0xa0 [ 24.631760] ? kfree+0x274/0x3f0 [ 24.631783] kasan_report_invalid_free+0x10a/0x130 [ 24.631807] ? kfree+0x274/0x3f0 [ 24.631830] ? kfree+0x274/0x3f0 [ 24.631851] __kasan_kfree_large+0x86/0xd0 [ 24.631872] free_large_kmalloc+0x52/0x110 [ 24.631896] kfree+0x274/0x3f0 [ 24.631921] kmalloc_large_invalid_free+0x120/0x2b0 [ 24.631953] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 24.631976] ? __schedule+0x10da/0x2b60 [ 24.632001] ? __pfx_read_tsc+0x10/0x10 [ 24.632023] ? ktime_get_ts64+0x86/0x230 [ 24.632048] kunit_try_run_case+0x1a5/0x480 [ 24.632074] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.632096] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.632122] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.632162] ? __kthread_parkme+0x82/0x180 [ 24.632182] ? preempt_count_sub+0x50/0x80 [ 24.632206] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.632229] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.632253] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.632276] kthread+0x337/0x6f0 [ 24.632296] ? trace_preempt_on+0x20/0xc0 [ 24.632321] ? __pfx_kthread+0x10/0x10 [ 24.632341] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.632365] ? calculate_sigpending+0x7b/0xa0 [ 24.632389] ? __pfx_kthread+0x10/0x10 [ 24.632410] ret_from_fork+0x116/0x1d0 [ 24.632430] ? __pfx_kthread+0x10/0x10 [ 24.632450] ret_from_fork_asm+0x1a/0x30 [ 24.632481] </TASK> [ 24.632493] [ 24.643508] The buggy address belongs to the physical page: [ 24.643867] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060d8 [ 24.644370] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.644681] flags: 0x200000000000040(head|node=0|zone=2) [ 24.644918] page_type: f8(unknown) [ 24.645062] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.645392] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.645699] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.646649] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.647163] head: 0200000000000002 ffffea0004183601 00000000ffffffff 00000000ffffffff [ 24.647661] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.647986] page dumped because: kasan: bad access detected [ 24.648356] [ 24.648525] Memory state around the buggy address: [ 24.648881] ffff8881060d7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.649331] ffff8881060d7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.649732] >ffff8881060d8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.650036] ^ [ 24.650610] ffff8881060d8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.650867] ffff8881060d8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.651476] ==================================================================