Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2746247pxu; Mon, 7 Dec 2020 14:42:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzHSrROHBgY+wScTvG7/A8IY0IjjEu0Zzgcs5VS7PC9JBDdV0hgxOgyxZHLprMakKb5Icns X-Received: by 2002:a17:906:2602:: with SMTP id h2mr20494793ejc.358.1607380964004; Mon, 07 Dec 2020 14:42:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607380963; cv=none; d=google.com; s=arc-20160816; b=OksyKDSGZFjNoCKDpFctRl2VUskh+p7UJqQpbJaXJKwV4uQe5shkKtLzjeU24u+wcv /sMODkUWk4RUAut4bNtifcgql3QXy2yDufd3UhketOh3/yU/YuVtOHNS6vzphT21SwXs 0IdW5mMaJFyUoNBpEbILEfwKu2KOjUhYNJ42R4KYkolFytGQ1YEBsxUhKq0YoL+xtv5J CPG763QEqKx+oD7AUsKrwIYrsmhtnDMa8N93EOwI6jNO83EXxWQI4nGrqGQlc5RdGdrH lsYTfw3hLvOvy6f3rweXnyw+W1sRzjWl5lA8rsjScec8c6mi0meaFJ1u+XDKitJJN4pM Aprw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from :dkim-signature:date; bh=d/PFNnH7cOKcF3pr4HoMA4sYrNTV0HPj+9NhuZH4bL0=; b=fjSc0axsvyR5NuULSac20UnCtjcAKuxOmljonuwmzRo11gs2wMM77lG9+7KHeSy7Pw liRBQdHsIq1FUdkdos02lXEx8LMcdfiYX6UFa9702bMBPcsyVTOjYIhcyRDb1G20EaON IeFPcFVIs2vytKWnagPdGVJyx+a1Z09nM1TvkWXZP5SjFcHhJGSSx9ch2d9TF/gwlT4c BAajwI9X8HBs58OSG8MFwyFhYZx5XemiHTQzc/NI106cTMQU/C6PZlU2ctjGWLnwnkKP OXrZJKlXver2ik5H0TOr1i8OSn+vT4+4Gq84BW98T5gEN9bLrkJdOXWQ9osK70HLsPcC 1RDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HG3baAYg; 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 b6si8914767edn.50.2020.12.07.14.42.20; Mon, 07 Dec 2020 14:42:43 -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=@kernel.org header.s=k20201202 header.b=HG3baAYg; 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 S1728117AbgLGWje (ORCPT + 99 others); Mon, 7 Dec 2020 17:39:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:35936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728110AbgLGWje (ORCPT ); Mon, 7 Dec 2020 17:39:34 -0500 Date: Mon, 7 Dec 2020 14:38:53 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607380733; bh=0FDK3sfRhL+zaCimlzL6gWXaPTiTkLgCI5cm5rzO33I=; h=From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=HG3baAYgR5MpiaDHZfbjKVVCuFNnEXlCqIiwsb4qyS7jISjL/9zwELeEdbseQt+lS rw40lySCD0RSluP3xdnF5DeGImS0VASeWOHEHKCH9zPIFbxUk3C3gpzqLDu4onN+Co 0H2vkWNVhvgcLcWXvXEeHW/HOYVbAMEXplM2OrUQO8FoOcHi7G6Dn0xG2U2VHuLhy1 Ild+FW59BZHtMoG58aphwCqNAMuoS5UA9nn4AENNcUkz25Ew3r3TTQ9t4k0tWuzx59 aw6OtZdyH1cxEx5sUyxsi2sz/D35O2aVtHKy8zAwKdnw4EAD46oeV+uVOGIq3oMesS j2JZatbvViCLQ== From: "Paul E. McKenney" To: Thomas Gleixner Cc: Marco Elver , Peter Zijlstra , 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: <20201207223853.GL2657@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org 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> <87blf547d2.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87blf547d2.fsf@nanos.tec.linutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 10:46:33PM +0100, Thomas Gleixner wrote: > On Mon, Dec 07 2020 at 11:44, Paul E. McKenney wrote: > > On Mon, Dec 07, 2020 at 07:19:51PM +0100, Marco Elver wrote: > >> On Mon, 7 Dec 2020 at 18:46, Thomas Gleixner wrote: > >> I currently don't know what the rule for Peter's preferred variant > >> would be, without running the risk of some accidentally data_race()'d > >> accesses. > >> > >> Thoughts? > > > > I am also concerned about inadvertently covering code with data_race(). > > > > 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()? > > That was your suggestion a week or so ago :) You expected my suggestion to change? ;-) Thanx, Paul