From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4927C77B73 for ; Wed, 31 May 2023 07:17:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DB24B900002; Wed, 31 May 2023 03:17:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D3BC86B0074; Wed, 31 May 2023 03:17:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BB4F7900002; Wed, 31 May 2023 03:17:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A52C36B0072 for ; Wed, 31 May 2023 03:17:04 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 7C87F1C6EEF for ; Wed, 31 May 2023 07:17:04 +0000 (UTC) X-FDA: 80849693568.05.D7C02AC Received: from mail-io1-f77.google.com (mail-io1-f77.google.com [209.85.166.77]) by imf21.hostedemail.com (Postfix) with ESMTP id C674D1C0006 for ; Wed, 31 May 2023 07:17:01 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; spf=pass (imf21.hostedemail.com: domain of 3bPR2ZAkbAFsLRSD3EE7K3IIB6.9HH9E7NL7K5HGM7GM.5HF@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.77 as permitted sender) smtp.mailfrom=3bPR2ZAkbAFsLRSD3EE7K3IIB6.9HH9E7NL7K5HGM7GM.5HF@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685517421; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=PK5dR/6cD4YPGCq8YgMTD9K9fOKLXozTYz5JKJ25ApI=; b=Lhaylt1Wp1r+bw7ikWmf4tFzQ9LOrL1edS8UfbiX/w/axBQrNlnL4lwaiZEpQ3rPb1h9r9 1bqnQMKdAQUH0vbmYx/HM3X5wuXTHCylZEXm0l3XabCeM1urHrDChaFsS7FK6E+Ow7Ce04 12PNT6VbWCOi6hMJpX5TRZbyA7ovmQU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685517421; a=rsa-sha256; cv=none; b=zaRV1eg2nEVwUnsnPMP546cXahpVrA/Jtq/TPrYmR+bSW11yJdmqB+fODOY0ZtOWmJfDBB fs1FPhVn2wAn8tXQtvTSa1HqWBHEchKVTMWjBcDe+HwEif3X+zpx9dz+ot9PowmpDwaR2K EMkQUpqRW/iZiesiq9ZAC+3FdO1B0yw= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; spf=pass (imf21.hostedemail.com: domain of 3bPR2ZAkbAFsLRSD3EE7K3IIB6.9HH9E7NL7K5HGM7GM.5HF@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.77 as permitted sender) smtp.mailfrom=3bPR2ZAkbAFsLRSD3EE7K3IIB6.9HH9E7NL7K5HGM7GM.5HF@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) Received: by mail-io1-f77.google.com with SMTP id ca18e2360f4ac-77760439873so68342239f.0 for ; Wed, 31 May 2023 00:17:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685517421; x=1688109421; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PK5dR/6cD4YPGCq8YgMTD9K9fOKLXozTYz5JKJ25ApI=; b=ACGqcBtkDrhV80F82xmxbMlN5nlTYHVw/CXNFaNn7xXCG8g5g8fOY67qC4AuyBXLED NlGHQThIjtYDzMs5i8Eex34unTnsOr4ijSIvvZLnLLBzH4rq08TDA5QaZ+lHbhGlZueq ni4rxFnX7FWWe5Bq5KMV736I8Jy17IkuPcpUWGURP2U4UXfCSFemMzlimLU7NNW5Z0R/ MbVKBNfNOVvob6FgfIsBKNqhT7XPqW/NBqjd3lCLC4XA4TLn1e+Dd6SM5p80sBNSH34j GOTHbkQVtd9WJmMWfHRi9kCDKrb2D2x5UVJn6a9jyvrvEqizwSylYRusbrPPX56Jdxo2 Qy8Q== X-Gm-Message-State: AC+VfDynrSl8qwwtEcqTCy/MBmFZmyBXp8+rWTX4XgOzfNHLgJYmABMu HxQ97IfdD6ZHruzt/PVUOPSOSnP26Ghs+qgchUyfoap8euQo X-Google-Smtp-Source: ACHHUZ5Di1MnDtfPZcaoJtP0jhr+X3FJKwvu+120ohe9fXVwQLTDSC4Z/cyDjZbQTzziFyFrg6kKRFQpqNCmq2vFfZP2jlcDPM7B MIME-Version: 1.0 X-Received: by 2002:a05:6602:4203:b0:766:6741:8856 with SMTP id cb3-20020a056602420300b0076667418856mr2055100iob.4.1685517420988; Wed, 31 May 2023 00:17:00 -0700 (PDT) Date: Wed, 31 May 2023 00:17:00 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000024123505fcf81bda@google.com> Subject: [syzbot] [mm?] KASAN: slab-use-after-free Read in mas_prev_nentry From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: C674D1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wZQJL7llwXzWwVvMt8RXpKh19TY8VzUFELAeZ60jqe7rPC9KBAEl8kJlmaJ1eipcWWir6aXR3uZ+2KTUsQgdoe9gyC79mM+if9eF+8O21B8b8uYRW9Nf5GAzOcwI1/+ZJ5AkT8ZXxb5/25lhR8mSbymEmqTRsodzdalf9qdfeManQkKaigi3uevle8A8bUlOsRUuH9eZrFz6ztF+OVnyn3iKj+Ums+S85OyhXD21jgQqVETeWpzxiNyGuvSOexRJH2Mf6n93sBxtQQaNZ3rYyt4MO/G8E= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, syzbot found the following issue on: HEAD commit: 91a304340a22 Merge tag 'gpio-fixes-for-v6.4-rc4' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13244ec1280000 kernel config: https://syzkaller.appspot.com/x/.config?x=64baed516d970baf dashboard link: https://syzkaller.appspot.com/bug?extid=f3728183b2f78d0d40f6 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12a3ad4d280000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a3baec566894/disk-91a30434.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/deff6917d289/vmlinux-91a30434.xz kernel image: https://storage.googleapis.com/syzbot-assets/15d604397fc3/bzImage-91a30434.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f3728183b2f78d0d40f6@syzkaller.appspotmail.com ================================================================== BUG: KASAN: slab-use-after-free in mas_safe_min lib/maple_tree.c:734 [inline] BUG: KASAN: slab-use-after-free in mas_prev_nentry+0x18f5/0x1a00 lib/maple_tree.c:4888 Read of size 8 at addr ffff88802054c618 by task syz-executor.5/27952 CPU: 1 PID: 27952 Comm: syz-executor.5 Not tainted 6.4.0-rc3-syzkaller-00226-g91a304340a22 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 mas_safe_min lib/maple_tree.c:734 [inline] mas_prev_nentry+0x18f5/0x1a00 lib/maple_tree.c:4888 mas_prev_entry lib/maple_tree.c:4914 [inline] mas_prev_entry lib/maple_tree.c:4903 [inline] mas_prev+0x124/0x720 lib/maple_tree.c:5999 find_mergeable_anon_vma+0x16b/0x870 mm/mmap.c:1137 __anon_vma_prepare+0x7d/0x580 mm/rmap.c:200 anon_vma_prepare include/linux/rmap.h:159 [inline] do_anonymous_page mm/memory.c:4083 [inline] do_pte_missing mm/memory.c:3645 [inline] handle_pte_fault mm/memory.c:4947 [inline] __handle_mm_fault+0x34ed/0x41c0 mm/memory.c:5089 handle_mm_fault+0x2af/0x9f0 mm/memory.c:5243 faultin_page mm/gup.c:925 [inline] __get_user_pages+0x60a/0x10e0 mm/gup.c:1147 populate_vma_page_range+0x2df/0x420 mm/gup.c:1543 __mm_populate+0x105/0x3b0 mm/gup.c:1652 mm_populate include/linux/mm.h:3153 [inline] vm_mmap_pgoff+0x2c2/0x3b0 mm/util.c:548 ksys_mmap_pgoff+0x7d/0x5a0 mm/mmap.c:1440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f209948c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f209a116168 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f20995abf80 RCX: 00007f209948c169 RDX: 0000000000000002 RSI: 0000000000001000 RDI: 0000000020002000 RBP: 00007f20994e7ca1 R08: ffffffffffffffff R09: 0000000000000000 R10: 840000000000a132 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffd380b1af R14: 00007f209a116300 R15: 0000000000022000 Allocated by task 27951: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:711 [inline] kmem_cache_alloc_bulk+0x424/0x860 mm/slub.c:4033 mt_alloc_bulk lib/maple_tree.c:164 [inline] mas_alloc_nodes+0x332/0x880 lib/maple_tree.c:1309 mas_node_count_gfp lib/maple_tree.c:1367 [inline] mas_preallocate+0x1bb/0x360 lib/maple_tree.c:5775 vma_iter_prealloc mm/internal.h:1029 [inline] __split_vma+0x1b7/0x830 mm/mmap.c:2253 split_vma+0xc6/0x110 mm/mmap.c:2318 mprotect_fixup+0x90e/0xbd0 mm/mprotect.c:692 do_mprotect_pkey+0x87f/0xd50 mm/mprotect.c:860 __do_sys_mprotect mm/mprotect.c:881 [inline] __se_sys_mprotect mm/mprotect.c:878 [inline] __x64_sys_mprotect+0x78/0xb0 mm/mprotect.c:878 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 15: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2e/0x40 mm/kasan/generic.c:521 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x160/0x1c0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1807 slab_free mm/slub.c:3786 [inline] kmem_cache_free+0xe9/0x480 mm/slub.c:3808 rcu_do_batch kernel/rcu/tree.c:2115 [inline] rcu_core+0x806/0x1ad0 kernel/rcu/tree.c:2377 __do_softirq+0x1d4/0x905 kernel/softirq.c:571 Last potentially related work creation: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:491 __call_rcu_common.constprop.0+0x99/0x7e0 kernel/rcu/tree.c:2627 ma_free_rcu lib/maple_tree.c:189 [inline] mas_free lib/maple_tree.c:1349 [inline] mas_replace+0x80b/0x12c0 lib/maple_tree.c:1788 mas_wr_node_store+0x106b/0x1670 lib/maple_tree.c:4200 mas_wr_modify+0x2cf/0x16d0 lib/maple_tree.c:4394 mas_wr_store_entry.isra.0+0x4fb/0x1090 lib/maple_tree.c:4439 mas_store_prealloc+0xb3/0x150 lib/maple_tree.c:5758 expand_downwards+0x98a/0xdc0 mm/mmap.c:2096 do_user_addr_fault+0x93e/0x1210 arch/x86/mm/fault.c:1412 handle_page_fault arch/x86/mm/fault.c:1534 [inline] exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1590 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 Second to last potentially related work creation: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:491 __call_rcu_common.constprop.0+0x99/0x7e0 kernel/rcu/tree.c:2627 ma_free_rcu lib/maple_tree.c:189 [inline] mas_free lib/maple_tree.c:1349 [inline] mas_replace+0x80b/0x12c0 lib/maple_tree.c:1788 mas_wr_node_store+0x106b/0x1670 lib/maple_tree.c:4200 mas_wr_modify+0x2cf/0x16d0 lib/maple_tree.c:4394 mas_wr_store_entry.isra.0+0x4fb/0x1090 lib/maple_tree.c:4439 mas_store_gfp+0xce/0x1f0 lib/maple_tree.c:5735 vma_iter_clear_gfp mm/mmap.c:162 [inline] do_vmi_align_munmap+0xc1c/0x1580 mm/mmap.c:2451 do_vmi_munmap+0x26e/0x2c0 mm/mmap.c:2530 mmap_region+0x1f0/0x28d0 mm/mmap.c:2578 do_mmap+0x831/0xf60 mm/mmap.c:1394 vm_mmap_pgoff+0x1a2/0x3b0 mm/util.c:543 ksys_mmap_pgoff+0x7d/0x5a0 mm/mmap.c:1440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802054c600 which belongs to the cache maple_node of size 256 The buggy address is located 24 bytes inside of freed 256-byte region [ffff88802054c600, ffff88802054c700) The buggy address belongs to the physical page: page:ffffea0000815300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2054c head:ffffea0000815300 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888012e4d000 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 26530, tgid 26529 (syz-executor.2), ts 330845588771, free_ts 289803768600 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2db/0x350 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0xf41/0x2c00 mm/page_alloc.c:3502 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4768 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2279 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3192 __kmem_cache_alloc_bulk mm/slub.c:3951 [inline] kmem_cache_alloc_bulk+0x270/0x860 mm/slub.c:4026 mt_alloc_bulk lib/maple_tree.c:164 [inline] mas_alloc_nodes+0x332/0x880 lib/maple_tree.c:1309 mas_node_count_gfp lib/maple_tree.c:1367 [inline] mas_preallocate+0x1bb/0x360 lib/maple_tree.c:5775 vma_iter_prealloc mm/internal.h:1029 [inline] mmap_region+0x84c/0x28d0 mm/mmap.c:2711 do_mmap+0x831/0xf60 mm/mmap.c:1394 vm_mmap_pgoff+0x1a2/0x3b0 mm/util.c:543 ksys_mmap_pgoff+0x7d/0x5a0 mm/mmap.c:1440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x62e/0xcb0 mm/page_alloc.c:2564 free_unref_page_list+0xe3/0xa70 mm/page_alloc.c:2705 release_pages+0xcd8/0x1380 mm/swap.c:1042 tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x14b/0x7e0 mm/mmu_gather.c:391 exit_mmap+0x2b2/0x930 mm/mmap.c:3123 __mmput+0x128/0x4c0 kernel/fork.c:1351 mmput+0x60/0x70 kernel/fork.c:1373 exit_mm kernel/exit.c:564 [inline] do_exit+0x9d7/0x2960 kernel/exit.c:858 do_group_exit+0xd4/0x2a0 kernel/exit.c:1021 get_signal+0x2315/0x25b0 kernel/signal.c:2874 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88802054c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802054c580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802054c600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802054c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802054c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the bug is already fixed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to change bug's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the bug is a duplicate of another bug, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup