Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.613581] ================================================================== [ 16.613865] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 16.614291] Free of addr fff00000c78a0001 by task kunit_try_catch/150 [ 16.614945] [ 16.615063] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.615152] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.615178] Hardware name: linux,dummy-virt (DT) [ 16.615209] Call trace: [ 16.615232] show_stack+0x20/0x38 (C) [ 16.615285] dump_stack_lvl+0x8c/0xd0 [ 16.615332] print_report+0x118/0x608 [ 16.615390] kasan_report_invalid_free+0xc0/0xe8 [ 16.615443] __kasan_kfree_large+0x5c/0xa8 [ 16.615489] free_large_kmalloc+0x64/0x190 [ 16.615534] kfree+0x270/0x3c8 [ 16.615575] kmalloc_large_invalid_free+0x108/0x270 [ 16.615623] kunit_try_run_case+0x170/0x3f0 [ 16.615671] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.615723] kthread+0x328/0x630 [ 16.615765] ret_from_fork+0x10/0x20 [ 16.615811] [ 16.615832] The buggy address belongs to the physical page: [ 16.615864] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078a0 [ 16.616488] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.617211] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.617514] page_type: f8(unknown) [ 16.617564] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.618001] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.618277] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.618366] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.618416] head: 0bfffe0000000002 ffffc1ffc31e2801 00000000ffffffff 00000000ffffffff [ 16.618463] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 16.619119] page dumped because: kasan: bad access detected [ 16.619233] [ 16.619528] Memory state around the buggy address: [ 16.619597] fff00000c789ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.619889] fff00000c789ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 16.620119] >fff00000c78a0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.620237] ^ [ 16.620268] fff00000c78a0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.620474] fff00000c78a0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.620956] ==================================================================
[ 12.087295] ================================================================== [ 12.087785] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 12.088209] Free of addr ffff888102a50001 by task kunit_try_catch/167 [ 12.088453] [ 12.088564] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.088605] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.088616] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.088634] Call Trace: [ 12.088645] <TASK> [ 12.088658] dump_stack_lvl+0x73/0xb0 [ 12.088685] print_report+0xd1/0x650 [ 12.088706] ? __virt_addr_valid+0x1db/0x2d0 [ 12.088729] ? kasan_addr_to_slab+0x11/0xa0 [ 12.088749] ? kfree+0x274/0x3f0 [ 12.088769] kasan_report_invalid_free+0x10a/0x130 [ 12.088859] ? kfree+0x274/0x3f0 [ 12.088886] ? kfree+0x274/0x3f0 [ 12.088905] __kasan_kfree_large+0x86/0xd0 [ 12.088945] free_large_kmalloc+0x4b/0x110 [ 12.088969] kfree+0x274/0x3f0 [ 12.088992] kmalloc_large_invalid_free+0x120/0x2b0 [ 12.089015] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 12.089047] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.089073] ? trace_hardirqs_on+0x37/0xe0 [ 12.089096] ? __pfx_read_tsc+0x10/0x10 [ 12.089115] ? ktime_get_ts64+0x86/0x230 [ 12.089138] kunit_try_run_case+0x1a5/0x480 [ 12.089161] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.089186] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.089210] ? __kthread_parkme+0x82/0x180 [ 12.089230] ? preempt_count_sub+0x50/0x80 [ 12.089253] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.089277] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.089300] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.089325] kthread+0x337/0x6f0 [ 12.089343] ? trace_preempt_on+0x20/0xc0 [ 12.089365] ? __pfx_kthread+0x10/0x10 [ 12.089385] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.089407] ? calculate_sigpending+0x7b/0xa0 [ 12.089430] ? __pfx_kthread+0x10/0x10 [ 12.089450] ret_from_fork+0x116/0x1d0 [ 12.089468] ? __pfx_kthread+0x10/0x10 [ 12.089487] ret_from_fork_asm+0x1a/0x30 [ 12.089517] </TASK> [ 12.089527] [ 12.097060] The buggy address belongs to the physical page: [ 12.097310] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a50 [ 12.097640] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.098225] flags: 0x200000000000040(head|node=0|zone=2) [ 12.098442] page_type: f8(unknown) [ 12.098611] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.098986] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.099334] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.099607] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.099923] head: 0200000000000002 ffffea00040a9401 00000000ffffffff 00000000ffffffff [ 12.100294] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.100608] page dumped because: kasan: bad access detected [ 12.100894] [ 12.100990] Memory state around the buggy address: [ 12.101156] ffff888102a4ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.101472] ffff888102a4ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.101848] >ffff888102a50000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.102154] ^ [ 12.102318] ffff888102a50080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.102598] ffff888102a50100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.103119] ==================================================================