Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.243472] ================================================================== [ 15.243594] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.243656] Free of addr fff00000c7834001 by task kunit_try_catch/151 [ 15.244004] [ 15.244071] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.244233] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.244259] Hardware name: linux,dummy-virt (DT) [ 15.244373] Call trace: [ 15.244559] show_stack+0x20/0x38 (C) [ 15.244665] dump_stack_lvl+0x8c/0xd0 [ 15.244713] print_report+0x118/0x5d0 [ 15.245004] kasan_report_invalid_free+0xc0/0xe8 [ 15.245137] __kasan_kfree_large+0x5c/0xa8 [ 15.245239] free_large_kmalloc+0x64/0x190 [ 15.245303] kfree+0x270/0x3c8 [ 15.245344] kmalloc_large_invalid_free+0x108/0x270 [ 15.245390] kunit_try_run_case+0x170/0x3f0 [ 15.245438] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.245488] kthread+0x328/0x630 [ 15.245566] ret_from_fork+0x10/0x20 [ 15.245613] [ 15.245633] The buggy address belongs to the physical page: [ 15.245664] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107834 [ 15.245717] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.245764] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.245994] page_type: f8(unknown) [ 15.246270] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.246382] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.246431] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.246481] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.246888] head: 0bfffe0000000002 ffffc1ffc31e0d01 00000000ffffffff 00000000ffffffff [ 15.246962] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.247005] page dumped because: kasan: bad access detected [ 15.247036] [ 15.247053] Memory state around the buggy address: [ 15.247084] fff00000c7833f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.247127] fff00000c7833f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.247170] >fff00000c7834000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.247216] ^ [ 15.247244] fff00000c7834080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.247292] fff00000c7834100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.247525] ==================================================================
[ 12.094660] ================================================================== [ 12.095177] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 12.095701] Free of addr ffff8881029bc001 by task kunit_try_catch/167 [ 12.096038] [ 12.096133] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.096177] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.096189] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.096209] Call Trace: [ 12.096221] <TASK> [ 12.096236] dump_stack_lvl+0x73/0xb0 [ 12.096266] print_report+0xd1/0x610 [ 12.096288] ? __virt_addr_valid+0x1db/0x2d0 [ 12.096315] ? kasan_addr_to_slab+0x11/0xa0 [ 12.096477] ? kfree+0x274/0x3f0 [ 12.096504] kasan_report_invalid_free+0x10a/0x130 [ 12.096530] ? kfree+0x274/0x3f0 [ 12.096553] ? kfree+0x274/0x3f0 [ 12.096572] __kasan_kfree_large+0x86/0xd0 [ 12.096594] free_large_kmalloc+0x4b/0x110 [ 12.096618] kfree+0x274/0x3f0 [ 12.096643] kmalloc_large_invalid_free+0x120/0x2b0 [ 12.096667] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 12.096692] ? __schedule+0x10cc/0x2b60 [ 12.096715] ? __pfx_read_tsc+0x10/0x10 [ 12.096737] ? ktime_get_ts64+0x86/0x230 [ 12.096775] kunit_try_run_case+0x1a5/0x480 [ 12.096802] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.096825] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.096849] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.096873] ? __kthread_parkme+0x82/0x180 [ 12.096895] ? preempt_count_sub+0x50/0x80 [ 12.096920] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.096944] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.096969] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.096995] kthread+0x337/0x6f0 [ 12.097014] ? trace_preempt_on+0x20/0xc0 [ 12.097038] ? __pfx_kthread+0x10/0x10 [ 12.097058] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.097080] ? calculate_sigpending+0x7b/0xa0 [ 12.097105] ? __pfx_kthread+0x10/0x10 [ 12.097126] ret_from_fork+0x116/0x1d0 [ 12.097145] ? __pfx_kthread+0x10/0x10 [ 12.097166] ret_from_fork_asm+0x1a/0x30 [ 12.097197] </TASK> [ 12.097207] [ 12.104734] The buggy address belongs to the physical page: [ 12.104928] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029bc [ 12.105228] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.105559] flags: 0x200000000000040(head|node=0|zone=2) [ 12.105878] page_type: f8(unknown) [ 12.106148] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.106620] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.106913] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.107259] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.107885] head: 0200000000000002 ffffea00040a6f01 00000000ffffffff 00000000ffffffff [ 12.108185] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.108641] page dumped because: kasan: bad access detected [ 12.108875] [ 12.108959] Memory state around the buggy address: [ 12.109113] ffff8881029bbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.109329] ffff8881029bbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.109844] >ffff8881029bc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.110159] ^ [ 12.110363] ffff8881029bc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.110790] ffff8881029bc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.111105] ==================================================================