Date
July 18, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.143401] ================================================================== [ 15.143489] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.143582] Free of addr fff00000c7750001 by task kunit_try_catch/150 [ 15.143629] [ 15.143671] CPU: 1 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.143752] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.143778] Hardware name: linux,dummy-virt (DT) [ 15.143808] Call trace: [ 15.143830] show_stack+0x20/0x38 (C) [ 15.143879] dump_stack_lvl+0x8c/0xd0 [ 15.143924] print_report+0x118/0x5d0 [ 15.143977] kasan_report_invalid_free+0xc0/0xe8 [ 15.144035] __kasan_kfree_large+0x5c/0xa8 [ 15.144082] free_large_kmalloc+0x64/0x190 [ 15.144142] kfree+0x270/0x3c8 [ 15.144185] kmalloc_large_invalid_free+0x108/0x270 [ 15.144281] kunit_try_run_case+0x170/0x3f0 [ 15.144454] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.144567] kthread+0x328/0x630 [ 15.144740] ret_from_fork+0x10/0x20 [ 15.144795] [ 15.144839] The buggy address belongs to the physical page: [ 15.144877] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107750 [ 15.144936] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.144981] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.145035] page_type: f8(unknown) [ 15.145074] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.145122] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.145170] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.145404] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.145500] head: 0bfffe0000000002 ffffc1ffc31dd401 00000000ffffffff 00000000ffffffff [ 15.145671] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.145716] page dumped because: kasan: bad access detected [ 15.145790] [ 15.145809] Memory state around the buggy address: [ 15.145842] fff00000c774ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.145886] fff00000c774ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.145929] >fff00000c7750000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.145967] ^ [ 15.145995] fff00000c7750080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.146207] fff00000c7750100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.146273] ==================================================================
[ 11.635863] ================================================================== [ 11.637410] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.637964] Free of addr ffff888102a38001 by task kunit_try_catch/169 [ 11.638765] [ 11.639089] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.639401] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.639416] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.639436] Call Trace: [ 11.639447] <TASK> [ 11.639461] dump_stack_lvl+0x73/0xb0 [ 11.639491] print_report+0xd1/0x610 [ 11.639512] ? __virt_addr_valid+0x1db/0x2d0 [ 11.639535] ? kasan_addr_to_slab+0x11/0xa0 [ 11.639554] ? kfree+0x274/0x3f0 [ 11.639574] kasan_report_invalid_free+0x10a/0x130 [ 11.639598] ? kfree+0x274/0x3f0 [ 11.639620] ? kfree+0x274/0x3f0 [ 11.639639] __kasan_kfree_large+0x86/0xd0 [ 11.639660] free_large_kmalloc+0x4b/0x110 [ 11.639683] kfree+0x274/0x3f0 [ 11.639706] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.639729] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.639752] ? __schedule+0x10cc/0x2b60 [ 11.639773] ? __pfx_read_tsc+0x10/0x10 [ 11.639792] ? ktime_get_ts64+0x86/0x230 [ 11.639815] kunit_try_run_case+0x1a5/0x480 [ 11.639838] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.639859] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.639881] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.639904] ? __kthread_parkme+0x82/0x180 [ 11.639922] ? preempt_count_sub+0x50/0x80 [ 11.639945] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.639968] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.639991] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.640035] kthread+0x337/0x6f0 [ 11.640053] ? trace_preempt_on+0x20/0xc0 [ 11.640075] ? __pfx_kthread+0x10/0x10 [ 11.640094] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.640115] ? calculate_sigpending+0x7b/0xa0 [ 11.640137] ? __pfx_kthread+0x10/0x10 [ 11.640157] ret_from_fork+0x116/0x1d0 [ 11.640175] ? __pfx_kthread+0x10/0x10 [ 11.640194] ret_from_fork_asm+0x1a/0x30 [ 11.640223] </TASK> [ 11.640232] [ 11.655969] The buggy address belongs to the physical page: [ 11.656159] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a38 [ 11.656419] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.657178] flags: 0x200000000000040(head|node=0|zone=2) [ 11.657757] page_type: f8(unknown) [ 11.658157] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.658908] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.659970] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.660759] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.661188] head: 0200000000000002 ffffea00040a8e01 00000000ffffffff 00000000ffffffff [ 11.661964] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.662582] page dumped because: kasan: bad access detected [ 11.662758] [ 11.662827] Memory state around the buggy address: [ 11.662982] ffff888102a37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.663814] ffff888102a37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.664616] >ffff888102a38000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.665494] ^ [ 11.665919] ffff888102a38080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.666517] ffff888102a38100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.667333] ==================================================================