Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2339110pxu; Mon, 7 Dec 2020 04:13:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJypNYx1FCZnC27+8/HxuOI3eClB9tbCTVEbjvsItF/+5rssbgtIPbfOoCI7eH5jOSN3ShOX X-Received: by 2002:aa7:c753:: with SMTP id c19mr19636074eds.358.1607343181944; Mon, 07 Dec 2020 04:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607343181; cv=none; d=google.com; s=arc-20160816; b=UdlhjwdR3BM1NuHtfx9CbOMXOlg7talhl1e4lMs4cSbWU40Z4eL7DufZzbmVHHLLZk 5MsbvjDH3vBXebgZ4YLlJWbbJ8hKV1/9qaa8xgt9Y6TexJXL6DKuJ6Ci0PeaZnqQhsti PjWIdhJBd0p7pVzDr0OoDUbZW06JiXAP99UzO/CMDl3uirfYblKm8CIuxUwLBDNyjtFA Yuf5o+eFc/hDYX8fwWqUOxqG8vR6hFo0NapAy+PTPv5KmaSmZyElkw1fKe8IbUxkw+za LJ888l0y40UXnBtXyIkXGnicShf+WcZI3qCQ1spN/zDiyl6EIRi04MOu7SV34zzTTTYW Q3YQ== 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=BbTSzr0ekrkrwUMtMIVfByGKajgzqxX+9tYinOrH+wI=; b=YxQmmlEbztODRec97GvIfMvfUYvSy+G0kbgii+BsCYstNRvzYMjpqbZS5DLoDf219i yixyvZ0EpXD52L5/dpOO9QD1yKNpY5C+94wV/Vol42b3dMmbQy9YRSj/lN+CRMIwYf5g oK1eSFEckrowpC1BGdkcv6/cUSeUjJ7+r7bSrP4nVOxAsQKfvmrAOVuI5knjSwDd7wWZ 3FUz05YP5tizh0gv0bk4TyJ/4EhlmqwzkPbqzjL7BFjR6E8unkeL6XiyzvnAl/vsyn4+ pA4C/vK/4t8m9hOC/ayi41utFSGYkIN7EPhvuZmn2vdS07MGhlBxLVjB/79cNrcXf5hT ja3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Ob9akebT; 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 qo17si6307463ejb.296.2020.12.07.04.12.39; Mon, 07 Dec 2020 04:13:01 -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=casper.20170209 header.b=Ob9akebT; 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 S1727031AbgLGMKd (ORCPT + 99 others); Mon, 7 Dec 2020 07:10:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbgLGMKc (ORCPT ); Mon, 7 Dec 2020 07:10:32 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83273C0613D0 for ; Mon, 7 Dec 2020 04:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=BbTSzr0ekrkrwUMtMIVfByGKajgzqxX+9tYinOrH+wI=; b=Ob9akebTGAMG8y7oW+eJRc4sl1 93P/BxcpZ/dtnKpq6iJQenFcW1a+fDFFbcG10H+UHcU0KUpWdYf+Qw6cPnCYqdNSS/kzkCgodzt1m nFIF7xYvbpKcWyL0Wp1agANSbPP9r/K593EJ2vLMHamXRBBNeGSBvKHKpmzyDl0Wdm4Ha7M01TYNJ SJ8+gzTIBHORQkgm7RGfC0eY6HcM9YCPn9ONonBmFaN2qXXdzGG/zglHnNTyxzbsxRhBQi3ZybeY7 tCK727rrldmksbFIi/zn8hSCGXtwO9KREMm+hKZ3jC7ud2c3KjpuJkqW++HDA1qltFY8DBmcdXshq zpTtRTCQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmFKs-0001ZN-8N; Mon, 07 Dec 2020 12:09:46 +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 D4703304D28; Mon, 7 Dec 2020 13:09:43 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B8A1020812B4B; Mon, 7 Dec 2020 13:09:43 +0100 (CET) Date: Mon, 7 Dec 2020 13:09:43 +0100 From: Peter Zijlstra To: Thomas Gleixner Cc: LKML , Marco Elver , kasan-dev , "Paul E. McKenney" , 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: <20201207120943.GS3021@hirez.programming.kicks-ass.net> References: <20201206211253.919834182@linutronix.de> <20201206212002.876987748@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201206212002.876987748@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 06, 2020 at 10:12:56PM +0100, Thomas Gleixner wrote: > + if (data_race(tick_do_timer_cpu) == TICK_DO_TIMER_BOOT) { I prefer the form: if (data_race(tick_do_timer_cpu == TICK_DO_TIMER_BOOT)) { But there doesn't yet seem to be sufficient data_race() usage in the kernel to see which of the forms is preferred. Do we want to bike-shed this now and document the outcome somewhere?