Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.400178] ================================================================== [ 31.400710] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 31.400920] Free of addr fff00000c6070001 by task kunit_try_catch/161 [ 31.401280] [ 31.401371] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.401569] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.401662] Hardware name: linux,dummy-virt (DT) [ 31.401759] Call trace: [ 31.401835] show_stack+0x20/0x38 (C) [ 31.401965] dump_stack_lvl+0x8c/0xd0 [ 31.402085] print_report+0x118/0x608 [ 31.402208] kasan_report_invalid_free+0xc0/0xe8 [ 31.404644] __kasan_kfree_large+0x5c/0xa8 [ 31.405526] free_large_kmalloc+0x68/0x150 [ 31.405666] kfree+0x270/0x3c8 [ 31.405772] kmalloc_large_invalid_free+0x108/0x270 [ 31.405887] kunit_try_run_case+0x170/0x3f0 [ 31.406020] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.406140] kthread+0x328/0x630 [ 31.406239] ret_from_fork+0x10/0x20 [ 31.406434] [ 31.406493] The buggy address belongs to the physical page: [ 31.406599] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106070 [ 31.406753] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.407067] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.407482] page_type: f8(unknown) [ 31.407711] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.408012] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.408279] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.408504] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.408712] head: 0bfffe0000000002 ffffc1ffc3181c01 00000000ffffffff 00000000ffffffff [ 31.408846] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 31.408935] page dumped because: kasan: bad access detected [ 31.408993] [ 31.409304] Memory state around the buggy address: [ 31.409396] fff00000c606ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.409503] fff00000c606ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.409651] >fff00000c6070000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.409746] ^ [ 31.409815] fff00000c6070080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.409924] fff00000c6070100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.410104] ==================================================================
[ 24.899006] ================================================================== [ 24.899616] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 24.900083] Free of addr ffff8881038e0001 by task kunit_try_catch/179 [ 24.900877] [ 24.901037] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 24.901105] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.901120] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.901148] Call Trace: [ 24.901169] <TASK> [ 24.901199] dump_stack_lvl+0x73/0xb0 [ 24.901241] print_report+0xd1/0x650 [ 24.901267] ? __virt_addr_valid+0x1db/0x2d0 [ 24.901293] ? kasan_addr_to_slab+0x11/0xa0 [ 24.901314] ? kfree+0x274/0x3f0 [ 24.901337] kasan_report_invalid_free+0x10a/0x130 [ 24.901361] ? kfree+0x274/0x3f0 [ 24.901385] ? kfree+0x274/0x3f0 [ 24.901405] __kasan_kfree_large+0x86/0xd0 [ 24.901428] free_large_kmalloc+0x52/0x110 [ 24.901476] kfree+0x274/0x3f0 [ 24.901503] kmalloc_large_invalid_free+0x120/0x2b0 [ 24.901527] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 24.901564] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 24.901608] kunit_try_run_case+0x1a5/0x480 [ 24.901648] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.901687] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.901723] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.901761] ? __kthread_parkme+0x82/0x180 [ 24.901800] ? preempt_count_sub+0x50/0x80 [ 24.901846] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.901888] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.901973] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.902015] kthread+0x337/0x6f0 [ 24.902067] ? trace_preempt_on+0x20/0xc0 [ 24.902115] ? __pfx_kthread+0x10/0x10 [ 24.902179] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.902223] ? calculate_sigpending+0x7b/0xa0 [ 24.902270] ? __pfx_kthread+0x10/0x10 [ 24.902333] ret_from_fork+0x116/0x1d0 [ 24.902377] ? __pfx_kthread+0x10/0x10 [ 24.902476] ret_from_fork_asm+0x1a/0x30 [ 24.902796] </TASK> [ 24.902831] [ 24.914317] The buggy address belongs to the physical page: [ 24.914829] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e0 [ 24.916083] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.917155] flags: 0x200000000000040(head|node=0|zone=2) [ 24.917699] page_type: f8(unknown) [ 24.917889] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.918353] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.918809] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.919212] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.919929] head: 0200000000000002 ffffea00040e3801 00000000ffffffff 00000000ffffffff [ 24.920502] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.921302] page dumped because: kasan: bad access detected [ 24.921882] [ 24.922072] Memory state around the buggy address: [ 24.922388] ffff8881038dff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.923075] ffff8881038dff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.923882] >ffff8881038e0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.924134] ^ [ 24.924733] ffff8881038e0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.925350] ffff8881038e0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.925911] ==================================================================