Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.943970] ================================================================== [ 16.944377] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 16.944796] Free of addr fff00000c7888001 by task kunit_try_catch/152 [ 16.944870] [ 16.944904] CPU: 0 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 16.944985] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.945011] Hardware name: linux,dummy-virt (DT) [ 16.945293] Call trace: [ 16.945334] show_stack+0x20/0x38 (C) [ 16.945386] dump_stack_lvl+0x8c/0xd0 [ 16.945441] print_report+0x118/0x5d0 [ 16.945485] kasan_report_invalid_free+0xc0/0xe8 [ 16.945530] __kasan_kfree_large+0x5c/0xa8 [ 16.945573] free_large_kmalloc+0x64/0x190 [ 16.945620] kfree+0x270/0x3c8 [ 16.945658] kmalloc_large_invalid_free+0x108/0x270 [ 16.945706] kunit_try_run_case+0x170/0x3f0 [ 16.945752] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.945799] kthread+0x328/0x630 [ 16.945842] ret_from_fork+0x10/0x20 [ 16.945888] [ 16.946016] The buggy address belongs to the physical page: [ 16.946054] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107888 [ 16.946115] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.946167] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.946219] page_type: f8(unknown) [ 16.946269] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.946329] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.946649] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.947196] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.947270] head: 0bfffe0000000002 ffffc1ffc31e2201 00000000ffffffff 00000000ffffffff [ 16.947590] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 16.947668] page dumped because: kasan: bad access detected [ 16.947864] [ 16.948030] Memory state around the buggy address: [ 16.948066] fff00000c7887f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.948365] fff00000c7887f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.948673] >fff00000c7888000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.948830] ^ [ 16.949084] fff00000c7888080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.949148] fff00000c7888100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.949380] ==================================================================
[ 10.596304] ================================================================== [ 10.597378] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 10.597874] Free of addr ffff888102d68001 by task kunit_try_catch/170 [ 10.598612] [ 10.598744] CPU: 0 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 10.598813] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.598826] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.598847] Call Trace: [ 10.598859] <TASK> [ 10.598882] dump_stack_lvl+0x73/0xb0 [ 10.598911] print_report+0xd1/0x610 [ 10.598934] ? __virt_addr_valid+0x1db/0x2d0 [ 10.598969] ? kasan_addr_to_slab+0x11/0xa0 [ 10.598988] ? kfree+0x274/0x3f0 [ 10.599007] kasan_report_invalid_free+0x10a/0x130 [ 10.599030] ? kfree+0x274/0x3f0 [ 10.599050] ? kfree+0x274/0x3f0 [ 10.599067] __kasan_kfree_large+0x86/0xd0 [ 10.599088] free_large_kmalloc+0x4b/0x110 [ 10.599107] kfree+0x274/0x3f0 [ 10.599128] kmalloc_large_invalid_free+0x120/0x2b0 [ 10.599151] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 10.599175] ? __schedule+0x10c6/0x2b60 [ 10.599199] ? __pfx_read_tsc+0x10/0x10 [ 10.599219] ? ktime_get_ts64+0x86/0x230 [ 10.599257] kunit_try_run_case+0x1a5/0x480 [ 10.599278] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.599296] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.599316] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.599340] ? __kthread_parkme+0x82/0x180 [ 10.599379] ? preempt_count_sub+0x50/0x80 [ 10.599407] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.599427] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.599449] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.599472] kthread+0x337/0x6f0 [ 10.599488] ? trace_preempt_on+0x20/0xc0 [ 10.599512] ? __pfx_kthread+0x10/0x10 [ 10.599529] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.599550] ? calculate_sigpending+0x7b/0xa0 [ 10.599571] ? __pfx_kthread+0x10/0x10 [ 10.599589] ret_from_fork+0x41/0x80 [ 10.599609] ? __pfx_kthread+0x10/0x10 [ 10.599626] ret_from_fork_asm+0x1a/0x30 [ 10.599685] </TASK> [ 10.599696] [ 10.612470] The buggy address belongs to the physical page: [ 10.613138] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d68 [ 10.614140] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.615178] flags: 0x200000000000040(head|node=0|zone=2) [ 10.615940] page_type: f8(unknown) [ 10.616442] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.617439] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.618579] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.619431] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.620557] head: 0200000000000002 ffffea00040b5a01 00000000ffffffff 00000000ffffffff [ 10.621089] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.621331] page dumped because: kasan: bad access detected [ 10.621797] [ 10.621888] Memory state around the buggy address: [ 10.622094] ffff888102d67f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.622400] ffff888102d67f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.622976] >ffff888102d68000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.623495] ^ [ 10.623917] ffff888102d68080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.624485] ffff888102d68100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.625035] ==================================================================