Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5263903rwr; Mon, 24 Apr 2023 01:08:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YRf958927QT5UrvbNgxs6UIBgnl2iwUxG3/J9n+RvHsZU6beH/E4oVT8hJ10NscsNStcva X-Received: by 2002:a17:902:f9d0:b0:1a9:3662:ea2 with SMTP id kz16-20020a170902f9d000b001a936620ea2mr13216930plb.23.1682323679704; Mon, 24 Apr 2023 01:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682323679; cv=none; d=google.com; s=arc-20160816; b=D6zqD7Ae8huH9lbg2FMaT34MpwXL1H/EDR0gpxynIcxF9UY/0baaOOtmAYZWprh/N1 hegoq/FVI619eP9fHvrKnKg52GiyrzBo4kzy+PLM8E8v1pck3wBQhbiwY45YIwPXFylJ EbwQwABsMFnRdiJ129Ll7fLffdeai/BPGBCADmhmAuR2GRfdybwOqSKWcvVlrobNGUqK Z/bcpatMx7pJuAeSbdeVvU+0QFvewtR2OTA9DbukpFvE3ccNLFnf3Uu9pZTIHRCzfsBv yZxBwjLr4Ap+kOWk0CJBsV8appzTObd7a1mnGRmVQgZmFgsKa+RyIH442H0k3yxGmGaJ 1j8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=rS/fIEMWMpdB8AcMI+Y4zXjURKrKoFUpJdNl7oWNoq0=; b=fiJkX7GZuEs6z41MPgGnxwXBXcf8iIbjTwRGT8ZdVAV8zBLSbDR8DRA+iQZWFI7mbu pSIeRvUQZQxOLBoKH2RerT8ivOALtqUir2hYdN460P9uEy8p9FLCSa/c46SzcvIg2cMW uof0XiTOgoWtT0iYF6bujjvXB+dUpEfSd3qMxFBL1qscYEGNmiJF2UC0Tirz7OdvjNgn YY0F4GKXTZ8BKAkpuHPBk3je7PSI0zbN+SU/S/rgLN8TcL9T6/nd8O3DAYOBym/mKGUV SgVBOKapaZkllcjz6RQhKQg7+kNscfFuxtFU81gjrwatNfSG7VmIWjb/rGaQrMdJLgkc BClQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p15-20020a170902780f00b001a51c3404e0si4380141pll.337.2023.04.24.01.07.47; Mon, 24 Apr 2023 01:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjDXH6v (ORCPT + 99 others); Mon, 24 Apr 2023 03:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjDXH6u (ORCPT ); Mon, 24 Apr 2023 03:58:50 -0400 Received: from mail-il1-f208.google.com (mail-il1-f208.google.com [209.85.166.208]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCCC111B for ; Mon, 24 Apr 2023 00:58:48 -0700 (PDT) Received: by mail-il1-f208.google.com with SMTP id e9e14a558f8ab-32b532ee15bso157885965ab.1 for ; Mon, 24 Apr 2023 00:58:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682323128; x=1684915128; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rS/fIEMWMpdB8AcMI+Y4zXjURKrKoFUpJdNl7oWNoq0=; b=eUcNcAdOqBigLumqaSePUBt29Q2HkSI7r4O9c3MCO/JSwM2Rz9da5wFQgtyje0Lkpk UWT2+CBxJVYDDcoJZkqVtG6OlkvzRUF/bV45lNe2YI7MCNkjSqedsKuP4/Fxj8vZU0fR hLytH7tLZ0r5ZKRX9SbCYorUHqQ85Zdbvz8na+FoWJSTPOPogHxePtroAQ4yvp5yzJsF KZvNIxaeF7lUVlvznBBFdAeNIcuhxS9coWQ2q00040ZjOFjzBQYI/AmlyBhufVNMc7Mi 3WuMqCk0B2NL8RAwuJKxNHeRX+Fou+fsP7ZPBZhrWHFkskJZW0k+lpsSTTIlQkhcn0+U laqg== X-Gm-Message-State: AAQBX9clCFMWbhLjjy0e2gHm0HPExR5Zg7YUwKflt8piiGb5yZhe42fA uhg8Y7yoIal1n3NE82QbKc6bIRIUJqhG52Q3snd85rVUvS8E MIME-Version: 1.0 X-Received: by 2002:a92:d344:0:b0:32c:b806:d4a3 with SMTP id a4-20020a92d344000000b0032cb806d4a3mr4373088ilh.1.1682323128135; Mon, 24 Apr 2023 00:58:48 -0700 (PDT) Date: Mon, 24 Apr 2023 00:58:48 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000007337c705fa1060e2@google.com> Subject: [syzbot] [mm?] KCSAN: data-race in generic_fillattr / shmem_mknod (2) From: syzbot To: akpm@linux-foundation.org, hughd@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 457391b03803 Linux 6.3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13226cf0280000 kernel config: https://syzkaller.appspot.com/x/.config?x=8c81c9a3d360ebcf dashboard link: https://syzkaller.appspot.com/bug?extid=702361cf7e3d95758761 compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/6438dcb1c42d/disk-457391b0.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/20596c249e47/vmlinux-457391b0.xz kernel image: https://storage.googleapis.com/syzbot-assets/cb715366a3e5/bzImage-457391b0.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+702361cf7e3d95758761@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in generic_fillattr / shmem_mknod read-write to 0xffff8881049a9408 of 8 bytes by task 3383 on cpu 0: shmem_mknod+0xdd/0x180 mm/shmem.c:2942 shmem_create+0x34/0x40 mm/shmem.c:2994 lookup_open fs/namei.c:3416 [inline] open_last_lookups fs/namei.c:3484 [inline] path_openat+0xd96/0x1d00 fs/namei.c:3712 do_filp_open+0xf6/0x200 fs/namei.c:3742 do_sys_openat2+0xb5/0x2a0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1375 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff8881049a9408 of 8 bytes by task 4291 on cpu 1: i_size_read include/linux/fs.h:866 [inline] generic_fillattr+0x13f/0x1e0 fs/stat.c:58 shmem_getattr+0x32a/0x3b0 mm/shmem.c:1068 vfs_getattr_nosec+0x1e3/0x3c0 fs/stat.c:133 vfs_getattr fs/stat.c:170 [inline] vfs_statx+0x156/0x300 fs/stat.c:242 vfs_fstatat fs/stat.c:276 [inline] __do_sys_newfstatat fs/stat.c:446 [inline] __se_sys_newfstatat+0x8a/0x2a0 fs/stat.c:440 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000001644 -> 0x0000000000001658 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4291 Comm: udevd Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ================================================================== --- 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.