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 5EE44C433FE for ; Tue, 4 Jan 2022 10:03:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A7AA66B0075; Tue, 4 Jan 2022 05:03:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A041D6B0078; Tue, 4 Jan 2022 05:03:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8CAE86B007B; Tue, 4 Jan 2022 05:03:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0021.hostedemail.com [216.40.44.21]) by kanga.kvack.org (Postfix) with ESMTP id 7B1836B0075 for ; Tue, 4 Jan 2022 05:03:18 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 29C8D781C7 for ; Tue, 4 Jan 2022 10:03:18 +0000 (UTC) X-FDA: 78992166876.10.9ADF875 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) by imf12.hostedemail.com (Postfix) with ESMTP id E10F240007 for ; Tue, 4 Jan 2022 10:02:52 +0000 (UTC) Received: by mail-il1-f197.google.com with SMTP id r12-20020a056e0219cc00b002b52dee3ee1so15603240ill.16 for ; Tue, 04 Jan 2022 02:03:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=J8A1XgGlAEaiBhKwX89IXTy/77Y1cHQmnJJ+Cm54414=; b=1JSBL/NdhfvOU3a0uVUO1BXCVOGtC6vYIuYWaj7+ZvkOaorkJVBgnyI6bcaVbbxMrQ xXLKpiERzikDSiq/yDq4h/IrdCadE9RUM/kmSJrLp5qTY3LQMsG+uNZECf42ubMUoH5H fAntr/BR7jONBO+ayjSSet6n1925gybJ6Ot2qMiA5+euiaqWzamCypymDtcpgnIvlYwZ aAkJqMRzYPFQq00h53QpuLNd9ecVZOrnYwG8pksvoQAR/R1Be7qDgFs+chyyFCM7XPdU PwBmVQm6QFkR+Nh1r7j7xvf4m4duj2KuRrj2qwdETepZFSFtM50/M00bvZpR1ga1J/Fd vtyg== X-Gm-Message-State: AOAM531Y/V2SW1z8WJ0glJ90G/ETGK9qgLlN2p3Vn8NBKBhnDhsvxyTK Ql9AK5W64kDPP4w7ShHjvdiMuCUSTRH7GyePA4Sx+7EtdBEb X-Google-Smtp-Source: ABdhPJzles1c3lbSI8RKsh2tmGlxY6oCdCe7Kuh7VZ11Hlf51gfYD6EOoV8vUrtYUPkoVwJgwt1DoWsHO//Fi7R2pEi9XS87MeK8 MIME-Version: 1.0 X-Received: by 2002:a6b:5111:: with SMTP id f17mr22689256iob.180.1641290597159; Tue, 04 Jan 2022 02:03:17 -0800 (PST) Date: Tue, 04 Jan 2022 02:03:17 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000004591305d4bebf11@google.com> Subject: [syzbot] KMSAN: uninit-value in mpol_rebind_task (2) 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-Queue-Id: E10F240007 X-Stat-Signature: i89sdsf1cdkssf6gj47e6pyzxgrni76h Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf12.hostedemail.com: domain of 3ZRvUYQkbAAIu01mcnngtcrrkf.iqqingwugteqpvgpv.eqo@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.197 as permitted sender) smtp.mailfrom=3ZRvUYQkbAAIu01mcnngtcrrkf.iqqingwugteqpvgpv.eqo@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Rspamd-Server: rspam11 X-HE-Tag: 1641290572-672171 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: 81c325bbf94e kmsan: hooks: do not check memory in kmsan_in.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=112b8f7db00000 kernel config: https://syzkaller.appspot.com/x/.config?x=2d8b9a11641dc9aa dashboard link: https://syzkaller.appspot.com/bug?extid=217f792c92599518a2ab compiler: clang version 14.0.0 (/usr/local/google/src/llvm-git-monorepo 2b554920f11c8b763cd9ed9003f4e19b919b8e1f), GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13366ea5b00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14526cb3b00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+217f792c92599518a2ab@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in mpol_rebind_policy mm/mempolicy.c:352 [inline] BUG: KMSAN: uninit-value in mpol_rebind_task+0x2ac/0x2c0 mm/mempolicy.c:368 mpol_rebind_policy mm/mempolicy.c:352 [inline] mpol_rebind_task+0x2ac/0x2c0 mm/mempolicy.c:368 cpuset_change_task_nodemask kernel/cgroup/cpuset.c:1711 [inline] cpuset_attach+0x787/0x15e0 kernel/cgroup/cpuset.c:2278 cgroup_migrate_execute+0x1023/0x1d20 kernel/cgroup/cgroup.c:2515 cgroup_migrate kernel/cgroup/cgroup.c:2771 [inline] cgroup_attach_task+0x540/0x8b0 kernel/cgroup/cgroup.c:2804 __cgroup1_procs_write+0x5cc/0x7a0 kernel/cgroup/cgroup-v1.c:520 cgroup1_tasks_write+0x94/0xb0 kernel/cgroup/cgroup-v1.c:539 cgroup_file_write+0x4c2/0x9e0 kernel/cgroup/cgroup.c:3852 kernfs_fop_write_iter+0x66a/0x9f0 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2162 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x1318/0x2030 fs/read_write.c:590 ksys_write+0x28b/0x510 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0xdb/0x120 fs/read_write.c:652 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x44/0xae Uninit was created at: slab_post_alloc_hook mm/slab.h:524 [inline] slab_alloc_node mm/slub.c:3251 [inline] slab_alloc mm/slub.c:3259 [inline] kmem_cache_alloc+0x902/0x11c0 mm/slub.c:3264 mpol_new mm/mempolicy.c:293 [inline] do_set_mempolicy+0x421/0xb70 mm/mempolicy.c:853 kernel_set_mempolicy mm/mempolicy.c:1504 [inline] __do_sys_set_mempolicy mm/mempolicy.c:1510 [inline] __se_sys_set_mempolicy+0x44c/0xb60 mm/mempolicy.c:1507 __x64_sys_set_mempolicy+0xd8/0x110 mm/mempolicy.c:1507 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x44/0xae CPU: 1 PID: 3479 Comm: syz-executor124 Not tainted 5.16.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ===================================================== --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches