Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp512788lqo; Fri, 10 May 2024 06:52:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVY8V8BustxD/4YoOLkQpVz2oXPc1WA3u0oODxRJhvRPPsRy+8Dqy+uiHHkqzRRJ7XNO+bKGIbXzktUXQ6aNcklHP38HgYzeC+sMO2Ejg== X-Google-Smtp-Source: AGHT+IFAmU+qXvbu5ZG3A8PLHKOsT/dSOpdcFdYRU5miKWcg3NHmtCZdhAwqzuDIsvAtRjlmLmLu X-Received: by 2002:a05:622a:559a:b0:43a:f007:a476 with SMTP id d75a77b69052e-43dfdb1ee36mr26517231cf.2.1715349176616; Fri, 10 May 2024 06:52:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715349176; cv=pass; d=google.com; s=arc-20160816; b=i+JwVmfzlGTqx9wLW5baVx7w8xS2LG96ia16kkgDkgJlQE5tbTveOMrdqBA6QOqR6b hu0a8R8C5eptKUpAWAMbV9f2M//NAUgkrN6oH9nEh4q1BIvxfv2UFzxm1Y5YBi4J/9CR PBQ23m3thHQPxDFkf23yMIxkAEVF7uWt+yd3akhDuimMgEg2e5jtliTtkRvcRKTgcLNE lvG/ydOgUqFNiCHVn2x7mzb/yVoGIVHtSABMG4orqXrbmmpXqR0AlUqP3DaI4Ehv1VR4 lNxWIMM9z8XQfoSxI3mUWpiFsn1uXF4I+7ag5GVhN+MxlwlxmVmEiXajdpJZdDVxV9mk lR4g== 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=8WQKOarhlV+n52hs+H1jjdRUk7esOoGpFkk8kHxEvRo=; fh=LMiQG8eTLzf1SyU4W+POK32JVDLYXD5v2M9mE6EPfzs=; b=prGnGdRkinIqlf1OLm6EeRtsuIrXPkN1p4AbhjBA3kVcsPy27HxS6DrECz19FmFI4g zqRTlLTWitbcvGKAEyqC+PfUEV4fKO9bnkOmL4SgF2HFVj2v1Fe4rEH9kYRHKo9JChdp Fmb9k8zCG5fRV3up6FU5HuAO6V0Fg33L3VYzMBgEOPgbWgnxyCv9TiE5jHhZw0xfvDCj ByU67LHzQAGXUoa7t2z2dv0kQ9qZ4RQ2rB4bZcH9qugn9W2cEMgMctkmJNmB9g30XV4r mzLWIuayhYnA1hDhWWBbTn6wqrNMkX7fMrWVkqdT4OFpMvwfrl0vQvhe05VQcHKl8Fv2 LvUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HLbacjPM; 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-175844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175844-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56f8f7asi37150461cf.801.2024.05.10.06.52.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 06:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HLbacjPM; 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-175844-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175844-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 A042D1C213EF for ; Fri, 10 May 2024 13:52:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5194D12C7E8; Fri, 10 May 2024 13:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HLbacjPM" 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 384BB12C539 for ; Fri, 10 May 2024 13:52:30 +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=1715349151; cv=none; b=CBeJCcM/LfEoGMliWUx3ZBvPWucW3xj/1sIB1UmprULhjhWfIZL8IHuDNfJ2NwuSd/hzJY4Gl2hTWqSR7KKGr4QF5q7I74+UwjF/mNK+X9lhk28G62gQlAEbJSSY6QDd5aZbR0R2w0FpB/Ka48wlYZQPVRk0ZTfk9YjpY+m3uWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715349151; c=relaxed/simple; bh=8WQKOarhlV+n52hs+H1jjdRUk7esOoGpFkk8kHxEvRo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iFCt9NHNhRyiLNQZ+18izh99y/znLVc6FuGChC1iC/UbZ18Dw4M52Xc49uqQE0XGoA8dyt+/uPHWGe+I7d/ckwZihb0pyxD/jZ5rST24+i7V+WLrgxxiphNIjyZTSupTxZmr9EOxpPg9C2NiJ2vqizP3O6NQW0Dfol2gGXxYsNg= 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=HLbacjPM; 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=1715349149; 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=8WQKOarhlV+n52hs+H1jjdRUk7esOoGpFkk8kHxEvRo=; b=HLbacjPMQqrnFIZLRGVmCsiGs4JFVWCSX6ukQc8VfC891AueadFjDqu1OSzagAKJUrrdDR GgXhnCZY03z85vMl9wfYINP89HzElPKhLsZXf/GzlyJ6bVCAs44PEdaoZIersWqOZt5r54 9GQsQKC0qqmDouRTP9L/f7Emenok6s0= 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-487-AV0Th6AeOAm7wyofLfpVvg-1; Fri, 10 May 2024 09:52:26 -0400 X-MC-Unique: AV0Th6AeOAm7wyofLfpVvg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 5CA13857A81; Fri, 10 May 2024 13:52:25 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.225.196]) by smtp.corp.redhat.com (Postfix) with SMTP id 22B35CF5E1B; Fri, 10 May 2024 13:52:23 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 10 May 2024 15:51:00 +0200 (CEST) Date: Fri, 10 May 2024 15:50:57 +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: <20240510135057.GC24764@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> 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: <20240510131849.GB24764@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 On 05/10, Oleg Nesterov wrote: > > On 05/07, Paul E. McKenney wrote: > > > > By the stricter data-race rules used in RCU code [1], > ... > > [1] https://docs.google.com/document/d/1FwZaXSg3A55ivVoWffA9iMuhJ3_Gmj_E494dLYjjyLQ/edit?usp=sharing > > I am getting more and more confused... > > Does this mean that KCSAN/etc treats the files in kernel/rcu/ > differently than the "Rest of Kernel"? Or what? > > And how is it enforced? I can only find the strnstr(buf, "rcu") checks in skip_report(), but they only cover the KCSAN_REPORT_VALUE_CHANGE_ONLY case... Oleg.