Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2301291pxp; Mon, 21 Mar 2022 16:18:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuewNMsCK5fKO/AjzOBpEq3Kb05M6AupqjAR7Sxzbbpvc4M9VLd27JfaJVs+1z2ZDG2vtq X-Received: by 2002:a17:90a:71cc:b0:1c6:cfcf:82b4 with SMTP id m12-20020a17090a71cc00b001c6cfcf82b4mr1586467pjs.116.1647904738622; Mon, 21 Mar 2022 16:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647904738; cv=none; d=google.com; s=arc-20160816; b=M1AytJUm7H8tEnqVQJUu0GeWN3T6uPmB+o7jCCh1q1gECTPpm45wNhmICYgGAQ0wF7 RVxTiCLpEC83asKwMZO8jvGnqgwURnmE8NiMnXEuamvz7HSnNGbYhHx8Wrpzbt1SFsWC ZJdKdPM/9iaCksGPnEea/KhcAZX+uI2P48JqnUrSDqI5PKPbUICSA/zcnTJPSC7GP+Z5 QIlTfPEY9sSpfAH6nhGo+Cjil7gi3QRJp5q/W+3IV5xJ1YShJSN+Z4NnOwkGxd+BJ4Np Eo8bgbHpzuTJemuMTM0DaaVc8G77Og2y0V2u5fGZPGKNKUrTGe5g24CmQ5ulsViu8Si4 ysZw== 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=kTrt/5pX9PnRnJo5oHL3WG+33ty/9VWvLwvtG9fEbwU=; b=Oas6ztXa9xwq/b+0JLXVAIFv/9vBO1iHCew0erFnjOkO72rPLnFni5Yd632SRo1SE7 RnaIOZpBQnYcCv62fI60Cl/Iatt110tp7fzKD8x+7P8kfRdOcv/pft5NZY9ZUSkOsYem sADncetM4Qwt/few1bsObk5zgYx0jkKFy8998rCXOv0weCUh9GKoI10uzwwUqfE+JUcE q3h8cErG2B827h4kzQik9KAgNW/MLQNuqY/+hU3cDYH/RQRDYBOiOMQjFSICu75PuNzX 4QU8/YYwfOC7IJI/YNOn/TAAnkZrgcgxwHvTBlIHhRlL1+KYV5uYdhmLUec5J5fzVUQY hOZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=qih6R7TE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t2-20020a170902bc4200b00153d0245643si11476778plz.270.2022.03.21.16.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:18:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=qih6R7TE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0472145C190; Mon, 21 Mar 2022 15:17:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350629AbiCUQGg (ORCPT + 99 others); Mon, 21 Mar 2022 12:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237967AbiCUQGe (ORCPT ); Mon, 21 Mar 2022 12:06:34 -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 EE1BB1EC53; Mon, 21 Mar 2022 09:05:07 -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=kTrt/5pX9PnRnJo5oHL3WG+33ty/9VWvLwvtG9fEbwU=; b=qih6R7TEe0pxJ3/a/75RkzBjxc +a1QvWKlo6ZJJprM2R1stVMA7yf1zF4Mo3mzZujtDOjnMAWfzUlkMnBEfk04R0x3maynyzfbX7I/n cJzC8KZuwAFyb/ztnVg00qgEuTx+cFLxHMvDksyrnD8LdyL/sOBc6BUqenK3qJYSNSo0SbQ6sMXgD LxZZyUK9dIgPePC9k2yPopKt3YJIQlZ1WUMcoWoltXIhvM7ywN8T+kXacUDSsX8GtpifX5I3s0F7t Rz19BXeliWl94b64QDKLzJ8BJKcMqO22GU5TwRgxMSgf/tsA7hNNksnuX4gWC9K41T5gKnRDm9+7l 7EukiD1A==; 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 1nWKWF-003AQa-Bv; Mon, 21 Mar 2022 16:04:31 +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 3080130031D; Mon, 21 Mar 2022 17:04:28 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC7FA26718E94; Mon, 21 Mar 2022 17:04:28 +0100 (CET) Date: Mon, 21 Mar 2022 17:04:28 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List , Linux Next Mailing List , mhiramat@kernel.org, ast@kernel.org, hjl.tools@gmail.com, rick.p.edgecombe@intel.com, rppt@kernel.org, linux-toolchains@vger.kernel.org, Andrew.Cooper3@citrix.com, ndesaulniers@google.com Subject: Re: linux-next: build warnings after merge of the tip tree Message-ID: References: <20220321140327.777f9554@canb.auug.org.au> <20220321112805.1393f9b9@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220321112805.1393f9b9@gandalf.local.home> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Mar 21, 2022 at 11:28:05AM -0400, Steven Rostedt wrote: > On Mon, 21 Mar 2022 14:04:05 +0100 > Peter Zijlstra wrote: > > Also, folks, I'm thinking we should start to move to __fexit__, if CET > > SHSTK ever wants to come to kernel land return trampolines will > > insta-stop working. > > > > Hjl, do you think we could get -mfexit to go along with -mfentry ? > int funcA () { > [..] > return funcB(); > } > This currently works with function graph and kretprobe tracing because of > the shadow stack. Let's say we traced both funcA and funcB > > funcA: > call __fentry__ push funcA on trace-stack > > [..] > jmp funcB > > funcB: > call __fentry__ push funcB on trace-stack > > [..] call __fexit__ pop trace-stack until empty 'exit funcB' 'exit funcA' > ret > > That is, the current algorithm traces the end of both funcA and funcB > without issue, because of how the shadow stack works. And it all works, no? Or what am I missing?