Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3556661rwb; Mon, 3 Oct 2022 17:31:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6vUV/mJlasnRwnyPn/0KmbPk8BNxRsqFru1E3sF39AXCgkwSl7dL9mv0JdRojCW4IUx7Cu X-Received: by 2002:a17:906:5a4c:b0:78c:c893:74e6 with SMTP id my12-20020a1709065a4c00b0078cc89374e6mr3096225ejc.545.1664843490358; Mon, 03 Oct 2022 17:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664843490; cv=none; d=google.com; s=arc-20160816; b=VqLaOCiNrBjd626Gxl2W2/IfCJLSKC8jj3qE0ZPEfNhZMRCmTNPmjhe2t1273jJD05 44u11PN7jC2lHcZI+Owg8ElHb2A5Ldd3I8q612Na9cuUddjdOWcEcnDo6cWcVEqg/WAm nJN/8NudrEOUPcNXz1P81Qh5ZiHg8Cv2MN1VBYfX02rrB7tJs1nG0YI4sER8l9wuR2/I pP+dZ+6vJ57F9W4Vn9j+VMRY9anrNwWw9FERVtxypjzc12mDY4Szq7mgJhYhMlqrbn1C A6CZ1SL6He1Sn62PEKE3ChecShGt/J9AGRqsSixpxaHr5BpEphntzuICH7jD3fSx55Bz I62Q== 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=UHb21iKAOr0dixbnKvFOpyl+rdeQazDsJI0KUTcj5+g=; b=JYIPQR7GdBA9F3XJJDFp0Ur2GuD5YtPugTj9Xu6oMUSIDyVkXGo3pXHfqWxz7U6Q4W BSxlw266GyN9dv5DnuLpE4cTs0r2GjC6+/AHx/kgetVXGV9W1y/C3Gsl4/PY0CkISgEv 1rQVlY0BFcBHr1L1mE7NYNdNT733ztbl0P11Okfk40zZOqN6KnZGwIP1plRrsPpBaTHp KaFsge0UO/QDCh4aD5aXJBGcFUfQwPjh4LgmyOC4yfia+nEe7+by+iXXUAwEGuL7YBp0 KyxeHGhe7g43rjVxGkJxDOY5YZvsJ4qMA3wb8n3YQbUsMUc2gsxNgSCijyaaTQoijqmZ 5tow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KpStkDnn; 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 hb43-20020a170907162b00b0073d5f9aa5e9si10947537ejc.327.2022.10.03.17.31.04; Mon, 03 Oct 2022 17:31:30 -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=KpStkDnn; 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 S229962AbiJCX5o (ORCPT + 99 others); Mon, 3 Oct 2022 19:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbiJCX5d (ORCPT ); Mon, 3 Oct 2022 19:57:33 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E9C15722 for ; Mon, 3 Oct 2022 16:57:32 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id r185so2299640pgr.12 for ; Mon, 03 Oct 2022 16:57:32 -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=UHb21iKAOr0dixbnKvFOpyl+rdeQazDsJI0KUTcj5+g=; b=KpStkDnnuZCV5Ylx+JpcbSSVcZ5VtJEhUFrVM3vKtPMRB8Q2OY9QojiRRJkwtr68xO 78FdHhezN5LHg2lyEeohpeZjvyF+/uATLemjDAhmV66ktRlADy9jiwIKe9pwRbwj5m5y AWYkxxyxNZ3sc1IMKb8B+XVg6xzbZdkYuPpvE= 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=UHb21iKAOr0dixbnKvFOpyl+rdeQazDsJI0KUTcj5+g=; b=yM7fM9QOwoe+nvJK/gE/aj61IqcFyPMSzaa5tryI7bPf9602kB7tYEIa0yEdPxENK3 HXsQTr2woZYSKGDchNAvpC0Ebvm5At6y3wTYY0MKrLWD55PN9/efgYyrAz2WaKc55HZo WX6KlZWSGnK5QVtpNwPk6tJ1rWAB69+f1ArAHdec45f0j9PLMheHgmIjspLa4xBG/xte lbr3LlGAFRNbox38euiznY8a45bS9RZ9HXf2Z+gqtSkR1eHohDNqyxmEEyj1FpuY1N8W d/UZQqD9HRAjzYXeFQ5bDGcGENThiDjdL+Q4EJb8CSUF4KL7wcgObJ0P+mxXY1jOm4hg 6iRg== X-Gm-Message-State: ACrzQf3NAfvE5kVaB11gpKe8neCHcgEkULBMH72+4MIH2evfMzTxUPAp NCD0H5eGCy+WLC86dyTdXQSaog== X-Received: by 2002:a63:90c1:0:b0:450:75b5:29fe with SMTP id a184-20020a6390c1000000b0045075b529femr5070949pge.541.1664841451616; Mon, 03 Oct 2022 16:57:31 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k14-20020a6555ce000000b0043057fe66c0sm7263780pgs.48.2022.10.03.16.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 16:57:31 -0700 (PDT) Date: Mon, 3 Oct 2022 16:57:30 -0700 From: Kees Cook To: Rick Edgecombe 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 , 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 Subject: Re: [PATCH v2 33/39] x86/cpufeatures: Limit shadow stack to Intel CPUs Message-ID: <202210031656.23FAA3195@keescook> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-34-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929222936.14584-34-rick.p.edgecombe@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 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? -- Kees Cook