Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.947034] ================================================================== [ 17.947123] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 17.947186] Free of addr fff00000c786c001 by task kunit_try_catch/150 [ 17.947230] [ 17.947264] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.947345] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.948460] Hardware name: linux,dummy-virt (DT) [ 17.948553] Call trace: [ 17.948586] show_stack+0x20/0x38 (C) [ 17.948637] dump_stack_lvl+0x8c/0xd0 [ 17.949074] print_report+0x118/0x608 [ 17.949135] kasan_report_invalid_free+0xc0/0xe8 [ 17.949309] __kasan_kfree_large+0x5c/0xa8 [ 17.949509] free_large_kmalloc+0x64/0x190 [ 17.949915] kfree+0x270/0x3c8 [ 17.950248] kmalloc_large_invalid_free+0x108/0x270 [ 17.950822] kunit_try_run_case+0x170/0x3f0 [ 17.951164] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.951615] kthread+0x328/0x630 [ 17.951923] ret_from_fork+0x10/0x20 [ 17.952106] [ 17.952163] The buggy address belongs to the physical page: [ 17.952195] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786c [ 17.952646] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.952841] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.952961] page_type: f8(unknown) [ 17.953105] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.953422] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.953605] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.953835] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.954079] head: 0bfffe0000000002 ffffc1ffc31e1b01 00000000ffffffff 00000000ffffffff [ 17.954489] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.954864] page dumped because: kasan: bad access detected [ 17.955091] [ 17.955306] Memory state around the buggy address: [ 17.955412] fff00000c786bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.955665] fff00000c786bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.955953] >fff00000c786c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.955994] ^ [ 17.956022] fff00000c786c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.956062] fff00000c786c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.956183] ==================================================================
[ 10.954910] ================================================================== [ 10.955310] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.956241] Free of addr ffff8881029cc001 by task kunit_try_catch/169 [ 10.957030] [ 10.957189] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.957359] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.957387] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.957408] Call Trace: [ 10.957421] <TASK> [ 10.957438] dump_stack_lvl+0x73/0xb0 [ 10.957471] print_report+0xd1/0x650 [ 10.957495] ? __virt_addr_valid+0x1db/0x2d0 [ 10.957519] ? kasan_addr_to_slab+0x11/0xa0 [ 10.957538] ? kfree+0x274/0x3f0 [ 10.957559] kasan_report_invalid_free+0x10a/0x130 [ 10.957582] ? kfree+0x274/0x3f0 [ 10.957604] ? kfree+0x274/0x3f0 [ 10.957623] __kasan_kfree_large+0x86/0xd0 [ 10.957644] free_large_kmalloc+0x4b/0x110 [ 10.957665] kfree+0x274/0x3f0 [ 10.957689] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.957713] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.957736] ? __schedule+0x10cc/0x2b60 [ 10.957757] ? __pfx_read_tsc+0x10/0x10 [ 10.957779] ? ktime_get_ts64+0x86/0x230 [ 10.957804] kunit_try_run_case+0x1a5/0x480 [ 10.957829] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.957849] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.957872] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.957893] ? __kthread_parkme+0x82/0x180 [ 10.957913] ? preempt_count_sub+0x50/0x80 [ 10.957936] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.957958] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.957979] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.958000] kthread+0x337/0x6f0 [ 10.958018] ? trace_preempt_on+0x20/0xc0 [ 10.958041] ? __pfx_kthread+0x10/0x10 [ 10.958061] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.958080] ? calculate_sigpending+0x7b/0xa0 [ 10.958103] ? __pfx_kthread+0x10/0x10 [ 10.958123] ret_from_fork+0x116/0x1d0 [ 10.958140] ? __pfx_kthread+0x10/0x10 [ 10.958159] ret_from_fork_asm+0x1a/0x30 [ 10.958188] </TASK> [ 10.958198] [ 10.970346] The buggy address belongs to the physical page: [ 10.970630] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029cc [ 10.970999] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.971507] flags: 0x200000000000040(head|node=0|zone=2) [ 10.972084] page_type: f8(unknown) [ 10.972303] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.972603] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.973070] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.973394] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.973696] head: 0200000000000002 ffffea00040a7301 00000000ffffffff 00000000ffffffff [ 10.974199] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.974442] page dumped because: kasan: bad access detected [ 10.974611] [ 10.974706] Memory state around the buggy address: [ 10.974936] ffff8881029cbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.975498] ffff8881029cbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.976193] >ffff8881029cc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.976530] ^ [ 10.976715] ffff8881029cc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.977255] ffff8881029cc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.977663] ==================================================================