Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3004180pxb; Thu, 3 Feb 2022 21:46:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+FJmSyKc+bOYRe98SSaAujjmvAnj4+yDVj4Ajwxs+PXwHgNDr8txWhv0q6f/ISfDiAZpq X-Received: by 2002:a17:902:d2cc:: with SMTP id n12mr27767plc.8.1643953600029; Thu, 03 Feb 2022 21:46:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643953600; cv=none; d=google.com; s=arc-20160816; b=zDAwR+8wmuliHEyTroAJ762wTB2c58D30taNTjSNUjDO16ruNmvns75R9a5HM1Du8z KDSWjZM+vcG/GRna0N/sct2knyCjrWqdJlujPGBr3TF5Mx1zH1AqAqnRQV5iyPrsuFRV q/OjfplZZanV25nP5wROM1RAg2fQr5vqvSbqa+RDoF5fbjYHjOn1AzQQWolbqScWwmIr JTyLXqPoARcRn7vvTt395k/Rvw0DdaD/xFWRq+Ke/Q38IeSE2jqId8WRM0q6xQjUn9UI vdNm/D6KmvwCW3Y2bQsJGW/1i4TLPQNIMrqxFLLs4C7awV4Z2eWztz3TzDrjzR+xkTJ5 ZfCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PlIDP1o24LdMRWZjnewjhrwwRT0kaZCiZatY+bUHhaE=; b=XpyB4U3VBWnM5/IozkM0zq4vMn7QXf+i/DN8p6M3Q6BkKcxuM8KdNMHCK41jT30hPu KXFxekL0MXOJNQ5+WWH5WyEMrrDuHp16MOSffmgGcPQy1accUiGPo3pU5ydLJLLal5yx +J80YKc9OkIdCYMn7DL9MxclRMBUmYuh2i/vM/cRleMh4cLNZnsDIA5peYrnOEqbmjEa Qbhchjeyzen28SJ/c7Y6B/z660ZKAsvw1Dni08L5DExHbmyYMx6yrrFTrExU99ZFqX29 PaBgzkbnfVcdJa8IU9NOcAUSYWuWAFqGHjbwQPQvF4y+mjOhdVQNipPU4wpetXOtSCmC Tjbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Pa/zmtlE"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2si973341plh.127.2022.02.03.21.46.25; Thu, 03 Feb 2022 21:46:40 -0800 (PST) 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=@gmail.com header.s=20210112 header.b="Pa/zmtlE"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234767AbiBCWYX (ORCPT + 99 others); Thu, 3 Feb 2022 17:24:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiBCWYV (ORCPT ); Thu, 3 Feb 2022 17:24:21 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 728ADC061714; Thu, 3 Feb 2022 14:24:20 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id u13so6345413oie.5; Thu, 03 Feb 2022 14:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PlIDP1o24LdMRWZjnewjhrwwRT0kaZCiZatY+bUHhaE=; b=Pa/zmtlEee6Bkck7BMVEfXmMkzXP7n3Zhw3ZwUFdHgIL06epfTuIRhs4L5f2erOEv6 /CSfNsvyXtX4OQ1s9KNuwxEBa/qJnLh1Ge66zdYYJ721V6+XtZhzbma5yb3YWhAySLpO H0ah0BjAz1rrJGsnye3ObO+TY6qHSGQijiMCZdIt+nZ6qRGbfB5YpP/dzN+hq+YELDyD N50HGOsgS8Wlm8RvKWigiNb0k4VWtS5FF8Ll9SRXU2rPD0AU4sAd63KiX5N4AlqvD5ZX /Ul8gq4dI1BoIhfu6q46m+cmamckrA25fKM3V1Q4jgQq17TVecEoOQT21aGzRqwxevJ2 L7lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PlIDP1o24LdMRWZjnewjhrwwRT0kaZCiZatY+bUHhaE=; b=Zq/vNshbTfyq5r+Ys9kul9q0S1EHYA7iRnE/2eynaSBwSbMGIz35NwkIJtrfmF6G/1 gO1N0TuxN6zBCAV8FyNqIBvXq4ls8zAkS/ykSnQJdGS+z9KDK9c09lRdJ4wF/QwW2MHq YeNRc42Yd7t1BV2/DF/4GWnzhfYNDYTT9xKGL7cYomDGr227QfZLnwUOfmkDvbo8IunJ kTzzDwih18+PSCeSA18f5tkp9MmFSPpYqMLWq5V0o6WFT/5gv0xhcFo0xyxm2cdnWOOn jsQNd4ScE/FjO1ZXrK/hR+38Sz0yTBMd1UEsFiHAAqxQc5saNHbxeX7IpO6XOzIBlCgb kLyQ== X-Gm-Message-State: AOAM532OVbYp0Rd2loauIpXarKeJNUioVIRJt2MH9zryeq1RJzdnns8/ Z2W7snjJ5veH38Xbn3uclH7LnFXhE1aGttKPSvI= X-Received: by 2002:a05:6808:159e:: with SMTP id t30mr27686oiw.132.1643927059755; Thu, 03 Feb 2022 14:24:19 -0800 (PST) MIME-Version: 1.0 References: <20220130211838.8382-1-rick.p.edgecombe@intel.com> <20220130211838.8382-36-rick.p.edgecombe@intel.com> In-Reply-To: From: "H.J. Lu" Date: Thu, 3 Feb 2022 14:23:43 -0800 Message-ID: Subject: Re: [PATCH 35/35] x86/cpufeatures: Limit shadow stack to Intel CPUs To: John Allen Cc: Rick Edgecombe , "the arch/x86 maintainers" , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , LKML , "open list:DOCUMENTATION" , Linux-MM , linux-arch , Linux API , Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Dave Martin , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, Kostya Serebryany , Stephane Eranian Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 3, 2022 at 1:58 PM John Allen wrote: > > On Sun, Jan 30, 2022 at 01:18:38PM -0800, 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. > > Hi Rick, > > I have been testing Yu-Cheng's patchsets on AMD hardware and I am > working on testing this version now. How are you testing this new > series? I can partially test by calling the prctl enable for shadow > stack directly from a program, but I'm not sure how useful that's going > to be without the glibc support. Do you have a public repo with the > necessary glibc changes to enable shadow stack early? > The glibc CET branch is at https://gitlab.com/x86-glibc/glibc/-/commits/users/hjl/cet/master -- H.J.