Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3714233rwb; Mon, 7 Aug 2023 19:32:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwH+CCLT3eH2Lrc/niNB8HoyNk5ma3PZDdQdiDLSEZKsG5PPmc/49DtNu8K8S1uGaTxYCP X-Received: by 2002:a17:903:11d2:b0:1bb:c06e:647a with SMTP id q18-20020a17090311d200b001bbc06e647amr12754562plh.53.1691461934896; Mon, 07 Aug 2023 19:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691461934; cv=none; d=google.com; s=arc-20160816; b=MOgpbsAZ6kZdUyZ37DQ0poEJv/tdGT9BFP2cuqQdvbQQCL+Pe0QV5SKuLrwsaqJ0y+ eiSFKOC8nXPUD97kHmbJQW0XOhDYyEdyiojz6+EQuKdUlsYjJWJR/W+K1nNk8prF4IP6 tVvZDt+VCxoSBT8WYZEUy5jWkDlu72JTvwKv/pstA2+najnK/ZC0SQfOLHmnbX/qE0HZ /M1rEfwGivRpYt1ylpPO91HmdmIzRGH4BI+VdS+OZCwqf8wuW2dfigONd4sSCvn/iiE/ QkRuVSlzzI8NGV1nKwmQp9ZRcLFf0KUidoWhXJxKa86nx9h379lYQXZXZ5vkVvgbwFHk tBcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=8SQW1x4TfgfYGpoik+hTacgWvf9v2hTy/sjTC+cp7yA=; fh=C4XaKtbGl7XdEfyoWUNcVeG4haIHmg/959wOYgjffHY=; b=bKNJPSK9T2C+Ymv8KT0xKpUecvTdCr4NwNyYKe2KnJ9reWLJJwxMmgtOYBN7SzCIDa rClp2FbfiPk3gJ/K2lwUOpyQcVt2G/wf9Vpraf5RMMf2VA/jgVMJCtb3COKhDvCgQyry pDin2KOtPBznQ71koz6Qu8+aKtMVn6dYuKQSDJGi6FOQTj4k98gzjmfpX33x8zphCkGO s0YaNkoHjbCA3G7zIoedWdSokmdu5b4EOXzafD5m5KqhvQh377aDkbEgO7yd2C72xPbn fVFGmP0O9IM2W6lOcR7S3RtbeoaC+cru1GZvffl9i4BtceRoxJqnIrVbGuyzOvNdXipv 5P9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a17090341c800b001b3c7e6a8c0si4387679ple.531.2023.08.07.19.32.01; Mon, 07 Aug 2023 19:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbjHHCRL (ORCPT + 99 others); Mon, 7 Aug 2023 22:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjHHCRG (ORCPT ); Mon, 7 Aug 2023 22:17:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA9D2183; Mon, 7 Aug 2023 19:17:04 -0700 (PDT) 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 93CB562377; 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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, 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