Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp460981pxa; Fri, 21 Aug 2020 11:40:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLnRHX5f0PFHgF6OjuycAvqXWuuU7zuo0Uok4WHjJMjh8nQEW9ABw8q89XyDCk3Mvb1J3w X-Received: by 2002:a17:906:27d7:: with SMTP id k23mr4248882ejc.74.1598035218002; Fri, 21 Aug 2020 11:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598035217; cv=none; d=google.com; s=arc-20160816; b=MEAy90+l6zuA3z0rY4tjqQDjTF/kS2cFYH6mQuabLkNOCGqnGjI2xjz5MFfScDK2mJ BIxkkQzQ40QJCBqloZxuWj+yfu2qbbDaLA3ZmYRYGWtP02clljP4tJ3GZ+dYrT01qhCI ToHXIB53UHdawGqcclAMO86pUOHYS0QpvtLStyJ6IkFTy1q5we+0lkAjEAWBLDL4RvVL KQskdB7ktoMnGgyxFgw5wdDnKDUOIMFA98Be5rAxBzKQQUGeq0gDGvRGLnPi4aeVgtkO s5iz1UFbnui3SEw6pPDMcYG5o4KiBpXeaXIA+WWoKxxL4mycRReX2BJJrHWuFfOedFT3 kdEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qf7iQOKln7FqCs/F0D07PQ4uJRzWTyA3GUp/BaFL3pY=; b=lUAioLRGUAQpAO4cJllk8/ro6ziBn+nzconW9xVQ2fsNQI0ObNZIEltdW/JwlH6ih0 TLTnkWL6gDzCcNIIRHLDERDvBJebOW5SjdGCUu52FekLZJdG34iu0SY3M3ojCg2ycpXl j7W5JVJz/lKkYnbl7rpaYxN9R7HfDBl9Bay7s8SAHQlhX+VJi4LRxzNP/F2TKyQYAGrc /hsCElz05/BJsq65L+0MiJXJNeb86l+AyzKU43FZtukQZLl6w4gEDB0dqpMN5Tbvy96l yHudi+wwMnZZJrZJLXjvJB0V2F8vKEBfJS+kAC7V61EwoaxXBDK57VNZvKnqwxPL42M+ lMIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=J2WcNmGW; 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 n8si1864331edr.202.2020.08.21.11.39.54; Fri, 21 Aug 2020 11:40:17 -0700 (PDT) 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=fail header.i=@infradead.org header.s=casper.20170209 header.b=J2WcNmGW; 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 S1726531AbgHUSjR (ORCPT + 99 others); Fri, 21 Aug 2020 14:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbgHUSjM (ORCPT ); Fri, 21 Aug 2020 14:39:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B153CC061573; Fri, 21 Aug 2020 11:39:11 -0700 (PDT) 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=qf7iQOKln7FqCs/F0D07PQ4uJRzWTyA3GUp/BaFL3pY=; b=J2WcNmGW4ZaJnH9WyXYj2IWLGP MY9g2ejM9VdCuKeFodacvhJLeWrsYgo8nqefHsNPMU4Vbrin1ug/GspWQXhQ95BueAlwJU5UBVfme xsSe8aV5Fz96VamAaqHdQ1icy5tdze1dzRwTGt4cLmLg4Kr+Xg9qQPIAXAtJYiZxRyPlRWynCDE5p 0qjBdYCKHstNv6qSiYmN1wGDOw4/3X+5ZH2gdOVC3Jp7eb+/miXVMoZwyJWaZJS+e5c/nqkeLwCQi 8+GoU1CglEyEwpGA5NoHefHqEee/kH9Idjl6mMPjdqz8exouGunuAwCseTLazWHRTVt5k6sBsZvrS 5WvpJlVg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9BwK-0001sV-RA; Fri, 21 Aug 2020 18:39:01 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id E5DB6980DF7; Fri, 21 Aug 2020 20:38:59 +0200 (CEST) Date: Fri, 21 Aug 2020 20:38:59 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: Eric Dumazet , Marco Elver , LKML , David Miller , Jakub Kicinski , netdev Subject: Re: [PATCH] random32: Use rcuidle variant for tracepoint Message-ID: <20200821183859.GS3982@worktop.programming.kicks-ass.net> References: <20200821063043.1949509-1-elver@google.com> <20200821085907.GJ1362448@hirez.programming.kicks-ass.net> <20200821113831.340ba051@oasis.local.home> <20200821114141.4b564190@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821114141.4b564190@oasis.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 11:41:41AM -0400, Steven Rostedt wrote: > On Fri, 21 Aug 2020 11:38:31 -0400 > Steven Rostedt wrote: > > > > > At some point we're going to have to introduce noinstr to idle as well. > > > > But until that time this should indeed cure things. > > > > > What the above means, is that ideally we will get rid of all > tracepoints and kasan checks from these RCU not watching locations. But s/and kasan// We only need to get rid of explicit tracepoints -- typically just move them outside of the rcu_idle_enter/exit section. > to do so, we need to move the RCU not watching as close as possible to > where it doesn't need to be watching, and that is not as trivial of a > task as one might think. My recent patch series got a fair way towards that, but yes, there's more work to be done still. > Once we get to a minimal code path for RCU not > to be watching, it will become "noinstr" and tracing and "debugging" > will be disabled in these sections. Right, noinstr is like notrace on steriods, not only does it disallow tracing, it will also disable all the various *SAN/KCOV instrumentation. It also has objtool based validation which ensures noinstr code doesn't call out to regular code.