Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.067481] ================================================================== [ 15.067616] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 15.067685] Free of addr fff00000c6410001 by task kunit_try_catch/151 [ 15.067730] [ 15.068242] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.068546] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.068590] Hardware name: linux,dummy-virt (DT) [ 15.068731] Call trace: [ 15.068800] show_stack+0x20/0x38 (C) [ 15.068998] dump_stack_lvl+0x8c/0xd0 [ 15.069077] print_report+0x118/0x5d0 [ 15.069231] kasan_report_invalid_free+0xc0/0xe8 [ 15.069617] __kasan_kfree_large+0x5c/0xa8 [ 15.069768] free_large_kmalloc+0x64/0x190 [ 15.069824] kfree+0x270/0x3c8 [ 15.069865] kmalloc_large_invalid_free+0x108/0x270 [ 15.070210] kunit_try_run_case+0x170/0x3f0 [ 15.070284] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.070461] kthread+0x328/0x630 [ 15.070890] ret_from_fork+0x10/0x20 [ 15.071035] [ 15.071058] The buggy address belongs to the physical page: [ 15.071095] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106410 [ 15.071441] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.071522] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.071646] page_type: f8(unknown) [ 15.071698] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.071898] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.071962] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.072180] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.072569] head: 0bfffe0000000002 ffffc1ffc3190401 00000000ffffffff 00000000ffffffff [ 15.072689] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.072789] page dumped because: kasan: bad access detected [ 15.072833] [ 15.072852] Memory state around the buggy address: [ 15.073034] fff00000c640ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.073280] fff00000c640ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.073351] >fff00000c6410000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.073487] ^ [ 15.073548] fff00000c6410080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.073590] fff00000c6410100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.073960] ==================================================================
[ 11.622219] ================================================================== [ 11.622867] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 11.623336] Free of addr ffff888103914001 by task kunit_try_catch/168 [ 11.623582] [ 11.623782] CPU: 1 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.623878] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.623890] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.623933] Call Trace: [ 11.623958] <TASK> [ 11.623975] dump_stack_lvl+0x73/0xb0 [ 11.624007] print_report+0xd1/0x610 [ 11.624029] ? __virt_addr_valid+0x1db/0x2d0 [ 11.624052] ? kasan_addr_to_slab+0x11/0xa0 [ 11.624072] ? kfree+0x274/0x3f0 [ 11.624092] kasan_report_invalid_free+0x10a/0x130 [ 11.624116] ? kfree+0x274/0x3f0 [ 11.624148] ? kfree+0x274/0x3f0 [ 11.624168] __kasan_kfree_large+0x86/0xd0 [ 11.624198] free_large_kmalloc+0x4b/0x110 [ 11.624221] kfree+0x274/0x3f0 [ 11.624245] kmalloc_large_invalid_free+0x120/0x2b0 [ 11.624268] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 11.624292] ? __schedule+0x10cc/0x2b60 [ 11.624313] ? __pfx_read_tsc+0x10/0x10 [ 11.624334] ? ktime_get_ts64+0x86/0x230 [ 11.624358] kunit_try_run_case+0x1a5/0x480 [ 11.624382] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.624404] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.624427] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.624459] ? __kthread_parkme+0x82/0x180 [ 11.624479] ? preempt_count_sub+0x50/0x80 [ 11.624512] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.624535] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.624557] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.624613] kthread+0x337/0x6f0 [ 11.624632] ? trace_preempt_on+0x20/0xc0 [ 11.624655] ? __pfx_kthread+0x10/0x10 [ 11.624796] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.624824] ? calculate_sigpending+0x7b/0xa0 [ 11.624849] ? __pfx_kthread+0x10/0x10 [ 11.624870] ret_from_fork+0x116/0x1d0 [ 11.624888] ? __pfx_kthread+0x10/0x10 [ 11.624908] ret_from_fork_asm+0x1a/0x30 [ 11.624939] </TASK> [ 11.624951] [ 11.636996] The buggy address belongs to the physical page: [ 11.637394] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103914 [ 11.637916] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.638381] flags: 0x200000000000040(head|node=0|zone=2) [ 11.638690] page_type: f8(unknown) [ 11.638897] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.639124] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.639448] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.639802] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.640577] head: 0200000000000002 ffffea00040e4501 00000000ffffffff 00000000ffffffff [ 11.640921] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.641557] page dumped because: kasan: bad access detected [ 11.641786] [ 11.641857] Memory state around the buggy address: [ 11.642361] ffff888103913f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.642920] ffff888103913f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.643521] >ffff888103914000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.643940] ^ [ 11.644553] ffff888103914080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.644856] ffff888103914100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.645405] ==================================================================