Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2602179rwl; Mon, 27 Mar 2023 02:33:02 -0700 (PDT) X-Google-Smtp-Source: AKy350a3efJYHVpEkB4x2rUSskdVi2e1q0mKpu1SiGZ2Kvv2KYzUjEYkLfB9cs4+3KtNCkhozwcv X-Received: by 2002:a62:7bce:0:b0:625:e051:e462 with SMTP id w197-20020a627bce000000b00625e051e462mr11041646pfc.15.1679909582386; Mon, 27 Mar 2023 02:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679909582; cv=none; d=google.com; s=arc-20160816; b=hNBvemRZOeCEyOZu8BBB66G4VPvotajVxh0pKo7OiqcFU2uk0IS7e5osheT2NvWrJ+ jVvN9YAHm4P2sc28Enlk7sTxw9FpWF/eKk64sZA0MYJrKXmPudGHhBt0yXC4ctBah8vS dy4jal/6A7Tikd6R1hfZgxHcCUhva76yI6R6xYIlW08L63TRU9Zxho1uL9qwBoAVvy4V 0lQQjxxAtn5AJjKVXkCMQVh65cIo6GhROiEC41HNngpprSYfomAwROIJaaZYN9No1aN7 tQ8SE9JVy03KKN3MzOFaNa1joy1ZoGJdWUu3acKiEZsQnE/imetHAg+YbswBv7eSjnu2 z9iQ== 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=8DqjXeO1tc2m6wXJ4uu/hd4TZQ+nIIRzc4UwCMqvjG8=; b=ZxPQegNTGDBEbVTfttc5Uv7S9HJBJtrmMpNykSwE4El07J7iFMbg5GgMzvFwra8fAE bXtwNI+WVaPhZBbsrVgk7tJfEMlQnSRIzyg+RKE+MTesjkei+jnCb/5a9Dz1eeqDfVvK f24BXjk/LUhgJSPdZHPErp3tIsULRUhZA9+KMCD54QZkfjwcuA/byVm4+QfSoaQLUzYb Pd4m+N85XGq/r3ilyDW2svL17qai0WdNqKMh17ksV6Bt7XOkePsIM8ijj++mGR8kAGfr FCc2gRx438krtb3Y051cmPpl0ydYHWVwKYVJUqHWCX0HN0peGBa0s9/4npW431EHSUpM xfcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ju+MEMZ1; 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 c12-20020a624e0c000000b0062abc2c2a40si7609734pfb.89.2023.03.27.02.32.51; Mon, 27 Mar 2023 02:33:02 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ju+MEMZ1; 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 S233228AbjC0Jak (ORCPT + 99 others); Mon, 27 Mar 2023 05:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233097AbjC0Jai (ORCPT ); Mon, 27 Mar 2023 05:30:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7617D46AA; Mon, 27 Mar 2023 02:30:37 -0700 (PDT) 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=8DqjXeO1tc2m6wXJ4uu/hd4TZQ+nIIRzc4UwCMqvjG8=; b=ju+MEMZ16NRWnIDWX78+WhqTZD ikrhVB7IopcJONyDZgU+z4k71dPM9zCprIgO9Yh6YW/iq+MBarJoh/04SRlg3RmPOLuA8DaaoZY4F F8Z2boePxShTaCL+vLO/ogb7T0r0qjHF6PRAE3bn18c0iH1Lc6T1XWvk+1uOQggT65mD3k1/PnYkr sHSgh4bFQu3XQgTnsNGV1nzKLrse91+KjHFkGmTsYep0WiKeiiAjAvOZ1FQJU/AR7XmJ1k1xh2itY Ujh0eJBNbGzJQkLenUzehssEwGgfLXN4fqfc1sxeAcUHVYt0EZ2cH5ZbRwwMCEg5BSk/1bpaWeayX rtGZ0RDA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pgjBC-007HH2-81; Mon, 27 Mar 2023 09:30:18 +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 488B73001E5; Mon, 27 Mar 2023 11:30:17 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E8DF82014D86B; Mon, 27 Mar 2023 11:30:16 +0200 (CEST) Date: Mon, 27 Mar 2023 11:30:16 +0200 From: Peter Zijlstra To: Dan Li Cc: Aaron Tomlin , Alexander Potapenko , Alexander Shishkin , Alexandru Elisei , Andrew Morton , Anshuman Khandual , Ard Biesheuvel , Arnaldo Carvalho de Melo , Arnd Bergmann , Boqun Feng , Borislav Petkov , Borislav Petkov , Brian Gerst , Catalin Marinas , Changbin Du , Christophe Leroy , Dave Hansen , Dmitry Torokhov , "Eric W. Biederman" , Frederic Weisbecker , gcc-patches@gcc.gnu.org, Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , Jiri Olsa , Josh Poimboeuf , Juergen Gross , Kalesh Singh , Kees Cook , Kumar Kartikeya Dwivedi , Luis Chamberlain , Marco Elver , Mark Brown , Mark Rutland , Masahiro Yamada , Masami Hiramatsu , Michael Roth , Michal Marek , Miguel Ojeda , Namhyung Kim , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , "Paul E. McKenney" , Richard Sandiford , Sami Tolvanen , Song Liu , Thomas Gleixner , Tom Rix , Uros Bizjak , Will Deacon , x86@kernel.org, Yuntao Wang , Yu Zhao , Zhen Lei , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [RFC/RFT,V2] CFI: Add support for gcc CFI in aarch64 Message-ID: <20230327093016.GB4253@hirez.programming.kicks-ass.net> References: <20221219061758.23321-1-ashimida.1990@gmail.com> <20230325085416.95191-1-ashimida.1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230325085416.95191-1-ashimida.1990@gmail.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Sat, Mar 25, 2023 at 01:54:16AM -0700, Dan Li wrote: > In the compiler part[4], most of the content is the same as Sami's > implementation[3], except for some minor differences, mainly including: > > 1. The function typeid is calculated differently and it is difficult > to be consistent. This means there is an effective ABI break between the compilers, which is sad :-( Is there really nothing to be done about this?