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 93F79CCA485 for ; Wed, 20 Jul 2022 19:43:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237090AbiGTTnw (ORCPT ); Wed, 20 Jul 2022 15:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233619AbiGTTnu (ORCPT ); Wed, 20 Jul 2022 15:43:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4676B68DD4 for ; Wed, 20 Jul 2022 12:43:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E132461B0C for ; Wed, 20 Jul 2022 19:43:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ABDAC3411E; Wed, 20 Jul 2022 19:43:46 +0000 (UTC) Date: Wed, 20 Jul 2022 15:43:44 -0400 From: Steven Rostedt To: Kees Cook Cc: Linus Torvalds , Peter Zijlstra , Thomas Gleixner , LKML , the arch/x86 maintainers , Tim Chen , Josh Poimboeuf , Andrew Cooper , Pawan Gupta , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , Joao Moreira , Joseph Nuzman , Juergen Gross , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann Subject: Re: [patch 00/38] x86/retbleed: Call depth tracking mitigation Message-ID: <20220720154344.29cde32a@gandalf.local.home> In-Reply-To: <202207201219.8EA905372@keescook> References: <20220716230344.239749011@linutronix.de> <20220720125736.48164a14@gandalf.local.home> <20220720135016.3178ffc6@gandalf.local.home> <202207201219.8EA905372@keescook> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Jul 2022 12:36:38 -0700 Kees Cook wrote: > I'd rather not remove it (or do it dynamically) since the point is to > test what has been generated by the toolchain/build process and stuffed > into the .rodata section. i.e. making sure gadgets there can't be > executed, that the boot-time section permission-setting works correctly, > etc. Before the retbleed mitigation, this test worked for all > architectures; I'd hate to regress it. :( If you haven't noticed my reply, I wasn't able to come up with a one line workaround, but I was able to come up with a two line workaround. Hopefully that will be good enough to keep your little feature. https://lore.kernel.org/all/20220720151123.0e5bf61e@gandalf.local.home/ I'm currently running it under my entire ftrace test suite. If it passes, I'll submit a formal patch. -- Steve