Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2252044rdd; Fri, 12 Jan 2024 04:16:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeJ/q5kCHuBeJ2OfFi5g/rHgGpj3kre3Yimy4l1Mow/xmmG4FB1HBWdUnpzbrNinVq9GsX X-Received: by 2002:a17:902:d2c2:b0:1d0:6b95:9c06 with SMTP id n2-20020a170902d2c200b001d06b959c06mr883065plc.16.1705061762003; Fri, 12 Jan 2024 04:16:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705061761; cv=none; d=google.com; s=arc-20160816; b=Y4BlL0X6Qp69/NM6KSTEKiHUvz1bNivebVUTOplJWT/8KDe+q7rCaNy+RGB3uk3KM+ 4TNIWFxI/e33qwAb3UckTGRL0AKxMeehf1oqKLrDt6bFx+dsKtSsuv5rS7VxT96UulwD KvS6p0PbfiFZxT0plPoP9wGoVarHDQvIWPLwv8G44idft55t4v8mvRFq0RCo6GDP6eOC pP5pWj6RcTWYVwt5lkewAIDHsVfy8xIS3q2fiYfJgpZOk6HprtYsBMnmm+gw0vyWbLi3 w+QX2Mh7BOvvPvOn0GJbBYZSXehq6nIQj8+W195WV8KVfRF/LXqfIZsljYfedvN3kgY/ jedQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=RLyu8OYx/lgkSTUNcQotYLzdGR9H05vFzQRSe8WTCWk=; fh=F2DLLDKHfYzbfY5NXex5LFhm2q1M16hdf/J5guMGEhU=; b=xxr5wT/mD5yqJbS0kKglWqZnr33xyx30gjXQ8GtPAdPk2KZ6B5mzK7tJpdOapYFHio O+6c9X83NNUSNI9Q69dhhKxoIIgK/InCYPQOQKzxYPkiYR3RY2HFlrKw2dNKpKFup6/R yWYZAAixe4UZONB+uxgPseQ+fFBFgPPstmp6PV53GB7PbsBXonE7sn6G17E/usOZT+Kv T97xu1RJ3nlzjfjtKqDSPfT5Gbb/3X+4OhoRJqoX78/QQnOANQKpORwnZ7KC/i5xiepw rsugPmoWBiYG2tFxjpawEXUdaFg3aqA2Z8eCl8tso6KBfR+v4NPp01AVVqc6zpqgixVp SrtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s17-20020a170902ea1100b001d495d6aeeesi3472399plg.336.2024.01.12.04.16.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 04:16:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-24642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7CE41B23ADE for ; Fri, 12 Jan 2024 12:15:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02E926A337; Fri, 12 Jan 2024 12:15:30 +0000 (UTC) Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2854E6A327 for ; Fri, 12 Jan 2024 12:15:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f199.google.com with SMTP id e9e14a558f8ab-35fffb6fe5bso55293285ab.2 for ; Fri, 12 Jan 2024 04:15:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705061727; x=1705666527; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RLyu8OYx/lgkSTUNcQotYLzdGR9H05vFzQRSe8WTCWk=; b=puZjPR1YkNxNV6zgPlDKe1RW+7yX/G8jpKokksv5aQ6Q1zoxqJH09S3n76qrCih4gN 0U7Ft4/mfMnCI4qZsElIfTO5ZbJjAS7XmgV/dMCnyDwH9c1MjxA2ncwRD2Pvt1PcIYmJ twppjrq9ZfoAAot/ZqvM4//aaqcw7Evx9l3saqzALQGsG9E4otXRTFc6fKYhPI4VRt82 eimYw4l+z6MtW0/saRwdvXeMytZlafxhEpD8uGBmfFfyRfz2I1I7PS2mvJnG5cYVFjRH S8A5jjz02+5b+KtwDBGA4otJkNparfbX1ycJOxKAVkK/IIJRROmhEzQjJ9cchbdVKsMB ARCw== X-Gm-Message-State: AOJu0YyoPFMTWRjVIvHYSyMmOa0FbtictFPxlUwhbQ+damxVNhMXrJxG qvRHi1mpw4Xmytx54tWqwVvRi9ScyyZ6gtTrQzdPlwuU1qLf Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1d87:b0:35d:61b6:c776 with SMTP id h7-20020a056e021d8700b0035d61b6c776mr119716ila.0.1705061727448; Fri, 12 Jan 2024 04:15:27 -0800 (PST) Date: Fri, 12 Jan 2024 04:15:27 -0800 In-Reply-To: <0000000000007337c705fa1060e2@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000095bce3060ebe9e97@google.com> Subject: Re: [syzbot] [mm?] KCSAN: data-race in generic_fillattr / shmem_mknod (2) From: syzbot To: akpm@linux-foundation.org, dvyukov@google.com, hughd@google.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, penguin-kernel@i-love.sakura.ne.jp, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 70d201a40823 Merge tag 'f2fs-for-6.8-rc1' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16e391f5e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=31b069fcee8f481d dashboard link: https://syzkaller.appspot.com/bug?extid=702361cf7e3d95758761 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=147a56a3e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/4446464b507c/disk-70d201a4.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/578f39e16cac/vmlinux-70d201a4.xz kernel image: https://storage.googleapis.com/syzbot-assets/5fffd404e095/bzImage-70d201a4.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 write to 0xffff88810427aa10 of 8 bytes by task 3467 on cpu 1: inode_set_mtime_to_ts include/linux/fs.h:1571 [inline] shmem_mknod+0x132/0x180 mm/shmem.c:3259 shmem_create+0x34/0x40 mm/shmem.c:3313 lookup_open fs/namei.c:3486 [inline] open_last_lookups fs/namei.c:3555 [inline] path_openat+0xdc2/0x1d30 fs/namei.c:3785 do_filp_open+0xf6/0x200 fs/namei.c:3815 do_sys_openat2+0xab/0x110 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1430 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88810427aa10 of 8 bytes by task 3068 on cpu 0: inode_get_mtime include/linux/fs.h:1565 [inline] generic_fillattr+0x1a6/0x2f0 fs/stat.c:61 shmem_getattr+0x17b/0x200 mm/shmem.c:1139 vfs_getattr_nosec fs/stat.c:135 [inline] vfs_getattr+0x198/0x1e0 fs/stat.c:176 vfs_statx+0x140/0x320 fs/stat.c:248 vfs_fstatat+0xcd/0x100 fs/stat.c:304 __do_sys_newfstatat fs/stat.c:468 [inline] __se_sys_newfstatat+0x58/0x260 fs/stat.c:462 __x64_sys_newfstatat+0x55/0x60 fs/stat.c:462 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000366f1c62 -> 0x000000003707b2e3 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3068 Comm: udevd Not tainted 6.7.0-syzkaller-06264-g70d201a40823 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ================================================================== --- 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.