Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3772554rwb; Mon, 3 Oct 2022 22:10:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+jgk67WJJPGUQU9HzgHbENS53fFrO+/js0rtqiNVtlu5k8aqSuPhMxxOVSupb8LRRRt/a X-Received: by 2002:a17:906:fc6:b0:72f:d080:416 with SMTP id c6-20020a1709060fc600b0072fd0800416mr17837860ejk.1.1664860242044; Mon, 03 Oct 2022 22:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664860242; cv=none; d=google.com; s=arc-20160816; b=Za2r4lkmF+C2K9j7tOHUXrE/FV6K6G457GmLDdJObXos7GDJY2I7oBlITfI5t59K3e aqyjnlxGm2EkwbKEBasbcuDVWRQajRdyNUyp18ivHlGOhT5x6X9TJjricYUeIPwdKV6P lnGTcHiw8AvOugLWfRZqXiqf7DEQdv7rqNHkxKG2ab8loeOHwZw2WcwzfJGVitcUmqfN SV718JTrfXKMTOu3hUSJLyEdt0TWDnaFIlnVPV4q1PYDngU23Q+xFw/yt0K53MoNQM1G zCL1gxY9bA7wo1w8w/bJFFtdUSNf5Fqw/AMDQcrj7L4Th81UBlXjOIHEVtSmRVUhY+oF ot6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0foMv+yNCzUvsFibuuhT0xJMSn3BsckwqQnYwsSpG6c=; b=vaeDvmPE7YRVxA3qLGiVCCzgnbvSCLfdiIDbVKFaloGp0moWSncR846wPJ0rHcdEGS kTUzI7Nf5H1EEvMr0/L4GZMRFM0mdoghZb5dbq9ojKWm7sB9S3Fbotw6Npw6j7LhZ6aA xEBqZkVfkbuaAZsloZStVL540EpZAA7yr5zyc2egzgBg6CD0BNPWlmA6TopvJFmbXTls GQyNJ0u4c058ri11GSIdgL/4mq327meQZ2P6slURi2b/rNPYKlZQDDMdFeMomC668kS+ D+suLX1bE8m3EF/8TPr9Z3N61Ceu0bg0Zn2kuYTUe3Pi2yZ8DjO1WAJXreoQ34jWzYCP ikug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kP2DU18O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020a1709060fcf00b007827639fb0bsi9066003ejk.935.2022.10.03.22.10.12; Mon, 03 Oct 2022 22:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kP2DU18O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbiJDEyg (ORCPT + 99 others); Tue, 4 Oct 2022 00:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbiJDEya (ORCPT ); Tue, 4 Oct 2022 00:54:30 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2168C459B2 for ; Mon, 3 Oct 2022 21:54:29 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id b15so3839443pje.1 for ; Mon, 03 Oct 2022 21:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=0foMv+yNCzUvsFibuuhT0xJMSn3BsckwqQnYwsSpG6c=; b=kP2DU18OL+6JoMmHiz7PTfk7riy2/Rm9Wy/RMJSZw0+4OsYTh77f0vWl9qv7iajjKy RIz6U5V4DB8c8PdV0j+66I9QzpbtApMOuki0n8qXkaXGXt3gywvOawzFAo8PZUDgrvLn K6ewO49a2ZbsvxZhb+uN62IdqX2lQY719nEKM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=0foMv+yNCzUvsFibuuhT0xJMSn3BsckwqQnYwsSpG6c=; b=Tz7VBe799X4W9yGybB2JKqUn6KzWU49iATM7Lez0Jn2l1O3ytzAZOpGVkKm28fLdQ8 oWpt7p+W7ukhnrnpijVPciwUFW8a/uEYFaJVLuvirRnt8mIL1vv6NqeBkbdnPr6Ii8Ci trCHQaJwHoWQkKCpnRkSQFqJDxMMABSupyN8+YsiFTPa02/OsO+xagcVO8FwMIsqAWqw waXiJKzX1rh5C4cjiM7YQOYkrNHovoNbFN4Nbp4fussgAgRZdHVwjlFJJIeb4BSPwgo9 v2ll+YFGl3700dQDZ9SgeHuoxMcTIieCYkKuPP23ElvBuJkfpUNQftgIS4X1tpeNKFck QkQA== X-Gm-Message-State: ACrzQf19nJRGgnGdfeuCrBXR8yuE7Lz1UrS1wNPiW42A0/J+k3YxZ9IF pI5nmk4bo04NvgTwP8xiLBiHrw== X-Received: by 2002:a17:90b:390e:b0:202:5d4e:c1f2 with SMTP id ob14-20020a17090b390e00b002025d4ec1f2mr15728874pjb.45.1664859268650; Mon, 03 Oct 2022 21:54:28 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y20-20020aa78f34000000b005617c676344sm2649775pfr.89.2022.10.03.21.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 21:54:27 -0700 (PDT) Date: Mon, 3 Oct 2022 21:54:26 -0700 From: Kees Cook To: Dave Hansen , "Gustavo A. R. Silva" , Nathan Chancellor , Nick Desaulniers Cc: Rick Edgecombe , 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 , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com, Tom Lendacky , "Moger, Babu" Subject: Re: [PATCH v2 33/39] x86/cpufeatures: Limit shadow stack to Intel CPUs Message-ID: <202210032147.ED1310CEA8@keescook> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-34-rick.p.edgecombe@intel.com> <202210031656.23FAA3195@keescook> <559f937f-cab4-d408-6d95-fc85b4809aa9@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559f937f-cab4-d408-6d95-fc85b4809aa9@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 03, 2022 at 05:09:04PM -0700, Dave Hansen wrote: > On 10/3/22 16:57, Kees Cook wrote: > > On Thu, Sep 29, 2022 at 03:29:30PM -0700, Rick Edgecombe wrote: > >> Shadow stack is supported on newer AMD processors, but the kernel > >> implementation has not been tested on them. Prevent basic issues from > >> showing up for normal users by disabling shadow stack on all CPUs except > >> Intel until it has been tested. At which point the limitation should be > >> removed. > >> > >> Signed-off-by: Rick Edgecombe > > So running the selftests on an AMD system is sufficient to drop this > > patch? > > Yes, that's enough. > > I _thought_ the AMD folks provided some tested-by's at some point in the > past. But, maybe I'm confusing this for one of the other shared > features. Either way, I'm sure no tested-by's were dropped on purpose. > > I'm sure Rick is eager to trim down his series and this would be a great > patch to drop. Does anyone want to make that easy for Rick? > > Hey Gustavo, Nathan, or Nick! I know y'all have some fancy AMD testing rigs. Got a moment to spin up this series and run the selftests? :) -- Kees Cook