Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4199pxb; Mon, 7 Feb 2022 05:20:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLNYmOzE30GOjvOj2Zl7W0xQR9sk47jxr2lF4XWEgtXe2PieZc9k7F0zbJ6JBrmuT866py X-Received: by 2002:a63:5fd1:: with SMTP id t200mr9404466pgb.37.1644240000678; Mon, 07 Feb 2022 05:20:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644240000; cv=pass; d=google.com; s=arc-20160816; b=E6PhhivxswtCtchqPSgs4hFl2Ut5H/6WabQ6GfuotbPT3fpD2CkYS0W28OheyMjlqN Hb3/eYOqJw7++mGEZ6HS5qMkYGkhk7gn8dmr/mox43Kmbq0tLv/XHVwAPxanhZeiyZHQ 0L6bmxJlu1KVpVaog/VFpS17uaUehwYDnjP7BkhoxFRh0V8BBXxsh87GP7d0KYNx1/DG gdsMV2+LxB/PJ3QpEJWfj20KE/zXVpik1QqhKW1fv4xJMIzUViqrnmUFG0FO0i8EDnMD JBczOuNuvuCjS81A0i0m94BU67sjz8k0sEyXPosORWs9igkJXR48OnknR1xIXyPHZDOi p6eA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/8N7pPiEOYRxkCjIursxBhs7hjv/9thhRfMGGVGI0SQ=; b=it9tNifr5TKeITQTflUQbTsJzhAJ9OupGsP8oNnGiRj+I3MNR0Pz2XiWQnTueaz+h1 l+FtTmYID8uD5R5eJOlsv/z0Zow5WMf746B5Qx/6QTptoTfVG/heqxt+OvBpqi6c25+N uiISaM+D2r5b6JUPX3wvms8EA2lgGXzt63teBlMGgfIRc94EkND96Yi4OPXS/iQ00HRC 9Cb9wt7tmdpQyzrucYH1bVWMqk4hYloFQmBwWS1Q4jTCozCtmi9+1dcHfj0xgfB17Lzh kAnNvTedOgivm/6wgfrYKvY5KL/sr0K7z5HZWPRf/d8mFYOul75VnFAVqP/ZpONdFaQ0 oF2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kfUDl2QD; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7si10852338pfj.263.2022.02.07.05.19.45; Mon, 07 Feb 2022 05:20:00 -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=@amd.com header.s=selector1 header.b=kfUDl2QD; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348880AbiBDWV0 (ORCPT + 99 others); Fri, 4 Feb 2022 17:21:26 -0500 Received: from mail-co1nam11on2045.outbound.protection.outlook.com ([40.107.220.45]:57994 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1344064AbiBDWVY (ORCPT ); Fri, 4 Feb 2022 17:21:24 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HN0Sg/6O7oik+9Qmte078i6/u4+rNWL+6z9Nz1PEzgcqC+okxyLNNunPHKUUVYvhyvFyv4FZvp4REy1yWukLOG3FbPuisAzEYhWPAyEuro7TFuGZlfMf5ehdOcmGZ1COcebBTc/bxTigYZu37eGD0NVgQYUvue7Ld6qwB1ET9b98NemWoRg09voCVkrLB1CJ7vuzVG53oPl2wPv23+JIWSqcksavFT0hhSC89bWQMPeGAgxn4Dp+X1vpOltvIguhEU/UFn2yFKxvD391VYduwPeROV7gSBy0vdIZDUEFcZ0Qw2McTsk1jBA6cyXpBJ+lD9EiX7ZeJMd8TTw35dbslg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/8N7pPiEOYRxkCjIursxBhs7hjv/9thhRfMGGVGI0SQ=; b=d3PBtFGKL+6HZ5aWgRkyKRGD+bUGFz88LvaTVVwRWrko+8oob6nkH5MfIaCpjgeu27iJmpe7S6PvcjUJylG8twspteVjZzaCI7i2DS4iv2yyQbO9V1N7/L99lpnodTqkAfvmO38I4s5/lIrYvPB4aIDDBU3f3ozjvgErk15Nh7lOuHRCVT6pwc0NiQbvAjInhZxft92AK6b6MuoDRWhTAXYX8k/V6Ec8v/zPhlMjkjIee/ns8X6diIyQfBnoOjIdTV6nzleWViMF4lQjnvr+nEddSa+JmxykNzf0x141CSe9eQgGvKaZmQfW9NDdJRPX4GLfKVI8WPTjlmL7/pUjPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/8N7pPiEOYRxkCjIursxBhs7hjv/9thhRfMGGVGI0SQ=; b=kfUDl2QDTbnRuk4IPBwnbp8OvWkOOwUVGjt/6sJHQPWEGjknPlGxpsQc2U6ORsWEDF6NwL6koBd6cN+ZR4YKmxCLJQWbkpRmmMPrchLUk6UR1WelBTZqDKey2iYJHopzuzgazdLwcobuStx8L2QHl/yCysrdoRidkdZvkqqO+RE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MWHPR12MB1471.namprd12.prod.outlook.com (2603:10b6:301:e::20) by PH0PR12MB5481.namprd12.prod.outlook.com (2603:10b6:510:d4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Fri, 4 Feb 2022 22:21:23 +0000 Received: from MWHPR12MB1471.namprd12.prod.outlook.com ([fe80::146a:ebef:a503:c2bd]) by MWHPR12MB1471.namprd12.prod.outlook.com ([fe80::146a:ebef:a503:c2bd%8]) with mapi id 15.20.4951.014; Fri, 4 Feb 2022 22:21:23 +0000 Date: Fri, 4 Feb 2022 16:21:08 -0600 From: John Allen To: "H.J. Lu" 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 Subject: Re: [PATCH 35/35] x86/cpufeatures: Limit shadow stack to Intel CPUs Message-ID: References: <20220130211838.8382-1-rick.p.edgecombe@intel.com> <20220130211838.8382-36-rick.p.edgecombe@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: CH2PR19CA0006.namprd19.prod.outlook.com (2603:10b6:610:4d::16) To MWHPR12MB1471.namprd12.prod.outlook.com (2603:10b6:301:e::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: efcc7f32-aefe-43af-06ac-08d9e82cacd7 X-MS-TrafficTypeDiagnostic: PH0PR12MB5481:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dbg9kaq7R6OiuLciuzua3Hr3erEyxTSyoLUZZvbY0OWwMHDX+IluepMgcvLV1c+3O2yLfmkmyOM0YrSslPxhht0BzDHr+JnLM90n4neQBWdLrv1BtR0StuabJNpSyMB5v9Z3Flr7XCjAS7Fivfaj63JuKNiqgvWbGYxpmNwkxczTn8vwE26/hw7rIhour1Eg3kZREdcKfg//P6mDH0CWZLIYamBxE6VQH95TytBoeioemjGxkxttkGiKcIxYwzMoXHPMdIzCz+gEYgKBIRtWrcQdNB5Et0jOAk463yBc3BmvZ7UqnNx+KtvI7kfwrtcYHkXJz/Tkb1Tlq1ztQDK+GdQNC5ENKdV2Da8NowacgFkWVDdlQA3hdgy4dHcZjhNDq5X8U8LgIgEv8LKhUqFPcvT2isR4g0nqXXvdJk1cBGcaCyYqMrLnbv3gWvRT/Dd2e8uXSxCxvK1Iud4AnuFxqOS2a5R9l75d6hPAgOZbf6C8OfAUZ89u39x3+ykHS35iMygg4Ksx8shZ+yrkPAoBRmLjxqin7BXfDrcb79ZosjuyKYkV/MfpxfTLNxxMtNkc+juPTKYsjcFs0WJHbMaKxFy948QPCpBWpcq5Z6M+PPMcW1xiL474oXye5dHcgDaN78JbxSF2RNHHmX9Jl5XICeV+9QWljkgefz+DmRojZX1Y7PfZzIHg6ggh8LcrhF9M+8xonJxHXtW+1SotZND37GZE/UIkID/1QQdzVZ6vTvYx2dGNhFY4UOd+YNqm3UFHXlWsEUVwBeqK0fM8elA5BA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR12MB1471.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(4636009)(366004)(2906002)(44832011)(53546011)(54906003)(5660300002)(33716001)(38100700002)(6916009)(186003)(83380400001)(26005)(508600001)(66946007)(8936002)(316002)(6666004)(86362001)(6512007)(9686003)(6506007)(66556008)(6486002)(66476007)(966005)(4326008)(7416002)(7406005)(8676002)(67856001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EfYcgfhB/dJ1658uvgvBx4ulncrwkdZBnMxBuUdRXUdfgmZQ2KQD3BwDMsDG?= =?us-ascii?Q?CTqk0XEKXbGEgsLPNkuXshylB7ETJ25utecq0QPkviAxzdAlEtQg1Exsx5qv?= =?us-ascii?Q?WW7kl12xgR/aIx04S74FIJXj7VtwrxeZ4I1hZAF2A5mkSEdiNPotgSK26Mf6?= =?us-ascii?Q?O0fAjkt3TtUi5Z1bGyOGzK8oRxPS+oCAw80PG2Kcc6376MJRXYYG7NcpYZaR?= =?us-ascii?Q?G3/SGT5SiLEWGzkHu7c3jiX7obyKP7xNwLlHX2q5N5WGmT+wGTNNKmsu1XVC?= =?us-ascii?Q?p9SeN8f1T7YNXxNc714rSffbRk2/bnJOoxNBb8lUV4t3K+vS6R26+CarJ1TM?= =?us-ascii?Q?K7p2IHHI2W76i7JXyqsl0x/320wgXJwqPsxRDcHSliOvWNWt0wb0KUshJLpm?= =?us-ascii?Q?rSwfSxeyRUIh2X4181rnQz2TJSrjtwlE+C52Lorp3jl3cYrivCeZ3uAMUgdq?= =?us-ascii?Q?TDISh13uMzjv5ura0mz3jjnNwQ5yIlfr1TUCEXft+j9KSiUwWKzYj8i17u0Y?= =?us-ascii?Q?5MN1FRLD/R3dhhxh5fwQa5RUCcEvgYEhNdPqFWLQmf/uqCbBG+p4cfQ92RWM?= =?us-ascii?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mI4xdx6IMRTEBmSViPKd/+U?= =?us-ascii?Q?idPzZya9ypwresjdBAicKOdgbqH8D4mtSrlfFqvmYQYGNcePFVtSyXejW8Y1?= =?us-ascii?Q?lFXbNSC4OHN6T1jHaHHMFyU1WVlxVhMzNDR2WYWcJaLTZq0AEgkjSQWlnDwr?= =?us-ascii?Q?oAh5lb0Ngg3JBomAQLLAf5M=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: efcc7f32-aefe-43af-06ac-08d9e82cacd7 X-MS-Exchange-CrossTenant-AuthSource: MWHPR12MB1471.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Feb 2022 22:21:22.8738 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FefgeVvj9iUIp+spUVYPGzD5ROXKR/P8fPqndBuGRF8O97SS/2EECoZTnLqmft4W+rd0BGagHv7TiBx0YgJfPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5481 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 03, 2022 at 02:23:43PM -0800, H.J. Lu wrote: > 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 Thanks, I ran some smoke tests with the updated glibc and it's looking good so far. Additionally, I ran the new kselftest and it passed. Thanks, John > > -- > H.J.