Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.975081] ================================================================== [ 18.975632] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 18.975889] Free of addr fff00000c66a4001 by task kunit_try_catch/151 [ 18.976083] [ 18.976238] CPU: 0 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.976496] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.976785] Hardware name: linux,dummy-virt (DT) [ 18.976885] Call trace: [ 18.977040] show_stack+0x20/0x38 (C) [ 18.977254] dump_stack_lvl+0x8c/0xd0 [ 18.977392] print_report+0x118/0x608 [ 18.977492] kasan_report_invalid_free+0xc0/0xe8 [ 18.977587] __kasan_kfree_large+0x5c/0xa8 [ 18.977690] free_large_kmalloc+0x64/0x190 [ 18.978047] kfree+0x270/0x3c8 [ 18.978159] kmalloc_large_invalid_free+0x108/0x270 [ 18.978352] kunit_try_run_case+0x170/0x3f0 [ 18.978551] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.979132] kthread+0x328/0x630 [ 18.979390] ret_from_fork+0x10/0x20 [ 18.979721] [ 18.979881] The buggy address belongs to the physical page: [ 18.980023] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066a4 [ 18.980162] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.980557] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.980796] page_type: f8(unknown) [ 18.981004] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.981248] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.981504] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.981891] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.982025] head: 0bfffe0000000002 ffffc1ffc319a901 00000000ffffffff 00000000ffffffff [ 18.982149] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.982249] page dumped because: kasan: bad access detected [ 18.982375] [ 18.982449] Memory state around the buggy address: [ 18.982660] fff00000c66a3f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.982905] fff00000c66a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.982994] >fff00000c66a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.983403] ^ [ 18.983477] fff00000c66a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.983655] fff00000c66a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.984007] ==================================================================
[ 12.191350] ================================================================== [ 12.191895] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 12.192183] Free of addr ffff88810294c001 by task kunit_try_catch/168 [ 12.192696] [ 12.192915] CPU: 1 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.192957] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.192969] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.192987] Call Trace: [ 12.192999] <TASK> [ 12.193012] dump_stack_lvl+0x73/0xb0 [ 12.193041] print_report+0xd1/0x650 [ 12.193064] ? __virt_addr_valid+0x1db/0x2d0 [ 12.193088] ? kasan_addr_to_slab+0x11/0xa0 [ 12.193107] ? kfree+0x274/0x3f0 [ 12.193128] kasan_report_invalid_free+0x10a/0x130 [ 12.193153] ? kfree+0x274/0x3f0 [ 12.193176] ? kfree+0x274/0x3f0 [ 12.193196] __kasan_kfree_large+0x86/0xd0 [ 12.193217] free_large_kmalloc+0x4b/0x110 [ 12.193240] kfree+0x274/0x3f0 [ 12.193264] kmalloc_large_invalid_free+0x120/0x2b0 [ 12.193287] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 12.193312] ? __schedule+0x10cc/0x2b60 [ 12.193333] ? __pfx_read_tsc+0x10/0x10 [ 12.193354] ? ktime_get_ts64+0x86/0x230 [ 12.193378] kunit_try_run_case+0x1a5/0x480 [ 12.193402] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.193425] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.193449] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.193472] ? __kthread_parkme+0x82/0x180 [ 12.193493] ? preempt_count_sub+0x50/0x80 [ 12.193516] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.193540] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.193564] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.193589] kthread+0x337/0x6f0 [ 12.193608] ? trace_preempt_on+0x20/0xc0 [ 12.193630] ? __pfx_kthread+0x10/0x10 [ 12.193650] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.193693] ? calculate_sigpending+0x7b/0xa0 [ 12.193717] ? __pfx_kthread+0x10/0x10 [ 12.193739] ret_from_fork+0x116/0x1d0 [ 12.193768] ? __pfx_kthread+0x10/0x10 [ 12.193788] ret_from_fork_asm+0x1a/0x30 [ 12.193819] </TASK> [ 12.193828] [ 12.200975] The buggy address belongs to the physical page: [ 12.201247] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c [ 12.201551] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.202178] flags: 0x200000000000040(head|node=0|zone=2) [ 12.202426] page_type: f8(unknown) [ 12.202605] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.202989] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.203248] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.203519] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.203868] head: 0200000000000002 ffffea00040a5301 00000000ffffffff 00000000ffffffff [ 12.204277] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.204520] page dumped because: kasan: bad access detected [ 12.204977] [ 12.205076] Memory state around the buggy address: [ 12.205306] ffff88810294bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.205591] ffff88810294bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.206030] >ffff88810294c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.206298] ^ [ 12.206433] ffff88810294c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.206952] ffff88810294c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.207266] ==================================================================