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 36217C63697 for ; Sat, 28 Nov 2020 16:31:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C6B7F246CA for ; Sat, 28 Nov 2020 16:31:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6B7F246CA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 56FEF6B0068; Sat, 28 Nov 2020 11:31:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 52A7A6B0075; Sat, 28 Nov 2020 11:31:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4106D8D0001; Sat, 28 Nov 2020 11:31:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0149.hostedemail.com [216.40.44.149]) by kanga.kvack.org (Postfix) with ESMTP id 2549E6B0068 for ; Sat, 28 Nov 2020 11:31:10 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id E19F48249980 for ; Sat, 28 Nov 2020 16:31:09 +0000 (UTC) X-FDA: 77534366658.15.town87_250b0a627392 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id EDA561814B0C8 for ; Sat, 28 Nov 2020 16:31:08 +0000 (UTC) X-HE-Tag: town87_250b0a627392 X-Filterd-Recvd-Size: 4185 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Sat, 28 Nov 2020 16:31:06 +0000 (UTC) IronPort-SDR: n+3SSq6I1vw4wmbuZ7gr8/y4K0on8q2zFYHqn4eg5I0+4SsnivUQXM7FF66zp6/+sfYLZIgoPN M/ptMl+Pm/dA== X-IronPort-AV: E=McAfee;i="6000,8403,9819"; a="152320240" X-IronPort-AV: E=Sophos;i="5.78,377,1599548400"; d="scan'208";a="152320240" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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