Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5179341rdb; Wed, 13 Dec 2023 00:49:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKIKnqCrxf/G4S7XQjpebSsZH5lpUGCrVeq945NSij4FFHsu9sTNcR7aL2OWh53S4uyuUK X-Received: by 2002:a17:903:230e:b0:1d0:874a:5f98 with SMTP id d14-20020a170903230e00b001d0874a5f98mr11911998plh.24.1702457354075; Wed, 13 Dec 2023 00:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702457354; cv=none; d=google.com; s=arc-20160816; b=sOPAzhEr5Wq7surHQiciMNXe2J9IZ9cuIZQxjHERDmz6ppzqOA4oFsvK0YVtWqi6J6 9QDKwKZXSxuUb8Lr8mqbnUbsqR9BE3YgiFhg3Rkndb+El8mGq1939D+tZ+vNOhMCrzuR k8FUkai53MkBHbhOBMm4vSTqxO48C0NZSnTStqk0InxJr6WiDBTKZvTJOvWVtyeTyxd7 0bmXEisLlMkFuqMpRw1zLOQeqiPIvdV89rsFLdR7wsJdCC0u4LROgiJhCwlgX0AxwgpK pX+jJoLQWIhCXRySEm2beFK3J1hbBac152+wmb80NpowV2W/imziD/lPDngIedGRkhUe p57w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3iYD9RnPAzZn/twKQIifseItY/M9p2JS4Pz3uXMUgu8=; fh=QWUjrkI7O17G8WBM9TFZiHhTkuvGQfwrfun//eyAELM=; b=CAAjRq10SR3oK0c2Uk1OX6Zu4G1hDNlgHLiJw6Y12ytW2kt6DHz/Kxx8nVBM4tRrOV 7YuMYgOFqc/1vBDGM63nhxCZHffKwTv3PAwkd9onZIBk6hlWUbloIgob5j6DklwoIm1R bQzZxr96eW4VHJTbGWeSTRutRLlmwzyxcekch49mMuFzQ+uYX4BnV1dFAOjd/2jdILdN o5CwwYNa3pIFA2Gv/GlWx1+iMEeojUyHgNe/ZuVmQsAXlL9luiYGbwq0BX5IT1C7okBP KcV3hF5xT43e5T251ATMxy5H47IB2TCpzBzkio3fBWNjBhJAKBIx0tTdq6ZJkfeO1f4Z oQVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NyFHmbnm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s14-20020a65644e000000b005c661adf0f5si9078192pgv.445.2023.12.13.00.49.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 00:49:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NyFHmbnm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1F16D80B12C0; Wed, 13 Dec 2023 00:49:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbjLMIs6 (ORCPT + 99 others); Wed, 13 Dec 2023 03:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjLMIs5 (ORCPT ); Wed, 13 Dec 2023 03:48:57 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E03A0; Wed, 13 Dec 2023 00:49:03 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c339d2b88so51939775e9.3; Wed, 13 Dec 2023 00:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702457342; x=1703062142; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3iYD9RnPAzZn/twKQIifseItY/M9p2JS4Pz3uXMUgu8=; b=NyFHmbnmYpVcXLy2MQhJO01BuqPH9Dt2FgFjTrdqz1HqEPpvMJ/xyTVNeHQuk5rQtx 5AZYmicjiOssR2pLT0jefLL4DO/qGWHXMzSv02rQxT/TkhTdFP9BpakEYFZ4wwdFN0Vj FRteLKnSqdkxTPG5z+htr/JzUjuEPbHtgbzuX/I+aeWe2M22ugYxcUoKzHXhdrarSzyd 9tWnXBbdD7aR+T9TQAb5TySjOA3OaPGggnKcAxipRtBVo0vtGsqB1qcWPzl7edsfwOuy qtflaNtUOuZEHtBRePAVHUctZoHa5JF/kcDsDm0v0l9366x/X2xhm0kteibd4aWtiqIK aYhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702457342; x=1703062142; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3iYD9RnPAzZn/twKQIifseItY/M9p2JS4Pz3uXMUgu8=; b=CiLqhF6lnK7dOwN60JvPJV1izfxRsBeCf16VYMZrSFOSQ2NG0kiFckdwu4In+kD/VT ugJQZBcNN6/LZFAix2ewF8yfS8SlVKAFbeBNJHdrPAQ2tpf/ObLB5w/ALgObrjujpIbW 12317yEuc2GgsKSg9cNdQ7BXGzXbwIUwR+0Rt7StcOiM5G6kHc5VIf99tiHQPKgGKDRX lv4zTdiFD0Jnva8FC2WOlZdzd/Ob8ReafbSiiiUsCkHnk8M6CcOlPHknLCDgPH3G33UI EYHNdlB63gP1ucjeY0tFqlkD4/GXBTwIf3+VGFK/Z8Gy0I8cfzNbvQZpbMMqQQn+7U+S 1ceg== X-Gm-Message-State: AOJu0YzlUWmEA+MDLXXN/O2Tvkk2vhgZ0VFdk6xQIVC31iBSsa6aro4m 5ojXc4mHATCyZqy/JFTf2NDi9nHlzXuEd12W3YI= X-Received: by 2002:a05:600c:44e:b0:40c:6e8:610a with SMTP id s14-20020a05600c044e00b0040c06e8610amr4076458wmb.56.1702457341628; Wed, 13 Dec 2023 00:49:01 -0800 (PST) MIME-Version: 1.0 References: <20221219061758.23321-1-ashimida.1990@gmail.com> <20230325085416.95191-1-ashimida.1990@gmail.com> <20230327093016.GB4253@hirez.programming.kicks-ass.net> In-Reply-To: From: Dan Li Date: Wed, 13 Dec 2023 16:48:50 +0800 Message-ID: Subject: Re: [RFC/RFT,V2] CFI: Add support for gcc CFI in aarch64 To: Sami Tolvanen Cc: Peter Zijlstra , 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 , 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, wanglikun@lixiang.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Dec 2023 00:49:11 -0800 (PST) + Likun On Tue, 28 Mar 2023 at 06:18, Sami Tolvanen wrote= : > > On Mon, Mar 27, 2023 at 2:30=E2=80=AFAM 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 includin= g: > > > > > > 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? > > I agree, this would be unfortunate, and would also be a compatibility > issue with rustc where there's ongoing work to support > clang-compatible CFI type hashes: > > https://github.com/rust-lang/rust/pull/105452 > > Sami