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=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 244B4C2D0E4 for ; Fri, 27 Nov 2020 09:29:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6390921D93 for ; Fri, 27 Nov 2020 09:29:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XZbRNFvM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6390921D93 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6E5286B0068; Fri, 27 Nov 2020 04:29:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 66EC26B006C; Fri, 27 Nov 2020 04:29:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 536E66B006E; Fri, 27 Nov 2020 04:29:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 396A26B0068 for ; Fri, 27 Nov 2020 04:29:12 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id EAB4C180ACEF3 for ; Fri, 27 Nov 2020 09:29:11 +0000 (UTC) X-FDA: 77529674502.10.oil71_1e16de227386 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id C243016A4AD for ; Fri, 27 Nov 2020 09:29:11 +0000 (UTC) X-HE-Tag: oil71_1e16de227386 X-Filterd-Recvd-Size: 4973 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Fri, 27 Nov 2020 09:29:11 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id m9so3902379pgb.4 for ; Fri, 27 Nov 2020 01:29:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RD6BXGXgO5CkMS1mHQzAuQIHEBQtva6qzduS8cHE1ak=; b=XZbRNFvMHGzqw3bLgf59ondA9kkygmg6jqtpAFk94WvpJxvJeldgSS5qJBzJ7C4lzP qRp2k6/gop1vLoyCr9qV7cNTpTTYBfEDe1zkGvA9eTJZRzatLurVE/APAWoXPYi/kBR4 htmYkZF00nVDv/43zPiXOzETimbCd3M/EMLKx0VaxTeHfzreYrmWEcY1r6ZTztlDqk7f yTkxytMYmyiXtA8nUokbc1LRilU6msBzwo7q0rB1hqwLqg3zifZCzQIc/Lyxp8HhGZoP CRapDt2mr1c9OZQE39C2GAYex+HKILxTVbXlsZOOh70EDma1OswVCDZlkDX+kdIES4ZI 3DPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RD6BXGXgO5CkMS1mHQzAuQIHEBQtva6qzduS8cHE1ak=; b=a4DYcAWR9yg+nd52C+syGW0CxsIhkP5K836/SYQgJICW6mCUkE+7Ai5OdbSz6HpgOe 0xAiMPy3Xd1DalG3Fxa8oORUOMCnlaz5e/qrRLyqo3Z93YKARsndqgeEqzIjOYFbXA// l3uF5zUHuLV/Z3lVNkcM99T+XSvakM4zBj5d2+1xxzujirwYwjGAIi/FjByav61zhlvn /ma+pUd+xr6umrJ7dTKmo3stcSq6Oz2hzUeb0tMwtP1r94eEag/lo1x8nfspYYz2Z1rN RLvLxjmSqYhH0SGeuaEF9CFyyUnniPHvOFYRSNjjQe4iI1Y4nQnzQ4P9PXMgZWKnJNE8 wFqA== X-Gm-Message-State: AOAM5336xpaejA8QXb73mcZ6nr6Lg2qr9O8Zm07+5pBzP0vk3+xPJicM qsm8cSCdQ8CzTcXqKqPczPE= X-Google-Smtp-Source: ABdhPJwKpcDRzKgCp6wpeBmbZQrSoxpmlCTjlyLLL8vBlwesx5hY7wWA+FRvpV0orAH0nIbVhvXmvw== X-Received: by 2002:a17:90a:c214:: with SMTP id e20mr8884618pjt.212.1606469350377; Fri, 27 Nov 2020 01:29:10 -0800 (PST) Received: from localhost (61-68-227-232.tpgi.com.au. [61.68.227.232]) by smtp.gmail.com with ESMTPSA id gg22sm8983689pjb.7.2020.11.27.01.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 01:29:09 -0800 (PST) Date: Fri, 27 Nov 2020 20:29:05 +1100 From: Balbir Singh To: Yu-cheng Yu 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 Subject: Re: [PATCH v15 00/26] Control-flow Enforcement: Shadow Stack Message-ID: <20201127092905.GB473773@balbir-desktop> References: <20201110162211.9207-1-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110162211.9207-1-yu-cheng.yu@intel.com> 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 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.