From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FCACC433F5 for ; Fri, 15 Apr 2022 12:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353036AbiDOMKb (ORCPT ); Fri, 15 Apr 2022 08:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238850AbiDOMK3 (ORCPT ); Fri, 15 Apr 2022 08:10:29 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40501BD2EF for ; Fri, 15 Apr 2022 05:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=St8oWKxdlyJ9kHKLqNFtmwPsXFd7TD8AXFSNuL+0TlA=; b=nErrbw1uLhlqRUrCK061ux3rLn rASVg+pEIfZl7mKXt/NZL2S7DUkSI6TGBPl4czY5AwR7WYR3fSIvm5wW2KgFdUpRSPC88we1QV+VN 3DZZWaevfTqMQvr9k5KCwR9fFkfIjn0u0FnFvYW5LvGcU7dM4FlrrYid/EDVx+RJFcp0Jsl7PXkjr FFr8+2BD8USLRg+x31R+nB0yXiDu1dYMN4rreY+yPWG0ZQPHMcKVmLjxOTjUz5uScsMyKyaWq2L+l +6NN7T1sFTgSQh8tScPlR+ziwmS7gh3iXyeeQZ3ALpE17p7VqgO+tr4K07PKKWSZkdaXiq0cK+RRB vYAJm6AA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfKk0-005NH1-Up; Fri, 15 Apr 2022 12:07:57 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9439E3001AE; Fri, 15 Apr 2022 14:07:56 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 79A032C977338; Fri, 15 Apr 2022 14:07:56 +0200 (CEST) Date: Fri, 15 Apr 2022 14:07:56 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: LKML , John Stultz , Stephen Boyd Subject: Re: [patch 1/3] timekeeping: Annotate ktime_get_boot_fast_ns() with data_race() Message-ID: References: <20220415091223.187169221@linutronix.de> <20220415091920.956045162@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220415091920.956045162@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 15, 2022 at 11:19:35AM +0200, Thomas Gleixner wrote: > Accessing timekeeper::offset_boot in ktime_get_boot_fast_ns() is an > intended data race as the reader side cannot synchronize with a writer and > there is no space in struct tk_read_base of the NMI safe timekeeper. > > Mark it so. If offs_boot actually ever changed?