Date
July 9, 2025, 1:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.092938] ================================================================== [ 29.093022] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 29.093240] Free of addr fff00000c9afc001 by task kunit_try_catch/182 [ 29.093592] [ 29.093772] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250709 #1 PREEMPT [ 29.094050] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.094332] Hardware name: linux,dummy-virt (DT) [ 29.094370] Call trace: [ 29.094546] show_stack+0x20/0x38 (C) [ 29.094776] dump_stack_lvl+0x8c/0xd0 [ 29.094831] print_report+0x118/0x5d0 [ 29.094881] kasan_report_invalid_free+0xc0/0xe8 [ 29.095032] __kasan_kfree_large+0x5c/0xa8 [ 29.095158] free_large_kmalloc+0x68/0x150 [ 29.095204] kfree+0x270/0x3c8 [ 29.095246] kmalloc_large_invalid_free+0x108/0x270 [ 29.095294] kunit_try_run_case+0x170/0x3f0 [ 29.095343] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.095394] kthread+0x328/0x630 [ 29.095435] ret_from_fork+0x10/0x20 [ 29.095482] [ 29.095508] The buggy address belongs to the physical page: [ 29.095668] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109afc [ 29.095720] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.095787] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.095836] page_type: f8(unknown) [ 29.096173] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.096376] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.096425] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 29.096472] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 29.096519] head: 0bfffe0000000002 ffffc1ffc326bf01 00000000ffffffff 00000000ffffffff [ 29.096751] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 29.096793] page dumped because: kasan: bad access detected [ 29.097259] [ 29.097326] Memory state around the buggy address: [ 29.097411] fff00000c9afbf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.097522] fff00000c9afbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.097608] >fff00000c9afc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.097645] ^ [ 29.097672] fff00000c9afc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.098074] fff00000c9afc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.098220] ==================================================================
[ 23.688213] ================================================================== [ 23.688680] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 23.689064] Free of addr ffff88810616c001 by task kunit_try_catch/200 [ 23.689322] [ 23.689433] CPU: 0 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) [ 23.689497] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.689509] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.689543] Call Trace: [ 23.689556] <TASK> [ 23.689576] dump_stack_lvl+0x73/0xb0 [ 23.689609] print_report+0xd1/0x610 [ 23.689639] ? __virt_addr_valid+0x1db/0x2d0 [ 23.689665] ? kasan_addr_to_slab+0x11/0xa0 [ 23.689684] ? kfree+0x274/0x3f0 [ 23.689722] kasan_report_invalid_free+0x10a/0x130 [ 23.689745] ? kfree+0x274/0x3f0 [ 23.689767] ? kfree+0x274/0x3f0 [ 23.689787] __kasan_kfree_large+0x86/0xd0 [ 23.689817] free_large_kmalloc+0x52/0x110 [ 23.689849] kfree+0x274/0x3f0 [ 23.689870] ? kmalloc_large_invalid_free+0x8f/0x2b0 [ 23.689920] kmalloc_large_invalid_free+0x120/0x2b0 [ 23.689941] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 23.689963] ? __schedule+0x10cc/0x2b60 [ 23.689987] ? __pfx_read_tsc+0x10/0x10 [ 23.690009] ? ktime_get_ts64+0x86/0x230 [ 23.690035] kunit_try_run_case+0x1a5/0x480 [ 23.690058] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.690078] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.690100] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.690123] ? __kthread_parkme+0x82/0x180 [ 23.690198] ? preempt_count_sub+0x50/0x80 [ 23.690237] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.690258] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.690282] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.690306] kthread+0x337/0x6f0 [ 23.690326] ? trace_preempt_on+0x20/0xc0 [ 23.690350] ? __pfx_kthread+0x10/0x10 [ 23.690370] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.690392] ? calculate_sigpending+0x7b/0xa0 [ 23.690416] ? __pfx_kthread+0x10/0x10 [ 23.690437] ret_from_fork+0x116/0x1d0 [ 23.690455] ? __pfx_kthread+0x10/0x10 [ 23.690476] ret_from_fork_asm+0x1a/0x30 [ 23.690508] </TASK> [ 23.690519] [ 23.699302] The buggy address belongs to the physical page: [ 23.699588] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10616c [ 23.700086] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.700420] flags: 0x200000000000040(head|node=0|zone=2) [ 23.700729] page_type: f8(unknown) [ 23.700911] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.701248] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.701502] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 23.701735] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 23.702764] head: 0200000000000002 ffffea0004185b01 00000000ffffffff 00000000ffffffff [ 23.704041] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 23.704377] page dumped because: kasan: bad access detected [ 23.704606] [ 23.704702] Memory state around the buggy address: [ 23.705124] ffff88810616bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.705585] ffff88810616bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.706061] >ffff88810616c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.706501] ^ [ 23.706660] ffff88810616c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.707159] ffff88810616c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.707762] ==================================================================