Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp4167079qtj; Wed, 11 Jan 2023 01:24:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXuH+O7mDNpcLfKkZ67QgTq5ql3Mf4Q3Hqh6JJP6CD8fodzMDsaSVk1Dpy3Nh+COyjFxk+kV X-Received: by 2002:aa7:8f1c:0:b0:589:1cb8:9706 with SMTP id x28-20020aa78f1c000000b005891cb89706mr1449691pfr.18.1673429091761; Wed, 11 Jan 2023 01:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673429091; cv=none; d=google.com; s=arc-20160816; b=CjhVHVOurn6LOfuYD1Bsuli8W6nqbZS6ABI27CE1++IUC/BgdUKj7dlpNhYBYEUJAv EdmZ/zCF9QrXn29nWLhm2GLAju8z6/OqjiTNixGekuitByDzkU7UVwxGE3ApDwWjbdmR NAmFXJOTlXgClDK2Roxc4uQ2f4J25wyWat8E33f/Nbmdnls4D+peyewv7Eqa6kufPAQE fo26Rer4VS5mOaxzQXh+nl0NBslf1tkMMWcjzyest2g2IX+epqv2/FonMfJRtGq6fz23 JhGmd5PnWbnRMv5IwRhEchKQN3T2gmUJ1zphxOgzH9I/9NxWjTZVxlhl/KEUT41OgtYf 6RLA== 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=NdAF7zwaAIgx1nns+ekhQw7lkO0ao3fpQZq9T7cyisQ=; b=V2acdjkBtLzp7KIUj6dKQOqx5fi7rVVxNa0WvdTNiK+HgU+QSOQaEkUB9KKlu3CuNa pWCjEnLFUtn5UfVKYk9u9iF5kyjX/xbIKTkSSt6LvySkjND/Ydkji63o8s+W7LgEwizw zsQeb/c8sOiHecDADrfj+Dsr83mzkuYFSlIRAxQ+msfF4R8uG7tXX2yBPvvRQ+RutuJ/ IlQ5dN5NJjYZgmy5VBFTXWEkl/9c5E0A+NcmReOYVGzrik+6wmeBkFCUSFna967kD99e uOMb1kCSAcLEOD6VRjg+Lxgt1bGZdBL8lyTfTMkCSUAcfuysA/LDBAw0qSZqTwAu75LA 7ctA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nW4lBkbe; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn15-20020a056a00340f00b00574e84f7ee7si13500976pfb.174.2023.01.11.01.24.45; Wed, 11 Jan 2023 01:24:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nW4lBkbe; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238323AbjAKJFt (ORCPT + 53 others); Wed, 11 Jan 2023 04:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238284AbjAKJE5 (ORCPT ); Wed, 11 Jan 2023 04:04:57 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECE1B140FB; Wed, 11 Jan 2023 01:03:16 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673427757; 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=NdAF7zwaAIgx1nns+ekhQw7lkO0ao3fpQZq9T7cyisQ=; b=nW4lBkbe0G3VGzhleCOD8KoELkTbP4MJMiwslw5wPvgBeEEmn5aF4QD9Gc+Tbwg63IjH2h yr/NJB5Dz4P46zRYZfgzyfJJ5L0ZLPq8o26+qKQlGmw4Dyz4PJtII5NfLptGAIHWEcrUE2 lDuWExr+gYABoTr38kyzcqz+a3ItMSfLveMAP2+5Dow+2A1fDUMdCLU0tFKT+EhV+KHRcm kDZ41shZL8Sr+wBYW3K3ZSHBMtKR5adcqaF/bVGZiKeP81NZM9dXDI7JELCV4jqgQozMSQ ujIcmPPK4b6g75FNenov7Oc3CoQjSLCnaefN4pKjjrAJbUq1zjzttjmtGttRXQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673427757; 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=NdAF7zwaAIgx1nns+ekhQw7lkO0ao3fpQZq9T7cyisQ=; b=gAvvbx4tX/Jg4O327/LL4sctFvjdYXQ/HN77RsqxpXr9n61ei77oPm5cLEMVWQyFOMctwM 6mNT4A6wDlxDiBDw== To: Frederic Weisbecker , Zhouyi Zhou Cc: fweisbec@gmail.com, mingo@kernel.org, paulmck@kernel.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux-next] mark access to tick_do_timer_cpu with READ_ONCE/WRITE_ONCE In-Reply-To: References: <20221219052128.18190-1-zhouzhouyi@gmail.com> Date: Wed, 11 Jan 2023 10:02:37 +0100 Message-ID: <87tu0xiguq.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 09 2023 at 13:51, Frederic Weisbecker wrote: > On Mon, Dec 19, 2022 at 01:21:28PM +0800, Zhouyi Zhou wrote: >> fix above bug by marking access to tick_do_timer_cpu with READ_ONCE/WRITE_ONCE > > This has been discussed before with passion: > > http://archive.lwn.net:8080/linux-kernel/1C65422C-FFA4-4651-893B-300FAF9C49DE@lca.pw/T/ > > To me data_race() would be more appropriate but that would need a changelog with > proper analysis of the tick_do_timer_cpu state machine. Proper analysis and comments in the code are required independent of READ/WRITE_ONCE() or data_race(). Thanks, tglx