Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp176603rwb; Tue, 4 Oct 2022 02:22:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4MB2iUYxAle9fNHbd6fo8E04BzWNonv2Ku2qVMalV8twb2dx1CqV+Z0sy8Ymv1RiAoERfC X-Received: by 2002:aa7:838a:0:b0:536:101a:9ccf with SMTP id u10-20020aa7838a000000b00536101a9ccfmr26687417pfm.18.1664875333697; Tue, 04 Oct 2022 02:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664875333; cv=none; d=google.com; s=arc-20160816; b=F3pFNR7iT0EfJfEvNeRDrS5r+stQAzfkiTBJsARJpOz5aAg1/MX+U5vublcL/ELpJp 00Aj3JwQPDHly2STrV06hPGz0MPX4vE9PJVCs4xf9SdWuMr9lXegiaIn1Ba1Xg3cuyWa UepbtaSE8ue+V28E/2cxVn9vIx0O6emtGM1u4IVxEuFSUtgnsEfNVqfuH0t28639eIs9 i6jJpvez6e3bBYFM+6wggf1/hyI8YiaNnSi4JNt1gNMylNYvjZSooleJwk44htafT0qA FOFbOlSwnb06ESMwk+3LYIqqldDq4Nzro/Vr39Y3msT3GrKj4uvet9XincyornTmsVjS 6oOQ== 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=1yU1aKED1/HjRjYTJVlFFIKo8iwHYsppTCUk78I3q2M=; b=gQo6KhpMCAq9azLWCctb9Rfa7s5njkhK71B3yzs6wDlbedc04HyMEGiGlyhxKiEAvq DeGgD9VVHCr6fU9MGWXZX0Oi0f+WlqeYHUZZFxu6vEZ5+lOZlnmod3suP1VpSlr8oafA L+JDYHjorV2AoDhZLdRj1SkhiqnwOjwy+/ZOBn+S9hToAkVjcl38wqzrcamNb4Ihny2V 4uyILqOePjIaluLTLW8nhC7vGJ2mFRPXBR8zjdJUA1U75iCbvX9giUMttQFSCR4qYeEH knhBCs5c8vaIzjlKv+WlGF97wbpPu1LncYfMrbyuybOy863DpMJLWdamSTo3l7EXz9/7 ooYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fd64pqzS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a17090a0a8100b0020ab232487fsi2249544pjw.62.2022.10.04.02.22.00; Tue, 04 Oct 2022 02:22:13 -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=@kernel.org header.s=k20201202 header.b=fd64pqzS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229899AbiJDIgh (ORCPT + 99 others); Tue, 4 Oct 2022 04:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbiJDIgd (ORCPT ); Tue, 4 Oct 2022 04:36:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2499827FF8; Tue, 4 Oct 2022 01:36:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D2E90B80D6C; Tue, 4 Oct 2022 08:36:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59C95C433D6; Tue, 4 Oct 2022 08:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664872589; bh=Vta9NNBr6nkHrzFHJhf3d1KXNnH13ptRWqXqAZ9UuEA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fd64pqzS0vr1Ay1lpgWB0pzIJx/pan0dcKrQm+bEESTb6QvXN8YvuzOiuxvO9KTVb ek5+IBL+J9KydBy0BbecAAwU/jxjdjCx56Ix+M4Fx5jiW8JCShwS8lw8EgWGDBZ39w imMW7YzBADcIahbEZlNGpHe/fwLHm0MzdExPXLojDaBIOxijF18NtWIpX3cjiXiq14 fdUAAFs6aJtZBqP0tmFC061PEhUaAjdIpRo1lbbVrBDU1hH8c4ylTSdv75dGF/t0Pp B31dqnsqa4pOzRFODOizMXWBrH8EJlmGGC1zGaiWCUjHcwYrfuGNdzIQZsvIT/Y5jX 31+AYNaAKcBkQ== Date: Tue, 4 Oct 2022 11:36:05 +0300 From: Mike Rapoport To: Dave Hansen Cc: Kees Cook , 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, 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: 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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? FWIW, I've run CRIU test suite with the previous version of this set on an AMD machine. > -- Sincerely yours, Mike.