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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8687C64EC7 for ; Mon, 13 Feb 2023 01:39:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbjBMBj1 (ORCPT ); Sun, 12 Feb 2023 20:39:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjBMBjY (ORCPT ); Sun, 12 Feb 2023 20:39:24 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFD30BDCA; Sun, 12 Feb 2023 17:39:23 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id s203so7613367ybc.11; Sun, 12 Feb 2023 17:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QPZk2zCrVPmYTZkYOvzJCIeVJJCKq6+j1pxvOWvVxbg=; b=VPlOIKihz/PKsRVt1WTcr9X8Q80y/qgwwtjU8fp3nzIyPvCC5wF53UYHWMZ6abxjzK q0THmi691IsWpFq1NmC/dKkRbWdRuq6iAO9DgiRVHw3ff1GsfQ/VrBpQIu4cz4TWuJ2V H+/AydP0Iix0Z+juzKMkglbuQaO+WqqqVD35apHaLqxUDzQ+07Mi4EaRc3MMhILDsf7R w8am13ZBpwzD2CQjl3kRTynt+Ou2KPXQK8SW8VT155UYIQCFmJC5u6A968St/fR3BIOW 0jmGGaYnwEb0zt7KTfrMaSYIgqbr6PbwQoygxi794V2XMmqkuoBQHSBPPpaw2pT2Lb+H IfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=QPZk2zCrVPmYTZkYOvzJCIeVJJCKq6+j1pxvOWvVxbg=; b=sNOkJJQLSiy/7HYnHlTYFnj3tumiXP6E24JL+JCBFiSyCiahOvejHH5jFHfaYDBMna T1lC7d+hxvyhZD7GJAhyXEPIQklqrqDTsTZ4PYTwACOUujBzWID4U7OQnKWbCGfDqmJH xkzth3L812tInRdwrbt1NcdsilLeJW2DStCUoqc1mi1Ja/VkZDzY1qZY3JeCh63bf9BW 4JVi3Tk2HV3zAau+/PnAVA3GtmP194XnwvgNWdKRLZyl2+Y7IcC7I8b9abeSK8Ryg3j8 /z/wvbU5u1QhsgErGe+Nx/3KogSV1Wb9UrttvRkqjG0IjKkAabOo4hD1bVpFzGGBQSoq f2KA== X-Gm-Message-State: AO0yUKWy0wKQ4DnKqfErpbztB1jNC7KXnxhJ42nMb0HS/IfFcQ0mQPNt LF/UQLx54kXt60U7pSH59lhPKEcCKeuk9c1ZM2E= X-Google-Smtp-Source: AK7set/5Pze7wlBiSVJR3P/PqfM16NzhwqaLs1O2wEOMdzwBOeILv2xyKF5pvm8VZIHnHhlTj8Kd50/G2LSrnEny+J8= X-Received: by 2002:a25:9d0a:0:b0:8d7:814e:4e53 with SMTP id i10-20020a259d0a000000b008d7814e4e53mr1077946ybp.564.1676252363158; Sun, 12 Feb 2023 17:39:23 -0800 (PST) MIME-Version: 1.0 References: <20221219055431.22596-1-ashimida.1990@gmail.com> <20230210161827.ze2dtrfugydlbw2p@ubuntu> In-Reply-To: <20230210161827.ze2dtrfugydlbw2p@ubuntu> From: Hongtao Liu Date: Mon, 13 Feb 2023 09:39:12 +0800 Message-ID: Subject: Re: [RFC/RFT 0/3] Add compiler support for Control Flow Integrity To: Dan Li Cc: gcc-patches@gcc.gnu.org, Richard Sandiford , Masahiro Yamada , Michal Marek , Nick Desaulniers , Catalin Marinas , Will Deacon , Sami Tolvanen , Kees Cook , Nathan Chancellor , Tom Rix , Peter Zijlstra , "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, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 11, 2023 at 12:18 AM Dan Li wrote: > > On 02/09, Hongtao Liu wrote: > > On Mon, Dec 19, 2022 at 3:59 PM Dan Li via Gcc-patches > > wrote: > > > > > > This series of patches is mainly used to support the control flow > > > integrity protection of the linux kernel [1], which is similar to > > > -fsanitize=kcfi in clang 16.0 [2,3]. > > > > > > I hope that this feature will also support user-mode CFI in the > > > future (at least for developers who can recompile the runtime), > > > so I use -fsanitize=cfi as a compilation option here. > > > > > > Any suggestion please let me know :). > > Do you have this series as a branch somewhere that we could also try for x86? > > Hi Hongtao, > > I haven't tried this feature on the x86 platform, if possible, I will try it in > the next version. Thanks. > > Thanks, > Dan. > > > -- > > BR, > > Hongtao -- BR, Hongtao