Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2997417pxu; Tue, 8 Dec 2020 00:14:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzal7Q1W+L47nch9UERNgojwPpuZMnoQG/no+luNZJzwENjwrdkpfquLmQi4AUXvAu581NK X-Received: by 2002:a17:906:3b8b:: with SMTP id u11mr21871133ejf.489.1607415295188; Tue, 08 Dec 2020 00:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607415295; cv=none; d=google.com; s=arc-20160816; b=FqBxmx07A7Ukc7Dt/xboV92PWVoSm8BlEkK5bfSotxA3+UDGAzhE0xZ8oOc0Y58C92 Uc72Zs8MM75MgK3J++bY1vnaznkTzj8kerlMowfWjevBFOsHp1kB3NuRwub/XMJFzeMl WllMJ9T+2by3e81okMUWSEhhEykFJWcpT2eny2wD634SYyzs9NWbefnbAV1Yux/8mdrK BfHkD7PUBTf8Y/h2Rwe/e84l6by7zAmMfMOSnNMNLEk87ka6UEipfxMhxqKS1mKRml1d JD+Bhr9XolI0XgNBaqegCRHOnqtqGKNm65Pt0O+27nGmzk+hfG07SIVoN5UuBnuB5lLe 65fw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=8wGUeauYQffXI8deK/t5tpiJqZQbKQ3feyEVhMUeoio=; b=KPCl4zB6Q3ry2DVqtFBLFOLvIjRwx5BXlsoyhy3PaTx7/aSP6FfoqZxscEweZ+iv8i EGyBajQF8RssIaZeYLVutgLEMlTST4fnECWrjjqtam83QDDrWFtGKGmwvZFV4tMUx+M4 jAJ3Gt1zlJvW59B0FHCMrRcRW2zz9wnf8Y+ruGVgAYpOlvmZ8ytoqrGWV8zf23bzdPj5 JfNQB/VEkmld0/uY0Erm7bv3UDtujQxwEwN+S3AlUvMxDfUqg/dr+HZeMnkfMDIM9Rmo mTMayPMlW9r9F7Zm9el3qtesDK/r8R1Qt+PRAaaRlaH5DLP7OeMWe5YnLgoYoqraUhjN wyxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=UEP2qNx2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si4154232ejk.316.2020.12.08.00.14.32; Tue, 08 Dec 2020 00:14:55 -0800 (PST) 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=@infradead.org header.s=merlin.20170209 header.b=UEP2qNx2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727439AbgLHIMU (ORCPT + 99 others); Tue, 8 Dec 2020 03:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbgLHIMT (ORCPT ); Tue, 8 Dec 2020 03:12:19 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BAEDC061749 for ; Tue, 8 Dec 2020 00:11:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8wGUeauYQffXI8deK/t5tpiJqZQbKQ3feyEVhMUeoio=; b=UEP2qNx2yuGrgBZuyUqqIknCDM bunAcbBJmvpuvxgrv4RaBxQlYji19+2pO7V9vqrV+lyA236b34edtdd6ev/43ZJXnoGUS7KQcOxXI gGhCIDw/DJISC2r0k64rbr6bRG8asqyKv5TkCjLdpj5VYhCaUUBZLO+pK3NUrNqHrEVmx7cadj9Fw rvQKg/4WxlRRcSOCOd6nDH5ABfvEMEQnJc+82eWYaBWtIE4IDMFpQ53RyAoQagdd/QzQM9FFIPy4b mILUSeiWH6r3TlM6yCx58S7T/hVU+p8cHuhUbPOTewoTF65iXUfawV8B8ErVXrecd4iVmSV932Dp8 gI0CeVKw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmY5r-0004Vv-5b; Tue, 08 Dec 2020 08:11:31 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D6347304B92; Tue, 8 Dec 2020 09:11:29 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BA68B200AABB6; Tue, 8 Dec 2020 09:11:29 +0100 (CET) Date: Tue, 8 Dec 2020 09:11:29 +0100 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Marco Elver , Thomas Gleixner , LKML , kasan-dev , Ingo Molnar , Frederic Weisbecker , Will Deacon , Naresh Kamboju , syzbot+23a256029191772c2f02@syzkaller.appspotmail.com, syzbot+56078ac0b9071335a745@syzkaller.appspotmail.com, syzbot+867130cb240c41f15164@syzkaller.appspotmail.com Subject: Re: [patch 3/3] tick: Annotate tick_do_timer_cpu data races Message-ID: <20201208081129.GQ2414@hirez.programming.kicks-ass.net> References: <20201206211253.919834182@linutronix.de> <20201206212002.876987748@linutronix.de> <20201207120943.GS3021@hirez.programming.kicks-ass.net> <87y2i94igo.fsf@nanos.tec.linutronix.de> <20201207194406.GK2657@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207194406.GK2657@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 11:44:06AM -0800, Paul E. McKenney wrote: > Also, in this particular case, why data_race() rather than READ_ONCE()? > Do we really expect the compiler to be able to optimize this case > significantly without READ_ONCE()? It's about intent and how the code reads. READ_ONCE() is something completely different from data_race(). data_race() is correct here.