Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.748516] ================================================================== [ 15.748624] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.748779] Free of addr fff00000c6638001 by task kunit_try_catch/150 [ 15.748826] [ 15.748877] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 15.748973] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.748998] Hardware name: linux,dummy-virt (DT) [ 15.749158] Call trace: [ 15.749207] show_stack+0x20/0x38 (C) [ 15.749262] dump_stack_lvl+0x8c/0xd0 [ 15.749311] print_report+0x118/0x608 [ 15.749462] kasan_report_invalid_free+0xc0/0xe8 [ 15.749523] __kasan_kfree_large+0x5c/0xa8 [ 15.749683] free_large_kmalloc+0x64/0x190 [ 15.749742] kfree+0x270/0x3c8 [ 15.749872] kmalloc_large_invalid_free+0x108/0x270 [ 15.749971] kunit_try_run_case+0x170/0x3f0 [ 15.750070] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.750189] kthread+0x328/0x630 [ 15.750248] ret_from_fork+0x10/0x20 [ 15.750316] [ 15.750338] The buggy address belongs to the physical page: [ 15.750371] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106638 [ 15.750450] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.750495] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.750550] page_type: f8(unknown) [ 15.750603] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.750818] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.750886] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.750955] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.751042] head: 0bfffe0000000002 ffffc1ffc3198e01 00000000ffffffff 00000000ffffffff [ 15.751166] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.751212] page dumped because: kasan: bad access detected [ 15.751242] [ 15.751268] Memory state around the buggy address: [ 15.751301] fff00000c6637f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.751345] fff00000c6637f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.751385] >fff00000c6638000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.751571] ^ [ 15.751630] fff00000c6638080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.751698] fff00000c6638100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.751810] ==================================================================
[ 12.300643] ================================================================== [ 12.301151] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 12.301455] Free of addr ffff888102a38001 by task kunit_try_catch/167 [ 12.301855] [ 12.301991] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.302034] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.302057] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.302076] Call Trace: [ 12.302087] <TASK> [ 12.302101] dump_stack_lvl+0x73/0xb0 [ 12.302152] print_report+0xd1/0x650 [ 12.302173] ? __virt_addr_valid+0x1db/0x2d0 [ 12.302197] ? kasan_addr_to_slab+0x11/0xa0 [ 12.302227] ? kfree+0x274/0x3f0 [ 12.302248] kasan_report_invalid_free+0x10a/0x130 [ 12.302272] ? kfree+0x274/0x3f0 [ 12.302295] ? kfree+0x274/0x3f0 [ 12.302314] __kasan_kfree_large+0x86/0xd0 [ 12.302335] free_large_kmalloc+0x4b/0x110 [ 12.302426] kfree+0x274/0x3f0 [ 12.302451] kmalloc_large_invalid_free+0x120/0x2b0 [ 12.302474] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 12.302498] ? __schedule+0x10cc/0x2b60 [ 12.302531] ? __pfx_read_tsc+0x10/0x10 [ 12.302551] ? ktime_get_ts64+0x86/0x230 [ 12.302575] kunit_try_run_case+0x1a5/0x480 [ 12.302610] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.302632] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.302655] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.302679] ? __kthread_parkme+0x82/0x180 [ 12.302699] ? preempt_count_sub+0x50/0x80 [ 12.302722] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.302746] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.302770] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.302795] kthread+0x337/0x6f0 [ 12.302813] ? trace_preempt_on+0x20/0xc0 [ 12.302836] ? __pfx_kthread+0x10/0x10 [ 12.302856] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.302877] ? calculate_sigpending+0x7b/0xa0 [ 12.302900] ? __pfx_kthread+0x10/0x10 [ 12.302921] ret_from_fork+0x116/0x1d0 [ 12.302938] ? __pfx_kthread+0x10/0x10 [ 12.302958] ret_from_fork_asm+0x1a/0x30 [ 12.302988] </TASK> [ 12.302998] [ 12.310987] The buggy address belongs to the physical page: [ 12.311251] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a38 [ 12.311649] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.311995] flags: 0x200000000000040(head|node=0|zone=2) [ 12.312173] page_type: f8(unknown) [ 12.312371] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.312796] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.313049] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.313900] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.314227] head: 0200000000000002 ffffea00040a8e01 00000000ffffffff 00000000ffffffff [ 12.314667] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.314979] page dumped because: kasan: bad access detected [ 12.315152] [ 12.315268] Memory state around the buggy address: [ 12.315632] ffff888102a37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.315899] ffff888102a37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.316301] >ffff888102a38000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.316744] ^ [ 12.316931] ffff888102a38080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.317214] ffff888102a38100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.317821] ==================================================================