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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79FEDC001B0 for ; Tue, 8 Aug 2023 02:17:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8BXFZLyp70Xma5f384GS93QPA8pJtVZJ7Dm6Bt9jceA=; b=ZOGesEhSkRbXVJ 2tIoud5aawYN5J7nDh8AcHPFFRoEKcHkEUG4lnNit0Ae7ZnMbd16fXP88ewszpGlRucG4iI7EgxhR M9m34dhnuF8P7w9VULjjm+AKskPa66sJLu/D4foo+X6Rbc00Z+zqPyBIbsUy85qXtWNM2x99qEkEV UDQm/aHt77ze9iqOb+8IjkJXxHyvfWJCFnt5h5OcPrrt3NSL2cpFBhIpLzL340O6sduAGPzNRYbIP 7hD0YiBzQFNe0bN92CuV46nMYAxnsaXJsYaaLzGWh7SxhVfC3J/+lqoDRJnXi92Te2yuiYLp4Bl4m Jq5ldcthyhpUthBlSIzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTCHT-001X2v-19; Tue, 08 Aug 2023 02:17:07 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTCHQ-001X28-0S for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 02:17:05 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88BDB61481; Tue, 8 Aug 2023 02:17:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EEB8C433C8; Tue, 8 Aug 2023 02:16:59 +0000 (UTC) Date: Mon, 7 Aug 2023 22:16:58 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Florian Weimer , Marco Elver , Andrew Morton , Kees Cook , Guenter Roeck , Mark Rutland , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Nathan Chancellor , Nick Desaulniers , Tom Rix , Miguel Ojeda , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Dmitry Vyukov , Alexander Potapenko , kasan-dev@googlegroups.com, linux-toolchains@vger.kernel.org Subject: Re: [PATCH v2 1/3] compiler_types: Introduce the Clang __preserve_most function attribute Message-ID: <20230807221658.1d65ee28@gandalf.local.home> In-Reply-To: <20230807123137.GA564305@hirez.programming.kicks-ass.net> References: <20230804090621.400-1-elver@google.com> <87il9rgjvw.fsf@oldenburg.str.redhat.com> <20230807123137.GA564305@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230807_191704_220104_AEAB3129 X-CRM114-Status: GOOD ( 16.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 7 Aug 2023 14:31:37 +0200 Peter Zijlstra wrote: > > that this is not a compilation for a module. Otherwise modules built > > with a compiler with __preserve_most__ attribute support are > > incompatible with kernels built with a compiler without that attribute. > > We have a metric ton of options that can break module ABI. If you're > daft enough to not build with the exact same compiler and .config you > get to keep the pieces. I believe there's enough checks for various compiler options in order to enable features during the build that trying to load a module built with another compiler is pretty much guaranteed to fail today. -- Steve _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel