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 X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BABBC43460 for ; Sat, 1 May 2021 06:08:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9E001613F7 for ; Sat, 1 May 2021 06:08:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E001613F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E91746B006E; Sat, 1 May 2021 02:08:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E6A2A8D0002; Sat, 1 May 2021 02:08:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D33BC6B0070; Sat, 1 May 2021 02:08:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0073.hostedemail.com [216.40.44.73]) by kanga.kvack.org (Postfix) with ESMTP id AA51E8D0002 for ; Sat, 1 May 2021 02:08:17 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 655E0362B for ; Sat, 1 May 2021 06:08:17 +0000 (UTC) X-FDA: 78091632234.16.8352380 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by imf17.hostedemail.com (Postfix) with ESMTP id 07FD940001FE for ; Sat, 1 May 2021 06:08:12 +0000 (UTC) Received: by mail-il1-f197.google.com with SMTP id i2-20020a056e021b02b029018159d70cffso397472ilv.18 for ; Fri, 30 Apr 2021 23:08:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=QY3ro5vJAuKZcXJFutAbvXy9Ia4spy8FSXQM0sKzA2o=; b=UwIHffDxKev4wYFs1GD/O8Sko+E021GGhV4EIiyuv7G6IFhQXLcSbaAfm2tjZE++a9 UGPOnRIG7GraVlrtU4u7z4Wkth+Ifqb3Dp8BoeI2LGVBbQpxDNwlvjk9KgknJzrIlJo1 JvO4z6EwtYQ9essPgaV2FRMtQIwMdRHOo/Am/fOXTQKlvk5rO+XM/ho2qpWg+xP/VwEF 4wcwwag1ZeSdQB9LkJWcxze3quiIzKYe8M1JBYz3QIshXct7jjTXsBUhpJ/Ng9A7HfiA UQHUmi8awh0RN4NhICDsow0laP37HIFBbPLeIRsiKR6DC02OSrqNeaQ7tStgHXibnj7k 7ThQ== X-Gm-Message-State: AOAM530v3ll6kZdrY9JIkYXPUhQyAwkMrobyy7XYB3yBTjfzcrZVXt6S wmFZSsNsUXp8jWE45nhZMpg37A7Nqz+DNIgMmiqW8MucLCek X-Google-Smtp-Source: ABdhPJwuuqf5VV+V00mQs202MmayRDhx21Bc0SwnQcRDlXBjYSIFtj/nJBTTt6A4syijuBfLuLMsPgHqiJO1SfL+UtskZiC6b8qD MIME-Version: 1.0 X-Received: by 2002:a5d:9a8c:: with SMTP id c12mr6914300iom.166.1619849296648; Fri, 30 Apr 2021 23:08:16 -0700 (PDT) Date: Fri, 30 Apr 2021 23:08:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000eaa2f805c13e8def@google.com> Subject: [syzbot] KMSAN: uninit-value in __mpol_equal From: syzbot To: akpm@linux-foundation.org, glider@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 07FD940001FE X-Stat-Signature: sfzno58z8t8519jmrrmk8s85mawi811f Authentication-Results: imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of 3UPCMYAkbAG8flmXNYYReNccVQ.TbbTYRhfRePbagRag.PbZ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.197 as permitted sender) smtp.mailfrom=3UPCMYAkbAG8flmXNYYReNccVQ.TbbTYRhfRePbagRag.PbZ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) Received-SPF: none (m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com>: No applicable sender policy available) receiver=imf17; identity=mailfrom; envelope-from="<3UPCMYAkbAG8flmXNYYReNccVQ.TbbTYRhfRePbagRag.PbZ@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com>"; helo=mail-il1-f197.google.com; client-ip=209.85.166.197 X-HE-DKIM-Result: none/none X-HE-Tag: 1619849292-880189 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: 4ebaab5f kmsan: drop unneeded references to kmsan_context_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=10f34961d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=647ca0f5bbe7703a dashboard link: https://syzkaller.appspot.com/bug?extid=b1d978f749455b49537a compiler: Debian clang version 11.0.1-2 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b1d978f749455b49537a@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in __mpol_equal+0x617/0x690 mm/mempolicy.c:2340 CPU: 0 PID: 20507 Comm: syz-executor.4 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 __mpol_equal+0x617/0x690 mm/mempolicy.c:2340 mpol_equal include/linux/mempolicy.h:108 [inline] vma_merge+0x47e/0x2210 mm/mmap.c:1187 mbind_range mm/mempolicy.c:830 [inline] do_mbind+0x19c9/0x38c0 mm/mempolicy.c:1350 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd2ba516188 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9 RDX: 0000000000002001 RSI: 0000000000800000 RDI: 0000000020001000 RBP: 00000000004bfbb9 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 0000000000a9fb1f R14: 00007fd2ba516300 R15: 0000000000022000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] slab_alloc mm/slub.c:2931 [inline] kmem_cache_alloc+0x895/0x1030 mm/slub.c:2936 mpol_new mm/mempolicy.c:302 [inline] do_mbind+0x8d5/0x38c0 mm/mempolicy.c:1306 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae ===================================================== ===================================================== BUG: KMSAN: uninit-value in __mpol_equal+0x617/0x690 mm/mempolicy.c:2340 CPU: 0 PID: 20507 Comm: syz-executor.4 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 __mpol_equal+0x617/0x690 mm/mempolicy.c:2340 mpol_equal include/linux/mempolicy.h:108 [inline] vma_merge+0x47e/0x2210 mm/mmap.c:1187 mbind_range mm/mempolicy.c:830 [inline] do_mbind+0x19c9/0x38c0 mm/mempolicy.c:1350 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd2ba516188 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9 RDX: 0000000000002001 RSI: 0000000000800000 RDI: 0000000020001000 RBP: 00000000004bfbb9 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 0000000000a9fb1f R14: 00007fd2ba516300 R15: 0000000000022000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] slab_alloc mm/slub.c:2931 [inline] kmem_cache_alloc+0x895/0x1030 mm/slub.c:2936 mpol_new mm/mempolicy.c:302 [inline] do_mbind+0x8d5/0x38c0 mm/mempolicy.c:1306 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae ===================================================== ===================================================== BUG: KMSAN: uninit-value in __mpol_equal+0x617/0x690 mm/mempolicy.c:2340 CPU: 0 PID: 20507 Comm: syz-executor.4 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 __mpol_equal+0x617/0x690 mm/mempolicy.c:2340 mpol_equal include/linux/mempolicy.h:108 [inline] vma_merge+0x47e/0x2210 mm/mmap.c:1187 mbind_range mm/mempolicy.c:830 [inline] do_mbind+0x19c9/0x38c0 mm/mempolicy.c:1350 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd2ba516188 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9 RDX: 0000000000002001 RSI: 0000000000800000 RDI: 0000000020001000 RBP: 00000000004bfbb9 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 0000000000a9fb1f R14: 00007fd2ba516300 R15: 0000000000022000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] slab_alloc mm/slub.c:2931 [inline] kmem_cache_alloc+0x895/0x1030 mm/slub.c:2936 mpol_new mm/mempolicy.c:302 [inline] do_mbind+0x8d5/0x38c0 mm/mempolicy.c:1306 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae ===================================================== ===================================================== BUG: KMSAN: uninit-value in __mpol_equal mm/mempolicy.c:2340 [inline] BUG: KMSAN: uninit-value in mpol_equal include/linux/mempolicy.h:108 [inline] BUG: KMSAN: uninit-value in mbind_range mm/mempolicy.c:836 [inline] BUG: KMSAN: uninit-value in do_mbind+0x2ee6/0x38c0 mm/mempolicy.c:1350 CPU: 0 PID: 20507 Comm: syz-executor.4 Tainted: G B 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 __mpol_equal mm/mempolicy.c:2340 [inline] mpol_equal include/linux/mempolicy.h:108 [inline] mbind_range mm/mempolicy.c:836 [inline] do_mbind+0x2ee6/0x38c0 mm/mempolicy.c:1350 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd2ba516188 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9 RDX: 0000000000002001 RSI: 0000000000800000 RDI: 0000000020001000 RBP: 00000000004bfbb9 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 0000000000a9fb1f R14: 00007fd2ba516300 R15: 0000000000022000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] slab_alloc mm/slub.c:2931 [inline] kmem_cache_alloc+0x895/0x1030 mm/slub.c:2936 mpol_new mm/mempolicy.c:302 [inline] do_mbind+0x8d5/0x38c0 mm/mempolicy.c:1306 kernel_mbind mm/mempolicy.c:1478 [inline] __do_sys_mbind mm/mempolicy.c:1485 [inline] __se_sys_mbind+0x3a6/0x3c0 mm/mempolicy.c:1481 __x64_sys_mbind+0x6e/0x90 mm/mempolicy.c:1481 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae ===================================================== --- 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.