Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1460771lqo; Sun, 12 May 2024 03:43:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJSmW5JAxgLPPYlqBwXw/jgKlZZedFzl+Fhk8x+bqAFotU+3eHJq8Nl4HFtoXkc57gGtMzGZSGygWPCQttkm4rwaJMmy+WKgAeX4t5EQ== X-Google-Smtp-Source: AGHT+IEPwNRmx6m87y2u8C6CkHCUc2yculqOnKra/YKfz3EHrtMGR4LKAmzy+WCoONUXO1A3a/RT X-Received: by 2002:a05:6214:5a08:b0:6a0:b594:177e with SMTP id 6a1803df08f44-6a16825a4b1mr72714056d6.57.1715510615631; Sun, 12 May 2024 03:43:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715510615; cv=pass; d=google.com; s=arc-20160816; b=XSgGceHxkil4UQ3QTNhsn7o7N6RRBIhPAfxHLhdmyMxi2x77+oAI1AfVm925lGwfwJ mwigRjuSVpIlDBCQxmBzmW70P/tnrizIYj35GMNTFGKM1z39Ec2JBTuEFQz2qfU2iszj gnS6mHecN4sa16VZiEvhBW4kArnZ4NazFyJn1Ot9B4kzhCk/Oa5Ost1lnlvgCp3MzoWF qI9l2shJ/KUpgV6V2tGDmAhoIvxg5JSwq6sTPyu+Gz/jAuLbfix8ooUUjnMKJgHv7VHw rrW6cfGf/iwbbicmVduacteXqHVdyG1U6KjlsxNblkinffYqi5bl/HCgGT9lHx8oHoOh RIOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=oxrgodSSTuZswJnNY6k+AyI3wOxNGvPqyHgv829oWBs=; fh=LMiQG8eTLzf1SyU4W+POK32JVDLYXD5v2M9mE6EPfzs=; b=zP9ppqX8XmCuCszlf4sdxeLczpPwH0VZ6kNtNXe9XVXgyX9gBg2UcscnEN2dxj+CSL vfjIb+Kw5gAcj3q9dqosH/QJ1yapDyjmgP8E36hzNbiK3VLp4QbEkMvdiW3rOOqOhVqy /DpRLVExypb2EBNo9KLj2t6ma21+NoRQmQU2uqut94o8SBm9AM/JDWw0pnIpPwbgW3ml VtXFvwSZgyetMjorfCcEnFOjWWNM8PTi5dy8orhKhfolYWPYIK+BfYxJkTSVX75IMaRj 62isVrtbwm/4jWNoqbDiM6kORGg3c4yZsZOWGlyhereWGSF8v9TbRo6r8D3oIixpvPVY 2M8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MTmTlvW2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-176853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2ee890si53214216d6.497.2024.05.12.03.43.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 03:43:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MTmTlvW2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-176853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5721D1C20901 for ; Sun, 12 May 2024 10:43:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0CE01CD29; Sun, 12 May 2024 10:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MTmTlvW2" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48A721CAAF for ; Sun, 12 May 2024 10:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715510608; cv=none; b=hL10Bk8A5WXsTAhWoEnr5XYqjvFZdbqnU2xAXONtJQe8KmgYqM4emh/bcuGsVGqeBzFT+Tgo8y2apmtdM4zzPv9U6hklvfnQAJwr9Q3gpuFH8oehrqf5P4uo/9k7qqhiHuurpfeEUkDnirDObPr2TiEBBXcBrcyOmaUzI6uUkcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715510608; c=relaxed/simple; bh=0rdr5+9oRPkVDvU6kbrzwQtN/Z+LPqctRKzqAJ8FT6w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=khBrVenHodJnlEI1R9/ICKCteQR66KldH54yF1Y5tcpWkDv3NXtdANnmG9NZ2uwFcfiGZ9N+TDQ95JuQPWGQj5MQ/QpL/t86Al+ZzkFbc8iqZzn4QE1+zh56hFMHyh5ztWVdPOwCbybiefTcsaSOpMSjs+5T8OPrb4SzKTIa/oI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=MTmTlvW2; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715510606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oxrgodSSTuZswJnNY6k+AyI3wOxNGvPqyHgv829oWBs=; b=MTmTlvW2txlpc8nQCGdMXtpYUsEiRTbAXx3m1ZLDX+Nbowdjd6+JhsmMLvzgFRiJ3Wl48u MwGehcJ6CZzs0p77p1OtIZQUoCjdeS64/WKhS9Tf5mBn+ZMSKyLaXCulNMTxmqk0vswsZC +gFgQV5WjWy4ygIZpMJc2+WHOVC3b4M= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-303-ckBUExiOMliF3DcwR5UIXw-1; Sun, 12 May 2024 06:43:22 -0400 X-MC-Unique: ckBUExiOMliF3DcwR5UIXw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CE33F8030A4; Sun, 12 May 2024 10:43:21 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.31]) by smtp.corp.redhat.com (Postfix) with SMTP id 0DEA7492BC6; Sun, 12 May 2024 10:43:18 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 12 May 2024 12:41:55 +0200 (CEST) Date: Sun, 12 May 2024 12:41:52 +0200 From: Oleg Nesterov To: "Paul E. McKenney" Cc: "Uladzislau Rezki (Sony)" , RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker , Peter Zijlstra Subject: Re: [PATCH 25/48] rcu: Mark writes to rcu_sync ->gp_count field Message-ID: <20240512104151.GA7541@redhat.com> References: <20240507093530.3043-1-urezki@gmail.com> <20240507093530.3043-26-urezki@gmail.com> <4c9e89b5-c981-4809-8bc2-247563ce04e9@paulmck-laptop> <20240510131849.GB24764@redhat.com> <20240510135057.GC24764@redhat.com> <474ae55c-fe9e-4668-8f9b-23f819c76d10@paulmck-laptop> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <474ae55c-fe9e-4668-8f9b-23f819c76d10@paulmck-laptop> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 Sorry for another delay... On 05/10, Paul E. McKenney wrote: > > On Fri, May 10, 2024 at 03:50:57PM +0200, Oleg Nesterov wrote: > > > > I can only find the strnstr(buf, "rcu") checks in skip_report(), > > but they only cover the KCSAN_REPORT_VALUE_CHANGE_ONLY case... > > Huh, new one on me! When I run KCSAN, I set CONFIG_KCSAN_STRICT=y, > which implies CONFIG_KCSAN_REPORT_VALUE_CHANGE_ONLY=n, which should > prevent skip_report() from even being invoked. > > Which suggests that in the rest of the kernel, including "rcu_" > in your function name gets you stricter KCSAN checking. ;-) Yes. And that is why I was very confused. I misinterpreted the "stricter data-race rules used in RCU code" as if there must be more "rcu-only" hacks in the kernel/kcsan/ code which I can't find ;) Oleg.