Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2749246pxu; Mon, 7 Dec 2020 14:49:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJw61lwrZJv0I3W8hg6LJdkSVaCjDqIiePbJWORzhF2lQVo1QGvR+etNmvxtCYbTjHtLDhS4 X-Received: by 2002:a17:906:1e0c:: with SMTP id g12mr21085036ejj.214.1607381364630; Mon, 07 Dec 2020 14:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607381364; cv=none; d=google.com; s=arc-20160816; b=ppSk6sAkan8KC/nhxhRKA60w3RrBQqIpnCK8dQTNiUAj6KuMcTh8N2f5OlFki4ggXp JRBSI/U9euE95hpN7F0341yd5npv+ZtnAvMEglrnFrzSh3FCQ+YiKpYxEav47a0mJsMp H6DPih/7DngSDgf/al5n1kQrFTIZv5VWTEKGP27/USDN0qZ6rLMgcbRhWy0sCnjeoOJ/ vv8OEM8xesY+ooyc/4+epdNQxQBRMcQHJIfeY7XyKM6R7306PqoBXBIbk8jFfCfh9jrg ReM0UtkXFVpUkmbAEagyTPOJXJtGoq2H2rqR7no0BkOSDikTFi6qkpdl0f9yVQV/vyZx C+9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=DF7s5pk4Zw7F4Z2nppe0ZuFvyidXGsr6pkOHRZYg040=; b=HQmAB0cAHLJhM9WGP2WD2pryclFoaWZguLUYjCoFnlshtAyFuuCJZRkevhi9n5dPCd oF7aP/Kqa/YczKFu2yVIXMuCl+NHOtzeDoHEYEqUoLUFODqE+Xt4+uNnIgb2eZqzJ6FT 3G9T1PEhxqBmqAENNgZ78QsQS785epL5dA+Jd6VYBVNHA2uc0UzE/+dstMpC9scQoGlx 8Kloh7DVZMsEEtBfzwH6mQbZjhp+ULJxmTQUu7ZtY5rGFo7wUkY7NYW6xyvJX6uZ+9DK RS7+OPnVKfoXBQ9+Sa77GJWs06i+CLYTE87J7igl0eiGS8mjDU0ZIDcbnhwxD5LdZoBG XbHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=z6h2Skd6; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=CeWqBvqQ; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm2si9086231edb.472.2020.12.07.14.49.02; Mon, 07 Dec 2020 14:49:24 -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=@linutronix.de header.s=2020 header.b=z6h2Skd6; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=CeWqBvqQ; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbgLGWrb (ORCPT + 99 others); Mon, 7 Dec 2020 17:47:31 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:39396 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbgLGWrb (ORCPT ); Mon, 7 Dec 2020 17:47:31 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607381209; 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=DF7s5pk4Zw7F4Z2nppe0ZuFvyidXGsr6pkOHRZYg040=; b=z6h2Skd6Npw6+UOW47F4wiFBtAPxZNXBfKkjPDYXIY+em1Iu2EMMtdlgJLp7nq3MeQzG8h oFy82ZG6DqhcJ0rM6YSXZhSdU9a71vzi2Ure7bmyfXdSTcjVKxczPBqNAkwpA7LzUfuIYj Xk+SzGF56zatuASCFWXgzX/MShBS3Gcykho5iu91a+Z6A5hAIF70N6VsPW15PCY5xSMh20 r67/fp2pdSG0ZXaGCniMWypCTCsCB92q+003FtxmjZsVwa4/DbdJMAC7EaAXsN6rj9zUmG XkCEeTlCLiGhO9Xf8uf4I9v1TlZ5RAbFzjExcVQDasbU+HMt/4qlw0W1beTuEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607381209; 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=DF7s5pk4Zw7F4Z2nppe0ZuFvyidXGsr6pkOHRZYg040=; b=CeWqBvqQZSg4eFg2hQfpVHwHizWRr6ZhqODicAjGwNBL3A0aqsxbjIyBNu8+zte/q6gaBW frVmiJRylI/MBICA== To: paulmck@kernel.org 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 In-Reply-To: <20201207223853.GL2657@paulmck-ThinkPad-P72> 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> <20201207223853.GL2657@paulmck-ThinkPad-P72> Date: Mon, 07 Dec 2020 23:46:48 +0100 Message-ID: <878sa944kn.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07 2020 at 14:38, Paul E. McKenney wrote: > 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? ;-) Your suggestion was data_race() IIRC but I might have lost track in that conversation.