Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.181870] ================================================================== [ 30.183250] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 30.184233] Free of addr fff00000c6220001 by task kunit_try_catch/139 [ 30.184957] [ 30.185364] CPU: 0 UID: 0 PID: 139 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 30.186806] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.187289] Hardware name: linux,dummy-virt (DT) [ 30.187779] Call trace: [ 30.188136] show_stack+0x20/0x38 (C) [ 30.188705] dump_stack_lvl+0x8c/0xd0 [ 30.189402] print_report+0x118/0x5e0 [ 30.190158] kasan_report_invalid_free+0xb0/0xd8 [ 30.191399] __kasan_kfree_large+0x5c/0xa8 [ 30.192266] free_large_kmalloc+0x58/0x140 [ 30.192989] kfree+0x270/0x3c8 [ 30.193438] kmalloc_large_invalid_free+0x108/0x270 [ 30.194394] kunit_try_run_case+0x14c/0x3d0 [ 30.195051] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.195804] kthread+0x24c/0x2d0 [ 30.196375] ret_from_fork+0x10/0x20 [ 30.197352] [ 30.197704] The buggy address belongs to the physical page: [ 30.198821] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106220 [ 30.199666] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.200547] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.201409] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.202299] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.203088] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 30.204002] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 30.205370] head: 0bfffe0000000002 ffffc1ffc3188801 ffffffffffffffff 0000000000000000 [ 30.206503] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 30.207344] page dumped because: kasan: bad access detected [ 30.208556] [ 30.208867] Memory state around the buggy address: [ 30.209604] fff00000c621ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.210435] fff00000c621ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.211179] >fff00000c6220000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.211991] ^ [ 30.212571] fff00000c6220080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.213401] fff00000c6220100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.214365] ==================================================================
[ 22.336880] ================================================================== [ 22.339756] BUG: KASAN: invalid-free in kfree+0x271/0x3f0 [ 22.340566] Free of addr ffff888102978001 by task kunit_try_catch/158 [ 22.342207] [ 22.343360] CPU: 0 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 22.344068] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.344762] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.346461] Call Trace: [ 22.346767] <TASK> [ 22.347080] dump_stack_lvl+0x73/0xb0 [ 22.347388] print_report+0xd1/0x640 [ 22.347845] ? __virt_addr_valid+0x1db/0x2d0 [ 22.349341] ? kfree+0x271/0x3f0 [ 22.349741] ? kasan_addr_to_slab+0x11/0xa0 [ 22.351061] ? kfree+0x271/0x3f0 [ 22.351357] kasan_report_invalid_free+0xc0/0xf0 [ 22.352806] ? kfree+0x271/0x3f0 [ 22.353407] ? kfree+0x271/0x3f0 [ 22.353975] __kasan_kfree_large+0x86/0xd0 [ 22.354739] free_large_kmalloc+0x3b/0xd0 [ 22.355043] kfree+0x271/0x3f0 [ 22.355411] ? kmalloc_large_invalid_free+0x90/0x2b0 [ 22.356693] kmalloc_large_invalid_free+0x121/0x2b0 [ 22.357805] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 22.358184] ? __schedule+0xc70/0x27e0 [ 22.358671] ? __pfx_read_tsc+0x10/0x10 [ 22.360045] ? ktime_get_ts64+0x86/0x230 [ 22.360844] kunit_try_run_case+0x1b3/0x490 [ 22.361311] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.362370] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 22.362843] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.364068] ? __kthread_parkme+0x82/0x160 [ 22.364759] ? preempt_count_sub+0x50/0x80 [ 22.365107] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.366281] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.366794] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.368433] kthread+0x257/0x310 [ 22.368830] ? __pfx_kthread+0x10/0x10 [ 22.369127] ret_from_fork+0x41/0x80 [ 22.369573] ? __pfx_kthread+0x10/0x10 [ 22.370083] ret_from_fork_asm+0x1a/0x30 [ 22.371471] </TASK> [ 22.371707] [ 22.371864] The buggy address belongs to the physical page: [ 22.373399] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102978 [ 22.374546] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.375198] flags: 0x200000000000040(head|node=0|zone=2) [ 22.376350] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.378020] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 22.378708] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 22.379677] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 22.380628] head: 0200000000000002 ffffea00040a5e01 ffffffffffffffff 0000000000000000 [ 22.381808] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 22.382559] page dumped because: kasan: bad access detected [ 22.383919] [ 22.384122] Memory state around the buggy address: [ 22.384491] ffff888102977f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.386077] ffff888102977f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.387181] >ffff888102978000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.387687] ^ [ 22.388002] ffff888102978080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.388571] ffff888102978100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.390211] ==================================================================