Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1520513pxb; Tue, 26 Oct 2021 10:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdvUBh/TdjOEYVinLzNuUgN7MxOqsOYsKkRPTbDqsbJoUjkMzH+PUJWeMpbmSsxYBjZrMe X-Received: by 2002:a17:907:1622:: with SMTP id hb34mr18724192ejc.8.1635269356083; Tue, 26 Oct 2021 10:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635269356; cv=none; d=google.com; s=arc-20160816; b=rWNiQrbvCUwBZfDFAHsZ9Dm5Wt1T2+Vy7PFXqZZF2+mP2GOUYo0Fd9yH+I2z9RyZGQ M55tUu88zTdFxv+mOStVU/k0wWqVRP+CdnAS/9DnhWpGAAmzmEjIOTbzLhT5yMLhsOQp A4CDNDKLQrdhWovV0VdJk6Z+b2lGqp1Mgcm4mtqDEj+6IwYlagerUSmJ891v/pEGwKOU /e0T2kKFcSnTkZF2C/0PynGaQGGbBlBW+BEXC2m6erlm2ykEyhaS41lv/vm4sBBnnbnd EK2EK/KysV9mqi2y0TRPVgcs8GiA9L/1kR177ktMqYLQO6VUisf7AoV9tcBSweDJGql6 mB4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kSXgXNYB7yP23WOgiOEcx1g6VJZwUc5yfjuSCuUHIZE=; b=MlCT0aTYf2NejWjcWQnVy41HjMk0L1fWaekhGZaFoQw6dYglvVgpUShFZ28HpXkUe7 +4DzSUM254AB05ElW2I8k3p5xTj3vDDnip/vB2uKkdI3iepwH3s5aopJXixMWL6LxsBa RAOisqrgotCfSNc+2DFFVsCEhgbsF0U+klF7zmOvGIV7rUugh7x9X/xIFjB88k6IL32z ejbQ4Ba/3c+lnuaxDnUeUBrcaguXAL6eQfVvRHatoV/BBckcevvfdayv+pCUuevEjGj7 7CwP7VZwNlWGehlVhZxD1j9sY//2oF0nypbEXeFkPRVOqqhMQR23ixenprC8kj4uEIiy RTnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yq0yxR/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si14559545ejb.316.2021.10.26.10.28.51; Tue, 26 Oct 2021 10:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Yq0yxR/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236355AbhJZOJz (ORCPT + 99 others); Tue, 26 Oct 2021 10:09:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:39826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbhJZOJy (ORCPT ); Tue, 26 Oct 2021 10:09:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8FD6160724; Tue, 26 Oct 2021 14:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635257250; bh=mKDe8VTb6Q3vAd+t5QlksG2XhwXHK6LoP4mZeCrxuyI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Yq0yxR/ggCiOSuu6fzCPVUvK4q6Sk+0WTNW+9zY++3lBjwHAp2MgvDj+5HEF0McjG mRo+efKMC/Nd8kbthHQMa6b4BRtwPXdOoOnM4UdGyW88kW3ScG+5qRp7eX2OMG2EMU hsqYkyPHeKvTiCAhtGs5xL/8sBbQIX0tsA47RGMeKCGE0nDiNCapWtyF0emvTqp8B3 4IIL5K4gyVO03BeBySDlLH+0EqYLQukb+MGgnc4GRO0nFtEEB1Xal+JgVQ+s2cXsqf eLi522mUQa5wCj7PE7/YN5ZBpMsOIMc/rd4vAmkgp3XxCNktMhEEy2vHJI8BORDqBH PtuOp+RfPWEAA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0348A5C0D48; Tue, 26 Oct 2021 07:07:30 -0700 (PDT) Date: Tue, 26 Oct 2021 07:07:29 -0700 From: "Paul E. McKenney" To: Marco Elver Cc: syzbot , rcu@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Subject: Re: [syzbot] KCSAN: data-race in call_rcu / rcu_gp_fqs_loop Message-ID: <20211026140729.GW880162@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <000000000000ddb95c05cf2ad54a@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 25, 2021 at 12:31:53PM +0200, Marco Elver wrote: > +Cc Paul > > data race is in rcu code, presumably not yet discovered by rcutorture? Quite possibly, and I will take a look. Thank you for sending this along. Thanx, Paul > On Mon, 25 Oct 2021 at 12:29, syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 9c0c4d24ac00 Merge tag 'block-5.15-2021-10-22' of git://gi.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=159c4954b00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=6339b6ea86d89fd7 > > dashboard link: https://syzkaller.appspot.com/bug?extid=4dfb96a94317a78f44d9 > > compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.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+4dfb96a94317a78f44d9@syzkaller.appspotmail.com > > > > ================================================================== > > BUG: KCSAN: data-race in call_rcu / rcu_gp_fqs_loop > > > > write to 0xffffffff837342e0 of 8 bytes by task 11 on cpu 1: > > rcu_gp_fqs kernel/rcu/tree.c:1910 [inline] > > rcu_gp_fqs_loop+0x348/0x470 kernel/rcu/tree.c:1971 > > rcu_gp_kthread+0x25/0x1a0 kernel/rcu/tree.c:2130 > > kthread+0x262/0x280 kernel/kthread.c:319 > > ret_from_fork+0x1f/0x30 > > > > read to 0xffffffff837342e0 of 8 bytes by task 379 on cpu 0: > > __call_rcu_core kernel/rcu/tree.c:2904 [inline] > > __call_rcu kernel/rcu/tree.c:3020 [inline] > > call_rcu+0x4c0/0x6d0 kernel/rcu/tree.c:3067 > > __dentry_kill+0x3ec/0x4e0 fs/dcache.c:596 > > dput+0xc6/0x360 fs/dcache.c:888 > > do_unlinkat+0x2a8/0x540 fs/namei.c:4172 > > __do_sys_unlink fs/namei.c:4217 [inline] > > __se_sys_unlink fs/namei.c:4215 [inline] > > __x64_sys_unlink+0x2c/0x30 fs/namei.c:4215 > > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > > do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 > > entry_SYSCALL_64_after_hwframe+0x44/0xae > > > > value changed: 0x0000000000005c0d -> 0x0000000000005c0e > > > > Reported by Kernel Concurrency Sanitizer on: > > CPU: 0 PID: 379 Comm: udevd Tainted: G W 5.15.0-rc6-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.