From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.48 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796008357; b=ZpgEw8JyiLcSEIMZA62g446Fs+mijtyYelb2mpET5lWpzplYkiadIi/0y4Alw4JGlpvy cFMAkgu4Y0DLDv//pEduW5upTPY+keigTL/LrQWIPZ2+jUHe/BZ28XAK61jkXkJLStisC Zg55VyXnmbho+ZpX/GY84NV4wJTIrwwNriosbA+cA3RimJzK8rzUr3D9ObdheMWgINdsQ /dNm8GXuIoxS/BYR1mQJOcYkgwKrYh3GJatFxb9U6aNygBwmtmRkW7zlE1hXlLW9Ol5OM E4dvIpPjlpPITrDwmlD5QMy4VhcXLaqfcyVptv/7Vud3tA2t4IbjFAA/gBtwICXh6rA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796008357; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: CC:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-EOPAttributedMessage: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=ZprV+ODb7wODHOfFXDlaCYfVxgtoVjleclWnwrHwLqw=; b=Qow0hZB49lfI41Zqn4GTp7URBKLQ9Y+OzuuGFgCf5VnXB7OFLAbRXMZQ5W76zU0fmjhv TP6Il4TKhVPYwWdX3LU7FQ2sQYjL548COfpzJOTOO79WbJ/WqKMVbeY+w/kFaZo8DAU6R QQrFYP6W0pw8f/F8Ov3X0UlzZGUPEkdBrI6rC/K5BySEnsdxS6J4S4N9vOqWasOqe+BSn gws3O/T4VRgDnUM6a1dgw142Umd0wywYF2VJzfs1lFiiWmS6YFddbZcyqcvF3BxD73DOK 5wpTN1AmtD31MX4PEiBM1JPHNo5KuxA6jphXqg3D/58u5tJODhkVU2YhONZRbOjGPUw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=c3u+5qmU; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.48 Received: from BN8PR05CU002.outbound.protection.outlook.com (mail-eastus2azon11011048.outbound.protection.outlook.com [52.101.57.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86958606A31C for ; Mon, 30 Nov 2026 03:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 86958606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=c3u+5qmU ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qjWU9eJSvVZ+PazR9tAptxLfrwR0OIhj4xfItppDGiDrN4SBVoJw8a96yiHj+kgrwCBNfW4kDDFNcPootkWG97MViJ5cbQUZlcCtlGOcSLC4LuKbCMFwNXungFfd7SNeACV9rAsIWN5J4fHs8ynAF1e58bxcJBm8GCfBb923/oeFH5tTKJU3tOi2BMJtiXzfzfO49r+p/r2j02hIBGkq/aepxA62ciMVMMMdd68fQ/NWu0yXoDb4sBCJAqwHbMB1chtlh/clM5rY4Yi1s22jO06j92+S/cVtybHCC9TcxbAYYbF1szVfBQCqqMdqgwDtj3k6xmEwNzEIvcNqDLyqEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZprV+ODb7wODHOfFXDlaCYfVxgtoVjleclWnwrHwLqw=; b=HEdXb3jLNgU8VO+WT0mHlakfkLGrjWB8lZ3GLEESxkV0a9b0p87C7K0DSspwCVn/QNAnkxFnMehVdNv8jYloCMJm5ZpOTHeC9dYN75NwsxJC8TrdWryAVEFVOQiYk8fpHPPIB7IXQObqoF/KiwfRvzFxSRHaI7AWuIhwY18+fdC++9saLYsGbkgWERB5BocHQZJFpwsh3MIwZBM/FKVvjbPSxDdVewgU7KUF2vsWV81ivyJ5K89ET+qmv93L3TS8ouxV+1tym+OMl9cww641GHYx9iroIU2wjeExW1BlEzZ1mDGMBiijGpWJVKWRRleVH3ARwqTFg+53rSWEc/FsbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) 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=ZprV+ODb7wODHOfFXDlaCYfVxgtoVjleclWnwrHwLqw=; b=c3u+5qmUolLD/6sPs/qCAqYGQR2a9SR4a4WZKXDw5s31FM3+eSEi4JfGl/MUH7t3qj/yDxJc1EaC+jWqO3DEm60aWKXXUhSw425rL7LdpTvL4qM+mMMC6iu2CqvAMZk4jqAoTwsiYDG+iqh2qEuYbAKYq/NPIrtI6ZQ8Dt83Tbc= Received: from SJ0PR13CA0203.namprd13.prod.outlook.com (2603:10b6:a03:2c3::28) by DM4PR12MB6496.namprd12.prod.outlook.com (2603:10b6:8:bd::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Mon, 30 Nov 2026 03:12:31 +0000 Received: from SJ5PEPF000001CD.namprd05.prod.outlook.com (2603:10b6:a03:2c3:cafe::25) by SJ0PR13CA0203.outlook.office365.com (2603:10b6:a03:2c3::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.9 via Frontend Transport; Mon, 30 Nov 2026 03:12:30 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SJ5PEPF000001CD.mail.protection.outlook.com (10.167.242.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Mon, 30 Nov 2026 03:12:30 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Sun, 29 Nov 2026 21:12:30 -0600 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Sun, 29 Nov 2026 21:12:29 -0600 Received: from [10.136.42.27] (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Sun, 29 Nov 2026 21:12:26 -0600 Message-ID: Date: Mon, 30 Nov 2026 08:42:20 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 00/27] x86/shstk: More shadow stack enablement and path to IDT support To: Dave Hansen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , CC: Andy Lutomirski , Peter Zijlstra , Rick Edgecombe , Andrew Cooper , Kees Cook , Pawan Gupta References: <20261129222953.9124-1-kprateek.nayak@amd.com> <15614368-0087-4177-9a1d-249c9f9cfcd1@intel.com> Content-Language: en-US From: K Prateek Nayak In-Reply-To: <15614368-0087-4177-9a1d-249c9f9cfcd1@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001CD:EE_|DM4PR12MB6496:EE_ X-MS-Office365-Filtering-Correlation-Id: ea1d8337-29a0-46ae-e425-08df4e8fc558 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|82310400026|36860700016|1800799024|23010399003|5023799004|4143699003|11063799006|6133799003|18002099003|22082099003|10067099003|56012099006|261028144727099003|261026121527099003|261026140227099003|261022113327099003|261022075727099003|261102123227099003|261022105027099003|261021121427099003; X-Microsoft-Antispam-Message-Info: 1mhvq8XIH3/Hmm5xpdCmyv77sT+FjnfS+F6p303w9BeSU07rUtHT+YErFS6evGrACuDDUk5ukLTOX+hjM6V6tEEJxgDTu19hAF720hMKRh7v0OOZ/Y/NgFs9/PQtoUCGb/6MCQNTXDIcouYX3Pgk+IEU+bgz4+td6aoW/ZsJtC+ZpTpVC92pqmifKy9wG37oPQW49cEx0PIX9xfWc5CSH8WLG8V4JOv2Ph6JnInLOrMoOb/FDeKUghsC+25CgxfTU12Y2uo8w+tU3SuOVCJ5TCx/zRkOgQEC/CUPCRnjrKlTTnmf7cpTKRfs8xn9D3YXcqoWW2CMVEhDSg45P2L/vJWemJ18e1RVBEmeC1Y+CeQGqASSebnj6rvfcOQ++wloeAQjACEONq1dLKRumdiPHzOYa4jkPf54NQs4hikVUjAM+WBwSvfy12nFJivX9X8a8fOnN8PrFhvXdnnWUm3NIzaQks9HaG3QikK2Ds2u2T4q20Al7jje34Z8vHWauVTFc/2lnCD+zGvcCdb5HDJaE2EVQfCoTUoJmk+dXajg5dIoj/rEvvJGABJwg6JF2d1jQBBimsqO6SN6f6xUCiBhgM8c9lHxxD3DSsrY/fa4581MuruKUOGrScDCZz3u1hQ7D6gDHUVIhmI7Hfp1ASvT065Zc0Gb4a+4NCc3pOR6kphajZvHD9dG2MUvsMbrHrDHcJ8Hw076giuaAchsBleSTA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(7416014)(82310400026)(36860700016)(1800799024)(23010399003)(5023799004)(4143699003)(11063799006)(6133799003)(18002099003)(22082099003)(10067099003)(56012099006)(261028144727099003)(261026121527099003)(261026140227099003)(261022113327099003)(261022075727099003)(261102123227099003)(261022105027099003)(261021121427099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f1WINGe0BgNF+Gqg0dgeCmnIDv8Q3t//zmFo3HrWRhwkxlcB4iSu4kb0W7ARdyVDVykd7LYDY6AOZHMpSR5VTt3EJ3n8lrYWNp2RJtxL7YBZxB5ZI9LmFUmpfpt/mrVH663ssAymZ5BuCs0WP5FeNg6tVU5S+SfHJmnUWmGW3wa7VJ1mByFl3fN35n7DiGmZ0H0wQpUGwk4+KacaGlpgGEYFlOg+9hgFI2vTHvQvyaIu4fWuC7luGENVlmQpRyyZrn6k90FLX3hxSyq+cPK7AMfbYakF2YTnAZcHIWI5fZ+MSV9L7TakKYStL4ykECcfTK6fThzc4LWO3WLd4M7BU/b231PHYD05Y73QLCxMgMh76xhrg0WjdUzv+bccoCAEgYsvh/9p7MLlvLwpjGig9FW1CC1Bc4r8kiAGEtCKrQLj6PKPN52A8bYpXHtwtkBm X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 03:12:30.6840 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea1d8337-29a0-46ae-e425-08df4e8fc558 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001CD.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6496 Hello Dave, On 11/30/2026 6:02 AM, Dave Hansen wrote: > On 11/29/26 14:29, K Prateek Nayak wrote: >> Disclaimer: A large part of my understanding of shadow stack and some >> parts of this series are from interactions with AI agents. Please >> forgive any slop. > > Honestly, I don't think I can even look at a series that comes with a > disclaimer like this up front. This doesn't sound like code that you're > confident in and proud of putting *your* name on it. That disclaimer was carried on based on Boris' suggestion on an earlier version. I'm confident enough to sign off on this iteration of code which might have a bit of human slop from my side more than AIs - like me being unaware of FRED_CONFIG[3] for CALL emulation and how I've instead done a ftrace_regs_caller like handling at FRED_EXIT. > Instead of trying to add thousands of lines of potential slop on top of > basic functionality, how about we all focus our brainpower and token > budgets on getting _some_ kernel shadow stack support in the kernel first? Ack! I'm all for it. This code came from an internal ask that required supervisor shadow stack on linux with a configuration closer to a distro config to confirm an observation. In the process, the implementation turned presentable enough to warrant a series hence this RFC. If nothing, please consider a version for Patch 5 for your next iteration since there is no SERIALIZE on Zen6 and IRET-to-self will #CP. Other than that, I'm sure your series will address the bit I've stumbled on. Please do keep me in Cc: and I'll be more than happy to test your iterations on a Zen6 machine and provide feedback if I run into something funny. > For instance, should I be spending time on reviewing this? Or should I > go spend time on trying to get the FRED-only series in shape to be merged? I would suggest glossing over the cover letter once for the account of all the sharp edges I stumbled on. If you feel anything is worth substance, maybe take a look but otherwise, you can just skip over - whatever gets the kernel shadow stack support mainline quicker, I'm all for it. I did not mean to step over your work and I'm happy to be a fly on the wall on this, buzzing occasionally :-) -- Thanks and Regards, Prateek