Date
July 3, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.328301] ================================================================== [ 19.328479] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 19.328624] Free of addr fff00000c6564001 by task kunit_try_catch/150 [ 19.328728] [ 19.328807] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 19.328989] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.329087] Hardware name: linux,dummy-virt (DT) [ 19.329170] Call trace: [ 19.329230] show_stack+0x20/0x38 (C) [ 19.329829] dump_stack_lvl+0x8c/0xd0 [ 19.330194] print_report+0x118/0x608 [ 19.330298] kasan_report_invalid_free+0xc0/0xe8 [ 19.330393] __kasan_kfree_large+0x5c/0xa8 [ 19.330489] free_large_kmalloc+0x64/0x190 [ 19.330590] kfree+0x270/0x3c8 [ 19.330923] kmalloc_large_invalid_free+0x108/0x270 [ 19.331126] kunit_try_run_case+0x170/0x3f0 [ 19.331516] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.331677] kthread+0x328/0x630 [ 19.331938] ret_from_fork+0x10/0x20 [ 19.332123] [ 19.332198] The buggy address belongs to the physical page: [ 19.332392] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106564 [ 19.332538] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.332864] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.333140] page_type: f8(unknown) [ 19.333258] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.333366] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.333783] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.333894] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.334309] head: 0bfffe0000000002 ffffc1ffc3195901 00000000ffffffff 00000000ffffffff [ 19.334365] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.334404] page dumped because: kasan: bad access detected [ 19.334437] [ 19.334456] Memory state around the buggy address: [ 19.334490] fff00000c6563f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.334536] fff00000c6563f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.334577] >fff00000c6564000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.334613] ^ [ 19.334642] fff00000c6564080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.334681] fff00000c6564100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.334736] ==================================================================
[ 11.036713] ================================================================== [ 11.037444] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.037697] Free of addr ffff888103948001 by task kunit_try_catch/167 [ 11.037960] [ 11.038070] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.038112] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.038136] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.038155] Call Trace: [ 11.038166] <TASK> [ 11.038180] dump_stack_lvl+0x73/0xb0 [ 11.038206] print_report+0xd1/0x650 [ 11.038228] ? __virt_addr_valid+0x1db/0x2d0 [ 11.038250] ? kasan_addr_to_slab+0x11/0xa0 [ 11.038269] ? kfree+0x274/0x3f0 [ 11.038290] kasan_report_invalid_free+0x10a/0x130 [ 11.038323] ? kfree+0x274/0x3f0 [ 11.038346] ? kfree+0x274/0x3f0 [ 11.038366] __kasan_kfree_large+0x86/0xd0 [ 11.038386] free_large_kmalloc+0x4b/0x110 [ 11.038408] kfree+0x274/0x3f0 [ 11.038432] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.038454] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.038476] ? __schedule+0x10cc/0x2b60 [ 11.038496] ? __pfx_read_tsc+0x10/0x10 [ 11.038520] ? ktime_get_ts64+0x86/0x230 [ 11.038543] kunit_try_run_case+0x1a5/0x480 [ 11.038567] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.038588] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.038609] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.038631] ? __kthread_parkme+0x82/0x180 [ 11.038651] ? preempt_count_sub+0x50/0x80 [ 11.038673] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.038696] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.038717] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.038739] kthread+0x337/0x6f0 [ 11.038757] ? trace_preempt_on+0x20/0xc0 [ 11.038780] ? __pfx_kthread+0x10/0x10 [ 11.038799] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.038819] ? calculate_sigpending+0x7b/0xa0 [ 11.038841] ? __pfx_kthread+0x10/0x10 [ 11.038861] ret_from_fork+0x116/0x1d0 [ 11.038878] ? __pfx_kthread+0x10/0x10 [ 11.038897] ret_from_fork_asm+0x1a/0x30 [ 11.038927] </TASK> [ 11.038936] [ 11.046988] The buggy address belongs to the physical page: [ 11.047182] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103948 [ 11.047909] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.048226] flags: 0x200000000000040(head|node=0|zone=2) [ 11.048723] page_type: f8(unknown) [ 11.048858] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.049202] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.049706] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.050184] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.050533] head: 0200000000000002 ffffea00040e5201 00000000ffffffff 00000000ffffffff [ 11.050793] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.051142] page dumped because: kasan: bad access detected [ 11.051439] [ 11.051528] Memory state around the buggy address: [ 11.051687] ffff888103947f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.051928] ffff888103947f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 11.052262] >ffff888103948000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.052581] ^ [ 11.052902] ffff888103948080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.053194] ffff888103948100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.053556] ==================================================================