Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.872505] ================================================================== [ 18.872575] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 18.872662] Read of size 1 at addr fff00000c79ec000 by task kunit_try_catch/233 [ 18.872711] [ 18.872744] CPU: 0 UID: 0 PID: 233 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 18.872827] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.872854] Hardware name: linux,dummy-virt (DT) [ 18.873094] Call trace: [ 18.873135] show_stack+0x20/0x38 (C) [ 18.873191] dump_stack_lvl+0x8c/0xd0 [ 18.873248] print_report+0x118/0x608 [ 18.873296] kasan_report+0xdc/0x128 [ 18.873539] __asan_report_load1_noabort+0x20/0x30 [ 18.873878] mempool_uaf_helper+0x314/0x340 [ 18.874000] mempool_page_alloc_uaf+0xc0/0x118 [ 18.874067] kunit_try_run_case+0x170/0x3f0 [ 18.874120] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.874169] kthread+0x328/0x630 [ 18.874213] ret_from_fork+0x10/0x20 [ 18.874258] [ 18.874282] The buggy address belongs to the physical page: [ 18.874311] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079ec [ 18.874364] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.874425] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.874502] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.874542] page dumped because: kasan: bad access detected [ 18.874581] [ 18.874600] Memory state around the buggy address: [ 18.874632] fff00000c79ebf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.874675] fff00000c79ebf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.874853] >fff00000c79ec000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.875023] ^ [ 18.875067] fff00000c79ec080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.875127] fff00000c79ec100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.875165] ================================================================== [ 18.837267] ================================================================== [ 18.837343] BUG: KASAN: use-after-free in mempool_uaf_helper+0x314/0x340 [ 18.837463] Read of size 1 at addr fff00000c79e8000 by task kunit_try_catch/229 [ 18.837517] [ 18.837548] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 18.837862] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.838022] Hardware name: linux,dummy-virt (DT) [ 18.838069] Call trace: [ 18.838095] show_stack+0x20/0x38 (C) [ 18.838150] dump_stack_lvl+0x8c/0xd0 [ 18.838197] print_report+0x118/0x608 [ 18.838242] kasan_report+0xdc/0x128 [ 18.838595] __asan_report_load1_noabort+0x20/0x30 [ 18.838664] mempool_uaf_helper+0x314/0x340 [ 18.838759] mempool_kmalloc_large_uaf+0xc4/0x120 [ 18.838811] kunit_try_run_case+0x170/0x3f0 [ 18.838885] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.838983] kthread+0x328/0x630 [ 18.839118] ret_from_fork+0x10/0x20 [ 18.839174] [ 18.839199] The buggy address belongs to the physical page: [ 18.839420] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079e8 [ 18.839489] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.839537] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.839643] page_type: f8(unknown) [ 18.839697] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.839937] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.840114] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.840284] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.840335] head: 0bfffe0000000002 ffffc1ffc31e7a01 00000000ffffffff 00000000ffffffff [ 18.840413] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.840455] page dumped because: kasan: bad access detected [ 18.840491] [ 18.840516] Memory state around the buggy address: [ 18.840574] fff00000c79e7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.840618] fff00000c79e7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.840661] >fff00000c79e8000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.841009] ^ [ 18.841078] fff00000c79e8080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.841126] fff00000c79e8100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.841252] ==================================================================
[ 18.521988] ================================================================== [ 18.522529] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 18.523524] Read of size 1 at addr ffff888103d0c000 by task kunit_try_catch/250 [ 18.524442] [ 18.524676] CPU: 1 UID: 0 PID: 250 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 18.524788] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.524816] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.524862] Call Trace: [ 18.524890] <TASK> [ 18.524928] dump_stack_lvl+0x73/0xb0 [ 18.524992] print_report+0xd1/0x650 [ 18.525038] ? __virt_addr_valid+0x1db/0x2d0 [ 18.525080] ? mempool_uaf_helper+0x392/0x400 [ 18.525121] ? kasan_addr_to_slab+0x11/0xa0 [ 18.525161] ? mempool_uaf_helper+0x392/0x400 [ 18.525205] kasan_report+0x141/0x180 [ 18.525232] ? mempool_uaf_helper+0x392/0x400 [ 18.525283] __asan_report_load1_noabort+0x18/0x20 [ 18.525311] mempool_uaf_helper+0x392/0x400 [ 18.525336] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 18.525361] ? __pfx_sched_clock_cpu+0x10/0x10 [ 18.525387] ? finish_task_switch.isra.0+0x153/0x700 [ 18.525414] mempool_page_alloc_uaf+0xed/0x140 [ 18.525439] ? __pfx_mempool_page_alloc_uaf+0x10/0x10 [ 18.525466] ? __pfx_mempool_alloc_pages+0x10/0x10 [ 18.525490] ? __pfx_mempool_free_pages+0x10/0x10 [ 18.525514] ? __pfx_read_tsc+0x10/0x10 [ 18.525537] ? ktime_get_ts64+0x86/0x230 [ 18.525563] kunit_try_run_case+0x1a5/0x480 [ 18.525590] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.525614] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.525639] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.525670] ? __kthread_parkme+0x82/0x180 [ 18.525716] ? preempt_count_sub+0x50/0x80 [ 18.525740] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.525765] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.525789] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.525813] kthread+0x337/0x6f0 [ 18.525834] ? trace_preempt_on+0x20/0xc0 [ 18.525860] ? __pfx_kthread+0x10/0x10 [ 18.525882] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.525904] ? calculate_sigpending+0x7b/0xa0 [ 18.525930] ? __pfx_kthread+0x10/0x10 [ 18.525952] ret_from_fork+0x116/0x1d0 [ 18.525972] ? __pfx_kthread+0x10/0x10 [ 18.525993] ret_from_fork_asm+0x1a/0x30 [ 18.526024] </TASK> [ 18.526038] [ 18.538009] The buggy address belongs to the physical page: [ 18.538514] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103d0c [ 18.539054] flags: 0x200000000000000(node=0|zone=2) [ 18.539349] raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.540022] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.540498] page dumped because: kasan: bad access detected [ 18.540785] [ 18.541023] Memory state around the buggy address: [ 18.541397] ffff888103d0bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.541813] ffff888103d0bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.542129] >ffff888103d0c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.542704] ^ [ 18.543036] ffff888103d0c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.543375] ffff888103d0c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.543699] ================================================================== [ 18.436339] ================================================================== [ 18.436866] BUG: KASAN: use-after-free in mempool_uaf_helper+0x392/0x400 [ 18.437587] Read of size 1 at addr ffff888103d08000 by task kunit_try_catch/246 [ 18.438044] [ 18.438217] CPU: 1 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 18.438393] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.438420] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.438459] Call Trace: [ 18.438484] <TASK> [ 18.438516] dump_stack_lvl+0x73/0xb0 [ 18.438574] print_report+0xd1/0x650 [ 18.438615] ? __virt_addr_valid+0x1db/0x2d0 [ 18.438676] ? mempool_uaf_helper+0x392/0x400 [ 18.438724] ? kasan_addr_to_slab+0x11/0xa0 [ 18.438766] ? mempool_uaf_helper+0x392/0x400 [ 18.438811] kasan_report+0x141/0x180 [ 18.438859] ? mempool_uaf_helper+0x392/0x400 [ 18.438916] __asan_report_load1_noabort+0x18/0x20 [ 18.438963] mempool_uaf_helper+0x392/0x400 [ 18.439032] ? __pfx_mempool_uaf_helper+0x10/0x10 [ 18.439079] ? __pfx_sched_clock_cpu+0x10/0x10 [ 18.439114] ? finish_task_switch.isra.0+0x153/0x700 [ 18.439153] mempool_kmalloc_large_uaf+0xef/0x140 [ 18.439192] ? __pfx_mempool_kmalloc_large_uaf+0x10/0x10 [ 18.439226] ? __pfx_mempool_kmalloc+0x10/0x10 [ 18.439250] ? __pfx_mempool_kfree+0x10/0x10 [ 18.439297] ? __pfx_read_tsc+0x10/0x10 [ 18.439321] ? ktime_get_ts64+0x86/0x230 [ 18.439347] kunit_try_run_case+0x1a5/0x480 [ 18.439374] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.439398] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.439423] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.439447] ? __kthread_parkme+0x82/0x180 [ 18.439470] ? preempt_count_sub+0x50/0x80 [ 18.439494] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.439520] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.439545] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.439570] kthread+0x337/0x6f0 [ 18.439591] ? trace_preempt_on+0x20/0xc0 [ 18.439617] ? __pfx_kthread+0x10/0x10 [ 18.439639] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.439660] ? calculate_sigpending+0x7b/0xa0 [ 18.439686] ? __pfx_kthread+0x10/0x10 [ 18.439709] ret_from_fork+0x116/0x1d0 [ 18.439729] ? __pfx_kthread+0x10/0x10 [ 18.439751] ret_from_fork_asm+0x1a/0x30 [ 18.439783] </TASK> [ 18.439797] [ 18.451995] The buggy address belongs to the physical page: [ 18.452631] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103d08 [ 18.453294] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.453594] flags: 0x200000000000040(head|node=0|zone=2) [ 18.454292] page_type: f8(unknown) [ 18.454626] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.455366] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.455784] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.456250] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.456846] head: 0200000000000002 ffffea00040f4201 00000000ffffffff 00000000ffffffff [ 18.457529] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.457944] page dumped because: kasan: bad access detected [ 18.458410] [ 18.458544] Memory state around the buggy address: [ 18.458864] ffff888103d07f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.459562] ffff888103d07f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.460001] >ffff888103d08000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.460417] ^ [ 18.460722] ffff888103d08080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.461423] ffff888103d08100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.461989] ==================================================================