Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.335662] ================================================================== [ 29.335750] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 29.335812] Free of addr fff00000c9a50001 by task kunit_try_catch/181 [ 29.335960] [ 29.336073] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.336218] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.336247] Hardware name: linux,dummy-virt (DT) [ 29.336302] Call trace: [ 29.336361] show_stack+0x20/0x38 (C) [ 29.336469] dump_stack_lvl+0x8c/0xd0 [ 29.336515] print_report+0x118/0x5d0 [ 29.336587] kasan_report_invalid_free+0xc0/0xe8 [ 29.336922] __kasan_kfree_large+0x5c/0xa8 [ 29.337067] free_large_kmalloc+0x68/0x150 [ 29.337193] kfree+0x270/0x3c8 [ 29.337270] kmalloc_large_invalid_free+0x108/0x270 [ 29.337322] kunit_try_run_case+0x170/0x3f0 [ 29.337371] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.337428] kthread+0x328/0x630 [ 29.337471] ret_from_fork+0x10/0x20 [ 29.337529] [ 29.337560] The buggy address belongs to the physical page: [ 29.337595] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a50 [ 29.337703] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.337755] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.337810] page_type: f8(unknown) [ 29.337848] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.337904] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.338121] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.338289] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.338457] head: 0bfffe0000000002 ffffc1ffc3269401 00000000ffffffff 00000000ffffffff [ 29.338551] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 29.338637] page dumped because: kasan: bad access detected [ 29.338699] [ 29.338716] Memory state around the buggy address: [ 29.338749] fff00000c9a4ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.338814] fff00000c9a4ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.338863] >fff00000c9a50000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.338906] ^ [ 29.338965] fff00000c9a50080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.339013] fff00000c9a50100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.339074] ==================================================================
[ 24.596441] ================================================================== [ 24.597008] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 24.597332] Free of addr ffff8881060d8001 by task kunit_try_catch/198 [ 24.597613] [ 24.597730] CPU: 0 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 24.597779] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.597811] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.597832] Call Trace: [ 24.597860] <TASK> [ 24.597891] dump_stack_lvl+0x73/0xb0 [ 24.597920] print_report+0xd1/0x610 [ 24.597944] ? __virt_addr_valid+0x1db/0x2d0 [ 24.597970] ? kasan_addr_to_slab+0x11/0xa0 [ 24.597990] ? kfree+0x274/0x3f0 [ 24.598011] kasan_report_invalid_free+0x10a/0x130 [ 24.598051] ? kfree+0x274/0x3f0 [ 24.598074] ? kfree+0x274/0x3f0 [ 24.598094] __kasan_kfree_large+0x86/0xd0 [ 24.598115] free_large_kmalloc+0x52/0x110 [ 24.598138] kfree+0x274/0x3f0 [ 24.598162] kmalloc_large_invalid_free+0x120/0x2b0 [ 24.598185] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 24.598207] ? __schedule+0x10cc/0x2b60 [ 24.598230] ? __pfx_read_tsc+0x10/0x10 [ 24.598252] ? ktime_get_ts64+0x86/0x230 [ 24.598277] kunit_try_run_case+0x1a5/0x480 [ 24.598299] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.598319] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.598342] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.598383] ? __kthread_parkme+0x82/0x180 [ 24.598404] ? preempt_count_sub+0x50/0x80 [ 24.598427] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.598448] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.598473] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.598505] kthread+0x337/0x6f0 [ 24.598525] ? trace_preempt_on+0x20/0xc0 [ 24.598565] ? __pfx_kthread+0x10/0x10 [ 24.598585] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.598607] ? calculate_sigpending+0x7b/0xa0 [ 24.598630] ? __pfx_kthread+0x10/0x10 [ 24.598651] ret_from_fork+0x116/0x1d0 [ 24.598670] ? __pfx_kthread+0x10/0x10 [ 24.598690] ret_from_fork_asm+0x1a/0x30 [ 24.598731] </TASK> [ 24.598743] [ 24.608767] The buggy address belongs to the physical page: [ 24.608945] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060d8 [ 24.609177] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.609393] flags: 0x200000000000040(head|node=0|zone=2) [ 24.610127] page_type: f8(unknown) [ 24.610646] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.611445] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.612280] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.613152] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.614094] head: 0200000000000002 ffffea0004183601 00000000ffffffff 00000000ffffffff [ 24.614500] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.615346] page dumped because: kasan: bad access detected [ 24.615542] [ 24.615746] Memory state around the buggy address: [ 24.616315] ffff8881060d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.616762] ffff8881060d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.616970] >ffff8881060d8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.617173] ^ [ 24.617284] ffff8881060d8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.617537] ffff8881060d8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.618420] ==================================================================