Date
July 20, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.209297] ================================================================== [ 15.209562] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.209682] Free of addr fff00000c7750001 by task kunit_try_catch/150 [ 15.209752] [ 15.209790] CPU: 0 UID: 0 PID: 150 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.209889] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.209916] Hardware name: linux,dummy-virt (DT) [ 15.209973] Call trace: [ 15.210002] show_stack+0x20/0x38 (C) [ 15.210065] dump_stack_lvl+0x8c/0xd0 [ 15.210110] print_report+0x118/0x5d0 [ 15.210155] kasan_report_invalid_free+0xc0/0xe8 [ 15.210202] __kasan_kfree_large+0x5c/0xa8 [ 15.210247] free_large_kmalloc+0x64/0x190 [ 15.210291] kfree+0x270/0x3c8 [ 15.210346] kmalloc_large_invalid_free+0x108/0x270 [ 15.210525] kunit_try_run_case+0x170/0x3f0 [ 15.210579] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.210629] kthread+0x328/0x630 [ 15.210706] ret_from_fork+0x10/0x20 [ 15.210753] [ 15.210779] The buggy address belongs to the physical page: [ 15.210810] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107750 [ 15.210860] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.210914] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.211017] page_type: f8(unknown) [ 15.211084] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.211131] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.211301] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.211441] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.211491] head: 0bfffe0000000002 ffffc1ffc31dd401 00000000ffffffff 00000000ffffffff [ 15.211560] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.211752] page dumped because: kasan: bad access detected [ 15.211837] [ 15.211855] Memory state around the buggy address: [ 15.211887] fff00000c774ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.211928] fff00000c774ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.211984] >fff00000c7750000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.212020] ^ [ 15.212047] fff00000c7750080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.212096] fff00000c7750100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.212162] ==================================================================
[ 11.806344] ================================================================== [ 11.807570] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.808189] Free of addr ffff88810299c001 by task kunit_try_catch/167 [ 11.808949] [ 11.809302] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.809346] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.809357] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.809375] Call Trace: [ 11.809387] <TASK> [ 11.809401] dump_stack_lvl+0x73/0xb0 [ 11.809430] print_report+0xd1/0x610 [ 11.809451] ? __virt_addr_valid+0x1db/0x2d0 [ 11.809473] ? kasan_addr_to_slab+0x11/0xa0 [ 11.809492] ? kfree+0x274/0x3f0 [ 11.809512] kasan_report_invalid_free+0x10a/0x130 [ 11.809535] ? kfree+0x274/0x3f0 [ 11.809556] ? kfree+0x274/0x3f0 [ 11.809575] __kasan_kfree_large+0x86/0xd0 [ 11.809595] free_large_kmalloc+0x4b/0x110 [ 11.809617] kfree+0x274/0x3f0 [ 11.809640] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.809661] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.809683] ? __schedule+0x10cc/0x2b60 [ 11.809704] ? __pfx_read_tsc+0x10/0x10 [ 11.809723] ? ktime_get_ts64+0x86/0x230 [ 11.809745] kunit_try_run_case+0x1a5/0x480 [ 11.809767] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.809788] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.809810] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.809831] ? __kthread_parkme+0x82/0x180 [ 11.809850] ? preempt_count_sub+0x50/0x80 [ 11.809872] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.809894] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.809928] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.809950] kthread+0x337/0x6f0 [ 11.809968] ? trace_preempt_on+0x20/0xc0 [ 11.809989] ? __pfx_kthread+0x10/0x10 [ 11.810008] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.810028] ? calculate_sigpending+0x7b/0xa0 [ 11.810050] ? __pfx_kthread+0x10/0x10 [ 11.810070] ret_from_fork+0x116/0x1d0 [ 11.810087] ? __pfx_kthread+0x10/0x10 [ 11.810105] ret_from_fork_asm+0x1a/0x30 [ 11.810135] </TASK> [ 11.810144] [ 11.820675] The buggy address belongs to the physical page: [ 11.820860] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10299c [ 11.821115] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.821777] flags: 0x200000000000040(head|node=0|zone=2) [ 11.822098] page_type: f8(unknown) [ 11.822224] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.822711] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.823651] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.824451] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.825181] head: 0200000000000002 ffffea00040a6701 00000000ffffffff 00000000ffffffff [ 11.825873] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.826113] page dumped because: kasan: bad access detected [ 11.826286] [ 11.826484] Memory state around the buggy address: [ 11.826920] ffff88810299bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.827654] ffff88810299bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.828401] >ffff88810299c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.829178] ^ [ 11.829535] ffff88810299c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.830187] ffff88810299c100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.830621] ==================================================================