Date
July 19, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.049226] ================================================================== [ 15.049309] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.049370] Free of addr fff00000c60f0001 by task kunit_try_catch/150 [ 15.049413] [ 15.049443] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.049523] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.049563] Hardware name: linux,dummy-virt (DT) [ 15.049599] Call trace: [ 15.049622] show_stack+0x20/0x38 (C) [ 15.050058] dump_stack_lvl+0x8c/0xd0 [ 15.050113] print_report+0x118/0x5d0 [ 15.050165] kasan_report_invalid_free+0xc0/0xe8 [ 15.050236] __kasan_kfree_large+0x5c/0xa8 [ 15.050281] free_large_kmalloc+0x64/0x190 [ 15.050431] kfree+0x270/0x3c8 [ 15.050595] kmalloc_large_invalid_free+0x108/0x270 [ 15.050649] kunit_try_run_case+0x170/0x3f0 [ 15.050720] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.050794] kthread+0x328/0x630 [ 15.051012] ret_from_fork+0x10/0x20 [ 15.051126] [ 15.051148] The buggy address belongs to the physical page: [ 15.051178] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060f0 [ 15.051230] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.051274] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.051324] page_type: f8(unknown) [ 15.051378] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.051498] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.051547] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.051594] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.051800] head: 0bfffe0000000002 ffffc1ffc3183c01 00000000ffffffff 00000000ffffffff [ 15.051852] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.051990] page dumped because: kasan: bad access detected [ 15.052021] [ 15.052038] Memory state around the buggy address: [ 15.052078] fff00000c60eff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.052201] fff00000c60eff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.052243] >fff00000c60f0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.052280] ^ [ 15.052307] fff00000c60f0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.052400] fff00000c60f0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.052464] ==================================================================
[ 11.550123] ================================================================== [ 11.551112] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.551322] Free of addr ffff888102944001 by task kunit_try_catch/167 [ 11.551538] [ 11.551624] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.551665] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.551676] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.551695] Call Trace: [ 11.551706] <TASK> [ 11.551720] dump_stack_lvl+0x73/0xb0 [ 11.551746] print_report+0xd1/0x610 [ 11.551768] ? __virt_addr_valid+0x1db/0x2d0 [ 11.551790] ? kasan_addr_to_slab+0x11/0xa0 [ 11.551809] ? kfree+0x274/0x3f0 [ 11.551829] kasan_report_invalid_free+0x10a/0x130 [ 11.551852] ? kfree+0x274/0x3f0 [ 11.551873] ? kfree+0x274/0x3f0 [ 11.551892] __kasan_kfree_large+0x86/0xd0 [ 11.551912] free_large_kmalloc+0x4b/0x110 [ 11.551934] kfree+0x274/0x3f0 [ 11.551957] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.551979] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.552001] ? __schedule+0x10cc/0x2b60 [ 11.552059] ? __pfx_read_tsc+0x10/0x10 [ 11.552080] ? ktime_get_ts64+0x86/0x230 [ 11.552104] kunit_try_run_case+0x1a5/0x480 [ 11.552128] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.552149] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.552171] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.552193] ? __kthread_parkme+0x82/0x180 [ 11.552212] ? preempt_count_sub+0x50/0x80 [ 11.552233] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.552256] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.552277] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.552299] kthread+0x337/0x6f0 [ 11.552317] ? trace_preempt_on+0x20/0xc0 [ 11.552362] ? __pfx_kthread+0x10/0x10 [ 11.552417] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.552439] ? calculate_sigpending+0x7b/0xa0 [ 11.552461] ? __pfx_kthread+0x10/0x10 [ 11.552481] ret_from_fork+0x116/0x1d0 [ 11.552499] ? __pfx_kthread+0x10/0x10 [ 11.552518] ret_from_fork_asm+0x1a/0x30 [ 11.552547] </TASK> [ 11.552557] [ 11.565180] The buggy address belongs to the physical page: [ 11.565362] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102944 [ 11.565618] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.565933] flags: 0x200000000000040(head|node=0|zone=2) [ 11.566193] page_type: f8(unknown) [ 11.566348] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.566682] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.566965] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.567282] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.567969] head: 0200000000000002 ffffea00040a5101 00000000ffffffff 00000000ffffffff [ 11.568843] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.569281] page dumped because: kasan: bad access detected [ 11.569833] [ 11.570024] Memory state around the buggy address: [ 11.570239] ffff888102943f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.570783] ffff888102943f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.571091] >ffff888102944000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.571702] ^ [ 11.571889] ffff888102944080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.572187] ffff888102944100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.572907] ==================================================================