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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FCB6C63777 for ; Sat, 28 Nov 2020 22:01:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 730EA223C7 for ; Sat, 28 Nov 2020 22:01:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390627AbgK1VvP (ORCPT ); Sat, 28 Nov 2020 16:51:15 -0500 Received: from mga02.intel.com ([134.134.136.20]:19858 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730015AbgK1Se6 (ORCPT ); Sat, 28 Nov 2020 13:34:58 -0500 IronPort-SDR: yZ5ypykwZaqAGwmfTPK4ggSzuCyzMIvoDmRZL7zSoZIZEOa9o+RVKR26mUKKrIeDxDvC6HhEuX GqfPTFIoLfBg== X-IronPort-AV: E=McAfee;i="6000,8403,9819"; a="159537387" X-IronPort-AV: E=Sophos;i="5.78,377,1599548400"; d="scan'208";a="159537387" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2020 08:31:04 -0800 IronPort-SDR: +n7zX3+y7NU8HyCqky6ikXcGlW5FSpcq0oLNmMMVjen8KqccfxO8hC+osTPgLafcCAfE1F3j1x QRE+JF0pkCEw== X-IronPort-AV: E=Sophos;i="5.78,377,1599548400"; d="scan'208";a="480007886" Received: from jckaplan-mobl1.amr.corp.intel.com (HELO [10.212.23.254]) ([10.212.23.254]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2020 08:31:02 -0800 Subject: Re: [PATCH v15 00/26] Control-flow Enforcement: Shadow Stack To: Balbir Singh Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu References: <20201110162211.9207-1-yu-cheng.yu@intel.com> <20201127092905.GB473773@balbir-desktop> From: "Yu, Yu-cheng" Message-ID: <60d3c72c-b85f-88ac-c79b-1340445bb228@intel.com> Date: Sat, 28 Nov 2020 08:31:02 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20201127092905.GB473773@balbir-desktop> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/2020 1:29 AM, Balbir Singh wrote: > On Tue, Nov 10, 2020 at 08:21:45AM -0800, Yu-cheng Yu wrote: >> Control-flow Enforcement (CET) is a new Intel processor feature that blocks >> return/jump-oriented programming attacks. Details are in "Intel 64 and >> IA-32 Architectures Software Developer's Manual" [1]. >> >> CET can protect applications and the kernel. This series enables only >> application-level protection, and has three parts: >> >> - Shadow stack [2], >> - Indirect branch tracking [3], and >> - Selftests [4]. >> >> I have run tests on these patches for quite some time, and they have been >> very stable. Linux distributions with CET are available now, and Intel >> processors with CET are becoming available. It would be nice if CET >> support can be accepted into the kernel. I will be working to address any >> issues should they come up. >> > > Is there a way to run these patches for testing? Bochs emulation or anything > else? I presume you've been testing against violations of CET in user space? > Can you share your testing? > > Balbir Singh. > Machines with CET are already available on the market. I tested these on real machines with Fedora. There is a quick test in my earlier selftest patches: https://lore.kernel.org/linux-api/20200521211720.20236-6-yu-cheng.yu@intel.com/ Thanks, Yu-cheng