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 5CE63C4332F for ; Mon, 19 Dec 2022 13:33:22 +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:In-Reply-To:MIME-Version:References: 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=zQzdLtQ8TCGWeSHBiYlnB5sv36OY+ow1bbBmDKDn3ms=; b=DTl6FQnaNxnuj6 R8MHrxF9DVE0Et+x50EH8RRD6yCOIxSsEfM37NyabVXL81B9xwGygQszGGMumakSeJtvC2PVI5739 IMnUv6qwXe/ZuP0JZUNHYzMIkk0SWsrdLJIUPPHx6f2gYCrZ3BMp2JtjSFcr6ld7R2nrNXoUjdt9O YoZGso4oNMTlw07fNYplRhKsZ+Nll8n694A8JskWvVvHk//bSBlEVFj6FOPITMpVqyK0G7MBkhZO/ y+8qyo/3rgoe0jBOMq9qn+3UGI45IPKdEEK3hilwgoRC3OlCWKvTq+ffwmmf4s1N0C5vi7GvtCR1q 1hmoKn86cPU5dGOlefTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7GFb-00E1Pt-5s; Mon, 19 Dec 2022 13:32:15 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7GFX-00E1MU-BV for linux-arm-kernel@lists.infradead.org; Mon, 19 Dec 2022 13:32:12 +0000 Received: by mail-pg1-x52e.google.com with SMTP id e190so1713258pgc.9 for ; Mon, 19 Dec 2022 05:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=dBdUZZuJPOmpy2Xr6QADuWry9xil1hvmnye/zX2ZeGs=; b=fudn22QQR0cZNc/3RoQpxRlTLjwWSHPdJ3HbEt/WxpuONQEkIQnkWpBlerF9kEPodJ nHhQFOykKEx6IwR5/KfRtAGdVyduWE4KKnkENOc2szemL+pJqARz2salHLoW95MwEbdA 4l8C9DgDXblVaaqJ7qI9X4RGT4ChxV2bMC1ENtWvdqwdBfsedCwcpXE4H+LW+wNxHezu PrVxhEJl0r5aoDk7qfpvB3XMyrRfWqp0XjyDX+nwKDJBCaYRg3q9T6oErlC4ykTpLMIo lmb8XMScdS8JKQTabKQpf5aytupGC3t56WCAiBDQ8xriUGgm665URRddp66Cq+IxHZ93 WjWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=dBdUZZuJPOmpy2Xr6QADuWry9xil1hvmnye/zX2ZeGs=; b=wJ7D947AcQ9IXzb0Q/0ybOkEd/P9p8BP13BlhU8PoAUq335g58Dq+DmEeNebiGqhBI SK7SSuFnXEsIRa3Ns9iBkqBtMABHKQwiF4cQs5GUnjNVvl8TP3GRhN7lU1D9aDrOvUJZ l6woxthCZCsNDhwOV61qKJx+eJq7kNIgkGYZefoceb2BmqazQWzOGjonZDKOt0U6mt06 3cIlUcdnZyb6W5u0lwmnEGVTFoPdV/ixKDAZ6ewhGn+OLA3J3+sk9GEkh9+M3153sbsg +vBSjS+k7MqhLKpOvra8L/Dk2wDNfA9F+bcNXK0KQvgbVk9VN5tDuj4ZP+BfJm8qVnPu JMlg== X-Gm-Message-State: ANoB5pkQa063OW8v2j73EXRHRaHhtNPMZQ56wiRTxqNeJaCjp8Wu+hSC HtI5jhApRE4MjBAQEdakkgA= X-Google-Smtp-Source: AA0mqf7lo7GM8x5UdwEdtv60/3460fbiPsGJh8g4HC8TKv3RHlSb+qHW4uv3yzbalqxIGN7bytAd6Q== X-Received: by 2002:aa7:9f04:0:b0:577:4168:b5ef with SMTP id g4-20020aa79f04000000b005774168b5efmr42472793pfr.3.1671456729555; Mon, 19 Dec 2022 05:32:09 -0800 (PST) Received: from localhost ([124.248.219.206]) by smtp.gmail.com with ESMTPSA id s7-20020a625e07000000b0057691fb0d37sm6553392pfb.193.2022.12.19.05.32.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Dec 2022 05:32:09 -0800 (PST) Date: Mon, 19 Dec 2022 05:32:04 -0800 From: Dan Li To: Peter Zijlstra Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , Catalin Marinas , Will Deacon , Sami Tolvanen , Kees Cook , Nathan Chancellor , Tom Rix , "Paul E. McKenney" , Mark Rutland , Josh Poimboeuf , Frederic Weisbecker , "Eric W. Biederman" , Marco Elver , Christophe Leroy , Song Liu , Andrew Morton , Uros Bizjak , Kumar Kartikeya Dwivedi , Juergen Gross , Luis Chamberlain , Borislav Petkov , Masami Hiramatsu , Dmitry Torokhov , Aaron Tomlin , Kalesh Singh , Yuntao Wang , Changbin Du , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [RFC/RFT] CFI: Add support for gcc CFI in aarch64 Message-ID: <20221219132731.6ng4sz2nv6ujvu7i@ubuntu> References: <20221219061758.23321-1-ashimida.1990@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221219_053211_460332_ACE5EC8F X-CRM114-Status: GOOD ( 26.08 ) 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 Hi Peter, On 12/19, Peter Zijlstra wrote: > On Sun, Dec 18, 2022 at 10:17:58PM -0800, Dan Li wrote: > > > 1. When a typeid mismatch is detected, the cfi_check_failed function > > will be called instead of the brk instruction. This function needs > > to be implemented by the compiler user. > > If there are user mode programs or other systems that want to use > > this feature, it may be more convenient to use a callback (so this > > compilation option is set to -fsanitize=cfi instead of kcfi). > > This is not going to be acceptible for x86_64. I'm not familiar enough with the x86_64 platform, could you please tell me why this is not acceptable? Is there a similar situation on the arm64 platform? > > 5. The current implementation of gcc only supports the aarch64 platform. > > What, if any, are the plans for x86_64 support? I'd like to implement something similar on x86_64 later, but currently I'm doing this in my spare time, so it might take a little longer. :( Thanks, Dan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel