Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp555543rwl; Wed, 5 Apr 2023 04:49:15 -0700 (PDT) X-Google-Smtp-Source: AKy350ZmKAs+9PW21xFX2VPmbqXRHea+/iU8RQSzmHotHzqK6Ztsy4oiYYeDTcpDFA4AXl0eWGYq X-Received: by 2002:a17:903:1211:b0:19e:68b1:65b9 with SMTP id l17-20020a170903121100b0019e68b165b9mr7127219plh.12.1680695355671; Wed, 05 Apr 2023 04:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680695355; cv=none; d=google.com; s=arc-20160816; b=DFjPA4MDpDUbjjYCEnlPG7m+hdNoW6tX9BXjFQywvfdAoWxjFV55boLkLqsB1wS9jI rjvkzK66u1sqs3diDjqj1weJFYxDJVFsrmJniWL6VJ6rDkZvGbtL/7n5TyarKTHtWd23 Zv/AVhY3NcWfjhJRjJ7ClxgJOZ+Eu563EqkvA3dUy5yAkf8MjGYxL3UQp0FsmxV96mnv 7OgH5CZHOIFkzqHBw0TDtPs/uNV1oZ1480NvVoBRazneaxD8+FgxQO0dHh14RgINrCvt JPsxu6hhZpv9VTLIgkd4/zneapGoQDIC8S7dxm7efWGZGiF+iZ0m7H2IOauo//9Ob2sR 8AWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WTsmdblHPYajB+3qczYhTQWyrb6fly5Dk4QPH+tzONA=; b=PEVwyUpkRh6cht5if7PPsxNRZT5dPj0LlWGCwP6AffCufWjAHr6zXmKNBsx7R28QGg 4EREJdqX3tRPSAHzZdeKQcKhjht18o9loNIf+Z9U6O8O7Pj2MnTB2Jx+QPLu2mk4kg/Y OE2JXXPBfFyiHgnN6gAOAoIlblm0gKk8L1VxtAv6JihMTl3gia8Bb+kR549CtH6zBfgP KWrx8vpSYh6FX/OYji6MMArobBYLr0gwn1M3r+trlSzy5QcgJuCnWNPh2bVUKf/VSUHG cpKr+j/9C2t3rwTNk9VW9756APd5oVRUkYdmS9ArhhitIzdZUc/pv0+kUVl/ILMkDN4N sjTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gB7rd4W7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a170902a70b00b0019e8c3cd415si1402597plq.260.2023.04.05.04.49.02; Wed, 05 Apr 2023 04:49:15 -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=@gmail.com header.s=20210112 header.b=gB7rd4W7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237576AbjDELs4 (ORCPT + 99 others); Wed, 5 Apr 2023 07:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237514AbjDELsy (ORCPT ); Wed, 5 Apr 2023 07:48:54 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 906C93C3E; Wed, 5 Apr 2023 04:48:50 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id ix20so34174922plb.3; Wed, 05 Apr 2023 04:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680695330; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=WTsmdblHPYajB+3qczYhTQWyrb6fly5Dk4QPH+tzONA=; b=gB7rd4W7Gl5XVMiDYxgFsOVckNNSwU82k/ZjQkQT/QUsholqIcv8o2EFrO2eChuzqJ /E1Nom6E9OqVZjG1oCeeXIpyYlMTX83oUbH+vrAMBiljmxwpY1NMErmGtwM/4kR1FfAf hbb9rumIaGK3o0a+t85nZ9QLJzQAsq6NOQbKus/TppZZYT7cDoYxhqijELG68+PKgXwa AW3rV864e3GUeXTY8t245RZh1MUTn2PaCC0EPwp9Ewm661bd+y79Rq+2tRDeDmVVuB2D aodRwaRPoLayJHjaBUnU95IZjyqTIp4kVX3Wtfm5NE0FJUdRCcMjEXw7XvCpkJDPa2te dhgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680695330; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WTsmdblHPYajB+3qczYhTQWyrb6fly5Dk4QPH+tzONA=; b=X36ryk20NJO3lwOhPpbCitcIGKzvtrHh19hlMIG2B2zNnKiwWtS/gLI2E7Z1xK14fj vXJWIOqjZqgZD3dKAsdSRXOm53CAuNrp7eLBu5LPOtql2XclQkoylkA6AdiMubKVqViN k+TdcPVazEobBRFn3UR/k8J0W+/0+VuyJzXoF4GPDLPReXsiyIXt4zDyJZDV/hZ3H7zm j8Be7QFCcGWF39ksznwhkGFW9a3wUAsm1k4zukR8zW4bcdcfi0MBjy/Ub0hnc03duUCT 2jdqwfya9zUi0Rhgpxf0JQ1oq3yHB3BhvxE4raYHym+lmXcAJratac6t3Wq8S7wJC+NM eV0w== X-Gm-Message-State: AAQBX9d1PYC006AsQQTmuZ/1a50m7NxIEqBDCNmDwopRXPOYhr9z8tr1 5hkn6osg1qD/Wf5qArlS+/k= X-Received: by 2002:a17:90b:1e49:b0:23f:ef7:7897 with SMTP id pi9-20020a17090b1e4900b0023f0ef77897mr6177640pjb.49.1680695330032; Wed, 05 Apr 2023 04:48:50 -0700 (PDT) Received: from localhost ([103.152.220.91]) by smtp.gmail.com with ESMTPSA id ha15-20020a17090af3cf00b00233acae2ce6sm1212364pjb.23.2023.04.05.04.48.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Apr 2023 04:48:49 -0700 (PDT) Date: Wed, 5 Apr 2023 04:48:46 -0700 From: Dan Li To: Peter Zijlstra 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: <20230405114846.udm4yf3xc6wdyexz@ubuntu> References: <20221219061758.23321-1-ashimida.1990@gmail.com> <20230325085416.95191-1-ashimida.1990@gmail.com> <20230327093016.GB4253@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230327093016.GB4253@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20171215 X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 03/27, Peter Zijlstra wrote: > 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? Hi Peter, I'm not so sure right now. According to Sami's tip, I need to learn more about related patches. I'll make it ABI compatible in the next version if possible :) Thanks, Dan