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 96F97C47085 for ; Thu, 10 Mar 2022 14:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346217AbiCJOmr (ORCPT ); Thu, 10 Mar 2022 09:42:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343922AbiCJOb3 (ORCPT ); Thu, 10 Mar 2022 09:31:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0744AD5DCC for ; Thu, 10 Mar 2022 06:28:25 -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=UoLoMSr1L4PiQxwJzNXgnjqeiV5XbOR73wyZICR4kL0=; b=Lr6akouqn7YW5NjwJwQCt55gBL N+eHZT6DyUTmjU4aB51d1uEGSHkNUg9PzFLOI4KCujoYfFQzLMvBz8sQPSosVZ8VhYRB2/D2uT6iy Fuht3Bb+ZAfmzGY9OYhTKoPRPn36QAmgwW+AF7vW7sQ5lSaW2aGbKxkOXBrnR7YWcFJvejamAMKcX 0jlcPDsDI1T0yUkEtzsdJtdHckBXXD/2MgWIEiTxI0fJEDIADbqMhMRMSGhO4Q/LzBqN3lgBFClWK Pf0YVSTcexMJGfP/U5CQ7isfsCM/e9VRnTbpn5dDj1ftuxvOLgxjo27gQebFtmM4ve1QJ7lcR9ZuG NiAhAIMA==; 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.94.2 #2 (Red Hat Linux)) id 1nSJlo-000biS-0H; Thu, 10 Mar 2022 14:28:00 +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 089FC3000E6; Thu, 10 Mar 2022 15:27:58 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D03752B52E237; Thu, 10 Mar 2022 15:27:58 +0100 (CET) Date: Thu, 10 Mar 2022 15:27:58 +0100 From: Peter Zijlstra To: David Laight Cc: 'Josh Poimboeuf' , "x86@kernel.org" , "joao@overdrivepizza.com" , "hjl.tools@gmail.com" , "andrew.cooper3@citrix.com" , "linux-kernel@vger.kernel.org" , "ndesaulniers@google.com" , "keescook@chromium.org" , "samitolvanen@google.com" , "mark.rutland@arm.com" , "alyssa.milburn@intel.com" , "mbenes@suse.cz" , "rostedt@goodmis.org" , "mhiramat@kernel.org" , "alexei.starovoitov@gmail.com" Subject: Re: [PATCH v4 00/45] x86: Kernel IBT Message-ID: References: <20220308153011.021123062@infradead.org> <20220308200614.gyhp657bdq3rxapl@treble> <20220309065718.e4k2el2mlqn23yh2@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 09, 2022 at 01:37:50PM +0000, David Laight wrote: > I'm wondering what actually happens to loadable modules? They work just fine.. > Especially those built 'out of tree', > potentially with a different compiler, > and maybe containing binary 'blobs'. -EDONTCARE, you're on your own and get to keep whatever pieces. In fact, the more pieces I can get you, the better I feel about it. > The requirement to run programs on old distributions means > that things get compiled with quite old versions of gcc. > For instance RHEL7 is gcc 4.8.5. Min GCC is 5.1. If you want Kernel IBT you get to use GCC-9 (or 8 with backports) but I'd recommend using GCC-10 or later since before that the IBT code-gen is pretty stupid. If you build modules using another compiler than the main kernel, you again get to keep the pieces.