Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1430820lqm; Thu, 2 May 2024 14:54:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2IfThHUG9bsSRQi6127dnFARzPp2fFYs1Uz/jrXbhtWsfiyVtb7TBcMc1SWgxk6rYNQq7bQpi8gjTLLNG81VfW30yxyCqMnmrqROx9w== X-Google-Smtp-Source: AGHT+IF2JbjYWqDAT762mDK4NW79utDXxjE00hNaR4eP5iTUOp/cmBN5kov7Hfj0TJ4uL37vi9aX X-Received: by 2002:a17:906:40ca:b0:a59:6ea2:aa85 with SMTP id a10-20020a17090640ca00b00a596ea2aa85mr459425ejk.52.1714686897847; Thu, 02 May 2024 14:54:57 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p26-20020a1709060dda00b00a51dec4612csi904745eji.197.2024.05.02.14.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 14:54:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=JzNv7Mjo; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-166984-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6D1F51F23F7C for ; Thu, 2 May 2024 21:54:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC47757C94; Thu, 2 May 2024 21:54:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="JzNv7Mjo" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2042.outbound.protection.outlook.com [40.107.220.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1085957C85 for ; Thu, 2 May 2024 21:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.42 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714686888; cv=fail; b=dx+hCZsutkP152iKH1dGiYvlvHsyyIWdUlc2cWg9L4yMChFN8HTzHBk8fHXLlrfghz4J1lqtumMBO/kqSNqMribjzXh0HQWHB4okgd6FvTSuZnClnKayr1juAVxXeTFaOCrfEXyQCWGah3bfjD2ni4aYwvH8Z/+3LCc5iYDRQb8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714686888; c=relaxed/simple; bh=Q/pUuz6M4la37jtfvyiv2NAPtZJCbzq+TevNUD/eIKM=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=Ft5SJcGsXcdkKnEnlpo0/MFIZUSZoaxuJ+S1HqSvVU+vEOB4sexWgRlNpbdZy1P/O+SaAEtNU5muy+uK2Hm3omsNbN0/aqtaPn81ukfGG4KKfOnh+Q7QIuWLEU6MVw3kQCHkvcarwki/0+eTnWO7vx6tvXYv7907LiL7pCyxs6Q= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=JzNv7Mjo; arc=fail smtp.client-ip=40.107.220.42 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gEWProBIlq33E1r5U5LeC1zNyvyYClA1BVRePywF5yP6zWtzfI+zoMRkpLBPhQzp1qxNXcu/KPs4RGO/3bIWiAQPoG5b+VX0sVuDYNsLHapfs6aUVkS48pjR212AEQobyxZG73vNysWchvDzjNVxGGbA4SfsXWPqA/J9/BasDsuoRTwiq3Sd6zQDzayJQ7vzQs5i+a0XizaR6UmqafG8o4od5NCVPKxIi9HvGg3TH/p6ItdYxZNvI2smHfrUCCIIXkBhg/lnEzkkV2oDgUaGVptI/dvjp8hDt5c2uNzGv3qOamN7htjU9KBcjUVx2BfWjfAC3CVy80L1z5i+dpB6Ig== 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=F8h2Epx1OjdpJIdtoXxETevKhZ88CI7qtYJdOdoGsgo=; b=lu7CAdXGA/Bpfdcs470IqpchP/RUQIo+BrVzeniD0NpjYZgDCAhRfpcDuLB9WOkMOZS8R+Lds72ZJ8SUZn9h7USRbUdmV6Cz0r6UJtTmWid4q/2yhGL79RnZv3N2Tu6jLOEPWQS2izLSRVbETuGk+TvSmH0CGMQO/ZCXxaHeCehLknvSss8xODvs5/4gCfb/fErYzswMZ/hoq6N+CUZrVWSyw+VMCzg/jmFdxct4unPVHeY8eXO+UzMVd5A1pzZHax+3aPdEM6NTK76GqZgnj18bvHI79xZ4O09DIevbyVn/5JJZ5QC9Cr1Wcr7cjCBCMS9x+ZQAr/mddFwgAD0OLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=F8h2Epx1OjdpJIdtoXxETevKhZ88CI7qtYJdOdoGsgo=; b=JzNv7MjoPbfRSDFtpSFAWRhiNUMCtIG2X8N5kpG2SzGHRB2rVsCs4Q90jKl9EUYqi9uJ5U76m7pBccfLiIxTMrGGEVohlIq9j2aWHa7DDIZeaWkC03SR2Kau/WyTCAa2TuYKu0CL2Z/v527E6ViuVNOdNcIhCXLnCkxxSTDfut4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2767.namprd12.prod.outlook.com (2603:10b6:805:75::23) by LV2PR12MB5800.namprd12.prod.outlook.com (2603:10b6:408:178::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.26; Thu, 2 May 2024 21:54:44 +0000 Received: from SN6PR12MB2767.namprd12.prod.outlook.com ([fe80::3cc5:f552:44ae:1f26]) by SN6PR12MB2767.namprd12.prod.outlook.com ([fe80::3cc5:f552:44ae:1f26%7]) with mapi id 15.20.7544.029; Thu, 2 May 2024 21:54:44 +0000 Message-ID: Date: Thu, 2 May 2024 16:54:41 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 0/4] x86/snp: Add kexec support Content-Language: en-US To: Alexander Graf , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org Cc: rafael@kernel.org, peterz@infradead.org, adrian.hunter@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, jun.nakajima@intel.com, rick.p.edgecombe@intel.com, thomas.lendacky@amd.com, michael.roth@amd.com, seanjc@google.com, kai.huang@intel.com, bhe@redhat.com, kirill.shutemov@linux.intel.com, bdas@redhat.com, vkuznets@redhat.com, dionnaglaze@google.com, anisinha@redhat.com, jroedel@suse.de, ardb@kernel.org, kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org References: <20240409113010.465412-1-kirill.shutemov@linux.intel.com> <26b3b3b5-548d-4ebd-9d21-19580a41e799@amazon.com> From: "Kalra, Ashish" In-Reply-To: <26b3b3b5-548d-4ebd-9d21-19580a41e799@amazon.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA1P222CA0079.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:35e::16) To SN6PR12MB2767.namprd12.prod.outlook.com (2603:10b6:805:75::23) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR12MB2767:EE_|LV2PR12MB5800:EE_ X-MS-Office365-Filtering-Correlation-Id: 96562c17-f518-487c-0154-08dc6af279e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|7416005|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NHBVbTE2Y3V1K3cvZ1FLMFgyVVFsK21aTFBrSG1HNGtlcW1FOGhucDRLUkVp?= =?utf-8?B?RmJJVzVjRWh3bjlBU013NURDcWxsUS9qTTVEVXNYSlJZeUNFVDBXM2lNOG9S?= =?utf-8?B?UEMxeVpTUGpFNVQ3S0lVR3g2M2ZOSTNJcTkrM1k5Zy9YVFBPc3JxRXRsVExS?= =?utf-8?B?YndRSGUzT0lUdXlLVW5kbW9ZWG5vQlAvblMwSTNBUXlRaHlxRThMVlNyb0lx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EZmtEUVJJcldjU0Ja?= =?utf-8?B?RHBjdDlQQk5OUCtvdlo5SWtJUmJhN0gyZUdoc3hXWHRRdGF4RW1uRXZRTkw3?= =?utf-8?B?MWptUHNBT002SWViVktOeWRmM2FndkFxSmN1Qm5YZWJ2ZEltcENmSW1YWlBT?= =?utf-8?B?dTVadG9VL0dSWTVjRnNEMkd3VlJ1cjBNcFlSTmsvQ0xnenNkRUpDbkFkYVVy?= =?utf-8?B?UHRmK2NQcXBXRURteURPc0c2MTdrc205ZmtxV3hmbWgyRC9kWndzY3pFeVpW?= =?utf-8?B?NGlQaFhwTy94U0d6cVNFbVNvTmlGUDRNTG55RkY3bnVPayttdkdFeEJZQlZB?= =?utf-8?B?VWpiK1laRFJaMlZ0UkVmeHBSSVExN29MNlg1OWJjb2NmeHdkczdsVzNIaWhK?= =?utf-8?B?WTdoaE5DK1Mrc1VQblZuTkJvTHJsc0Ezd1N5ajNvSGtXaVhrNlV0aFhaRDJP?= =?utf-8?B?bzlSYWZ1dDFEUDRvWTFUbHRzRnZVb3VnY0E1cE92RkhMUG9Nekp3eVNiazh3?= =?utf-8?B?TGNYeU0rckg2WG5WWHNYS3d1bVozdmFZdzNiSjFnb2wzS1U5WFNYK1QvaE15?= =?utf-8?B?djduTzZZaFh1QXlQbkI2L2trMXZBWmRiRXI3L3dJb1Awd2dJTlVGd1dRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2767.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(7416005)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NEtXaGI0NXd3RDEzdEdUaFY5NDVpR2RrNmVGZXYzU1BhNzd1c21YcnJMNGFw?= =?utf-8?B?MVNYbFZpRStzV3lldjJtMVFDQVNnTUJiY2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1dnJYMGg0cVFuWEFWMDMvTU5VS040RnFwb2FhZjhuMGZoWGJpaXBMVXBD?= =?utf-8?B?NzZ6TzhhMDluZWE0Y1JlR2hML1hJbzJ0QzV0ZzVPQU5wQ1h6WXYwRkNZUHAr?= =?utf-8?B?TnIxa0hzQlM4V1EwdzFZdHMzZm11WWNLUzBVS2ZzZTFhQ240N045ZGwvRlhI?= =?utf-8?B?YnpPcXRDMFNSbXNORy9UZ1g0amo3S0IzK3VaWHdROHRZSk4rQ1QwUzB1M2d4?= =?utf-8?Q?M7T5MkPa9scGlVp0zy2rsXdxz?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96562c17-f518-487c-0154-08dc6af279e7 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2767.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 21:54:44.1245 (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: q6LrGcqBm2JzpoESdIqFZO1VObL3IZRlihEROaT5CW7iUXcl++979KbDJIktBRc3LgiFughE9BTR8fpAIqOB/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5800 Hello Alexander, On 5/2/2024 7:01 AM, Alexander Graf wrote: > Hey Ashish, > > On 09.04.24 22:42, Ashish Kalra wrote: >> From: Ashish Kalra >> >> The patchset adds bits and pieces to get kexec (and crashkernel) work on >> SNP guest. > > > With this patch set (and similar for the TDX one), you enable the > typical kdump case, which is great! > > However, if a user is running with direct kernel boot - which is very > typical in SEV-SNP setup, especially for Kata Containers and similar - > the initial launch measurement is a natural indicator of the target > environment. Kexec basically allows them to completely bypass that: > You would be able to run a completely different environment than the > one you measure through the launch digest. I'm not sure it's a good > idea to even allow that by default in CoCo environments - at least not > if the kernel is locked down. > I thought that kexec is disabled if kernel is in locked-down mode. Or is it that KEXEC_LOAD syscall is not supported/disabled in kernel locked-down mode and KEXEC_FILE_LOAD syscall is supported ? > Do you have any plans to build a CoCo native kexec where you allow a > VM to create a new VM context with a guest provided seed? The new > context could rerun all of the attestation and so enable users to > generate a new launch digest. If you then atomically swap into the new > context, it would in turn enable them to natively "kexec" into a > completely new VM context including measurements. No, currently i don't think there any any such plans. Thanks, Ashish > > I understand that an SVSM + TPM implementation may help to some extent > here by integrating with IMA and adding the new kernel into the IMA > log. But that quickly becomes very convoluted (hence difficult to > assess correctness for) and the same measurement question arises just > one level up then: How do you update your SVSM while maintaining a > full measurement and trust chain? > > > Thanks, > > Alex >