Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp884640ybg; Fri, 18 Oct 2019 08:46:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE493QC2k9rUhediZsOtYVXfh7XNoz2drdzuG44eRLOwnqH+dBnr/ZtP+4243L2hdNseLY X-Received: by 2002:aa7:d8d5:: with SMTP id k21mr7410654eds.286.1571413616701; Fri, 18 Oct 2019 08:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413616; cv=none; d=google.com; s=arc-20160816; b=pcHIX/t+XBBfj1ODxMFHe3X0pg1pD2OkDrS25oUUqQXkojC0i38CJncaeW3+aP+Qtm EVOyZiQP4ieeAwirAbBwclSpSOPYNfY56YALI7uZgvy4dcnNF+j2g5n44q7b7jcvhUkX QpJq/MeARYrY9tK4+nTGibiNvXW6RBbBFH6XUtr0fBBJIVCzBte20W57/aB3PlR/DAW/ +GTiCZfq010sip+N6Hfl+y5AUm721VgUT+TDvqv6Ei4cnTu+zpHGBu9M2XQ/00E1UN6J G7TM38W/9sEMp8Lz6eBN+OiYPEeFG4MeT9a8aJ2fJtfKSQqYBQ+QRnzpHbXOkND6lWct 0N9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=5t4yqDt+mBIkGJEjjJGiGmX6FdFp97lRinnPxkeZsbg=; b=YgcWqo0U6W1vt128h5cHg5GXSuRQk2g6mLWbxHKPzXmu7MfXT1XBRPREmN8vcg4whi bH8VJVgh/7wlkmHr2WQUH6HeIhGBsPIhDrkMUZBMM6gFB6bKi5MDREK+rbyUbQhDDBGk 3sxCdzGzL265uS4B/+xDlzpPvTOEPzHl6WeajI1zWvrmziBDWClP5nFuYgMNkypLT9G0 rpxSF1f54oOwFT46dfuKR7Uzd6Oo74yiZ4kb/hdB0gHjqg1qttYXxI6JTLLaM6LAJBjz YcEDdFJXjNnibW8hz73aC1virTbL7U7KfunI6KtUzygE7WuLA1LEuUjs7cZJMZlIJk/F V+PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19si3582066ejw.373.2019.10.18.08.46.33; Fri, 18 Oct 2019 08:46:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2502458AbfJQMgJ (ORCPT + 99 others); Thu, 17 Oct 2019 08:36:09 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:43172 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502451AbfJQMgJ (ORCPT ); Thu, 17 Oct 2019 08:36:09 -0400 Received: by mail-io1-f70.google.com with SMTP id i2so2997221ioo.10 for ; Thu, 17 Oct 2019 05:36:08 -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=5t4yqDt+mBIkGJEjjJGiGmX6FdFp97lRinnPxkeZsbg=; b=fedkuiiFuS6gy8VyOM9grTgA/rkDVEr/45AfsvHcYNrtpOMAFQc/3qk6LNzpDSiQaH dBwGbDJbr4zICwnXkf4SocN/CJoqzjt10XJGvW2SxsRVCuAKFd0ZsMARL0Jyz/6RQLFr XCGJ4AVEQehoe4g7Zf4Js9YL957y3o2TvSuGpw2545CBSQDcLm8Q2h/LjIghYSj3rjyx F2S3iPsovkfcvO6g04xYc4MapCnK0HeNOjtlG1D/1p4HHCChTPCSLhBT1GyuY25S/2JN 6Yctnf8yq5UnwK+ORrIOr2Ijh71k/8+qymavH6SJfCrX0YmlxFlG4b14uR02+jaG5DJz t2aQ== X-Gm-Message-State: APjAAAXzGw4Dnz4WaR1PgpnXb7gWWKF2wTwYuwV/n1jEZITT3yy2xcOo Z5sE3OcurCAgaM5AJSXJkiluyJH2MfXuES8eDRqbonDphuT1 MIME-Version: 1.0 X-Received: by 2002:a02:bb01:: with SMTP id y1mr3062982jan.117.1571315768264; Thu, 17 Oct 2019 05:36:08 -0700 (PDT) Date: Thu, 17 Oct 2019 05:36:08 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000328b2905951a7667@google.com> Subject: KCSAN: data-race in task_dump_owner / task_dump_owner From: syzbot To: adobriyan@gmail.com, akpm@linux-foundation.org, casey@schaufler-ca.com, christian@brauner.io, elver@google.com, keescook@chromium.org, kent.overstreet@gmail.com, khlebnikov@yandex-team.ru, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mhocko@suse.com, shakeelb@google.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: d724f94f x86, kcsan: Enable KCSAN for x86 git tree: https://github.com/google/ktsan.git kcsan console output: https://syzkaller.appspot.com/x/log.txt?x=17884db3600000 kernel config: https://syzkaller.appspot.com/x/.config?x=c0906aa620713d80 dashboard link: https://syzkaller.appspot.com/bug?extid=e392f8008a294fdf8891 compiler: gcc (GCC) 9.0.0 20181231 (experimental) Unfortunately, I don't have any reproducer for this crash yet. IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+e392f8008a294fdf8891@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in task_dump_owner / task_dump_owner write to 0xffff8881255bb7fc of 4 bytes by task 7804 on cpu 0: task_dump_owner+0xd8/0x260 fs/proc/base.c:1742 pid_update_inode+0x3c/0x70 fs/proc/base.c:1818 pid_revalidate+0x91/0xd0 fs/proc/base.c:1841 d_revalidate fs/namei.c:765 [inline] d_revalidate fs/namei.c:762 [inline] lookup_fast+0x7cb/0x7e0 fs/namei.c:1613 walk_component+0x6d/0xe80 fs/namei.c:1804 link_path_walk.part.0+0x5d3/0xa90 fs/namei.c:2139 link_path_walk fs/namei.c:2070 [inline] path_openat+0x14f/0x3530 fs/namei.c:3532 do_filp_open+0x11e/0x1b0 fs/namei.c:3563 do_sys_open+0x3b3/0x4f0 fs/open.c:1089 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x55/0x70 fs/open.c:1102 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8881255bb7fc of 4 bytes by task 7813 on cpu 1: task_dump_owner+0xd8/0x260 fs/proc/base.c:1742 pid_update_inode+0x3c/0x70 fs/proc/base.c:1818 pid_revalidate+0x91/0xd0 fs/proc/base.c:1841 d_revalidate fs/namei.c:765 [inline] d_revalidate fs/namei.c:762 [inline] lookup_fast+0x7cb/0x7e0 fs/namei.c:1613 walk_component+0x6d/0xe80 fs/namei.c:1804 lookup_last fs/namei.c:2271 [inline] path_lookupat.isra.0+0x13a/0x5a0 fs/namei.c:2316 filename_lookup+0x145/0x2d0 fs/namei.c:2346 user_path_at_empty+0x4c/0x70 fs/namei.c:2606 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0xd9/0x190 fs/stat.c:187 vfs_stat include/linux/fs.h:3188 [inline] __do_sys_newstat+0x51/0xb0 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x3a/0x50 fs/stat.c:337 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7813 Comm: ps Not tainted 5.3.0+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.