Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp965187lqj; Mon, 3 Jun 2024 06:30:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYrFSBIp2oY45NcD0Bzhnc2a0NjM2c4h8Gt2IbM3bd5jyWht4voLmMRRATgGV0MhSRoSarDytCkC66lXhu8KU6jdK9+XUA4qTAfz/BGA== X-Google-Smtp-Source: AGHT+IHXFuB2c0hqjOdO5+rlpENFKVoDq7CY66giXGdcXp5Ir9fGAOATmF/P1JcSL6Xc0GSY3yxJ X-Received: by 2002:a17:907:105a:b0:a68:2310:1123 with SMTP id a640c23a62f3a-a68231011efmr514895766b.23.1717421451705; Mon, 03 Jun 2024 06:30:51 -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 a640c23a62f3a-a68b4727bd8si266648066b.177.2024.06.03.06.30.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199217-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=VcNDLSQE; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-199217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199217-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 3E35F1F239CD for ; Mon, 3 Jun 2024 13:30:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFF4412D74E; Mon, 3 Jun 2024 13:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="VcNDLSQE" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2059.outbound.protection.outlook.com [40.107.92.59]) (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 EE91012DDBC for ; Mon, 3 Jun 2024 13:30:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.59 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421433; cv=fail; b=uJSI6ZRfCroTlD1V2OMwqYHz4TyEIhgX5AdK8wAIjGOIoMXcV0S0SL0ExNF1TRxN5NBqnigCykQS/kprlxTbcCw7ECLrNK6PBpwiAIFlD1ckbEVElF/jmUdEoboSvnU+6ClbjZLpaaDT3HVWTFPaeCcFZ11JtLHi3gnR8+ceLSI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717421433; c=relaxed/simple; bh=dc3CepVevvZJzD7tFWZCcFN0h2mo2mWB+hzZAb0LJZc=; h=Message-ID:Date:To:Cc:References:From:Subject:In-Reply-To: Content-Type:MIME-Version; b=Z4KQbgm7VR256jUaHcej3M3QoxiyoPZcbxPtLKfMUoQjHKEtyT5vde8FdPwWWxw+xFWfxQIZd8Ch7McYSrvWWN1kpFSLLCmgX5fm9rwlKDaR/q7AZs/2sXl0tJhsY3dLQ76xMMnlofAxOXzkiU2INwvG1vdmOQo6mD4Q75xkgxU= 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=VcNDLSQE; arc=fail smtp.client-ip=40.107.92.59 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=MDNSmXnKWYbLayGxHC2gWYgTPYmGgsNt+jTcmiCzk7tn4854Pfm9w5WW9M7wTCm6zVdg6OaT0fV+lEXM7iIQu5BZ78Gywf8u+7IdSuuT5KSBGboe6LXzogwaRAPpNpJWZLNCkdHp4VHFWkeAe35aisYjWB3Aj5470B1m+rnF2/uxh+1Kijv4NGRJIkc72E5vcTiYP03n3TdUwRBT6Pfx6pGEHpvmz4AlJFDjxf8bibd9/xAO+E+CGjyVWczo2kRGMqhQV0RgvW7WKt89rb72L3G7semY+m6je5+ydUP1huRmOMhGnqAv16F5ubaZUcmaethujLYXZArrsXixRHtevQ== 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=eOOGQAv4JINuuFp3Y6y2+VVhOQLpJFGjRbhuC4jRbjA=; b=Zb8eCo2p4tNRTkp4//iqJAXfLwzqLFcsc7fn7IGKvjtId2q1Zo00wVY4QybHhHIYoJ5cllpkJyFlG/I0cX8muZdopcBZKZOKte/GSSdZwetM0w/qLa0wczQ6Xwnk/tkyG5AQgKk20DbZDfpb8CW7oIi1IgxneMjZb7LJeaC7NCUUhY5RH8/c09FZmUat/kTHoZJRJfmO95zx/ReEX0J6y8lOZ/qR0qSHvMPkunmAq0PW2eF+OWUuPB2o+Jp5CDtwaeM2E56/X4UFS2psqVi2ohN/dAtusfAqG7gXc3uykiCCOb5s8cKQhTgIRj3Bq70T4mX0ZuJM7+F67NYI+xv0gQ== 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=eOOGQAv4JINuuFp3Y6y2+VVhOQLpJFGjRbhuC4jRbjA=; b=VcNDLSQEsGO8NdeDw+xKY3hZ3R9x8+3a7znQbu871MpGAUEr7ABNap74UCbBvJUPQMqafAVNyQQw2NGkiGEOMeSmpjDvDfUpcTWUNyki/XUzuDxOTAEg2xYN0H7IDyQgZAmxpZDSM+JK78rn0+Ls8jS3mNCxtPnKNGkrpCOrYaQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by DS7PR12MB8371.namprd12.prod.outlook.com (2603:10b6:8:e9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.24; Mon, 3 Jun 2024 13:30:28 +0000 Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52%7]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 13:30:28 +0000 Message-ID: <16622c3a-034e-9f78-3afa-b0c273ee4949@amd.com> Date: Mon, 3 Jun 2024 08:30:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 To: Borislav Petkov , X86 ML Cc: LKML , David Kaplan , Borislav Petkov References: <20240603083036.637-1-bp@kernel.org> Content-Language: en-US From: Tom Lendacky Subject: Re: [PATCH] x86/kexec: Fix bug with call depth tracking In-Reply-To: <20240603083036.637-1-bp@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA1PR04CA0021.namprd04.prod.outlook.com (2603:10b6:806:2ce::24) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) 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: BL1PR12MB5732:EE_|DS7PR12MB8371:EE_ X-MS-Office365-Filtering-Correlation-Id: e3315204-6339-40cc-5e33-08dc83d1553e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?ZTl5bzVzWnN0T1pVcFJocFNodGROdjFJNUticURwdHlLNzNSemNKaU5Ecjgx?= =?utf-8?B?VUJTbXY0OHU0cnZGZm5kYVhpVEZ3MlV1RnVPKzFwUThvdXo4dEMyUXpxNzI4?= =?utf-8?B?cHM1dlJ2b0tONHdOUEJLcGQrNnlOQk1EQ0RWVlFrTTFhQ1FXWFcwS2JCbDJ3?= =?utf-8?B?MVhMUllBbnpUQVBjWS8rOWxlOXFhL1VLbFFsY3Zuei8yMFl4UEZVU3BUaWNo?= =?utf-8?B?TEx4a1lwc0dsT2V0d2RRNXpiWllMSmY2SC9uZDd0dEJzR0NlUXdpYlJDTi9U?= =?utf-8?B?K1lHQjYrc1RMcXVNdTNEajYrRGt6RjZJR0JQYzNnamwwbFRwdHRsUDJqUVJH?= =?utf-8?B?dFRKcnBFQlEvVlZZUk03UW5oT2o0MS8xOUVBR1Z0U3hMTmhLajNkaGViaTBZ?= =?utf-8?B?ZE9oaGZuQjd3c1N1RDhkSmpPVVF1T2RPZnVBbTNQVXUvWU8wZFpKbWJMSFp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jE1cTAyTzc0NW5hWThU?= =?utf-8?B?TUJ1bDIyVFN2bEVlNURpcTFaSGVMcEJuU2NrTmUwTTgrdGFyT0U5MTdYV2Vo?= =?utf-8?B?WGpRZ05CYzl2MWNlUHVlNHhjSUxzWk5VMitZelEwSWgva3N1VUZQeEdwL0VY?= =?utf-8?B?LzUzZEhHZTFtU1h1bjU5cFc2QU9UamZFN0tReTQ0ZjJNcDNrdmxaQ0lhZ1Fw?= =?utf-8?B?d1hJRzlZWGFIQzJ3Zk9UanRkNnFQc3FrQ2hlblFmNXBISEQyU0J2V0JLajla?= =?utf-8?B?MUxJb3VlaWVHUytXMk1iU3RQZzVGbWVDc3F1b2dpcEJFUitjbmFPdkVHN0Nz?= =?utf-8?B?ZkY0VzBXeWJEZU9lYW1jMDR0cko0SlpNd2dpdkllc2graTJZVHNaM1h3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5732.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Rjk2WnpvamRlcEhORUNTUkh4TEVKaXZydGVmbGpmeitKS0VncDR0alVuNzFJ?= =?utf-8?B?TzFGYWZWTVFLc2tBeDRIOFZtWitUVTNzMzhLL3lDdFhpMkdXcmpZQm1FaUZm?= =?utf-8?B?SHA3M3p5bDI4RUtMSk90MzF4M3R6Z1VlUGMxTmpLdHV2S1hMN28vVkF5dzhK?= =?utf-8?B?NUxQY3JHWWswVUdwSVZXZGZjSWFEZWIrV1N6RWpMK3F6NEFvWkt0T1FOMTI1?= =?utf-8?B?ZUNIZG5NdjdkRllzRFFzNTNhSEsyc1N0bUl2NGJYM3VhYXQ2U2JKZitCdDdW?= =?utf-8?B?eGVWRnpFK3BqTFhKTHhlZFpKN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NWVk?= =?utf-8?Q?XMaDW6PiS2EBKl/pc8Q9xfxA4?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3315204-6339-40cc-5e33-08dc83d1553e X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 13:30:28.4484 (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: r3FYgbdMMSvI6npFli4+C7RBMYPYSeIwup0EOwd52x0LEk5ZUiBA0nwP2gRRK9IJkjSdzhQlhjLQWg0rk5cn4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8371 On 6/3/24 03:30, Borislav Petkov wrote: > From: David Kaplan > > The call to cc_platform_has() triggers a fault and system crash if call depth > tracking is active because the GS segment has been reset by load_segments() and > GS_BASE is now 0 but call depth tracking uses per-CPU variables to operate. > > Call cc_platform_has() earlier in the function when GS is still valid. > > [ bp: Massage. ] > > Signed-off-by: David Kaplan > Signed-off-by: Borislav Petkov (AMD) Minor nit below, otherwise: Reviewed-by: Tom Lendacky Does it need a Fixes: tag for call depth tracking (before the change to cc_platform_has() it was a call to sme_active())? > --- > arch/x86/kernel/machine_kexec_64.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c > index b180d8e497c3..90b1946c06e5 100644 > --- a/arch/x86/kernel/machine_kexec_64.c > +++ b/arch/x86/kernel/machine_kexec_64.c > @@ -295,8 +295,15 @@ void machine_kexec_cleanup(struct kimage *image) > void machine_kexec(struct kimage *image) > { > unsigned long page_list[PAGES_NR]; > - void *control_page; > + unsigned int host_mem_enc_active; Looks like spaces used here instead of tabs. Thanks, Tom > int save_ftrace_enabled; > + void *control_page; > + > + /* > + * This must be done before load_segments() since if call depth tracking > + * is used then GS must be valid to make any function calls. > + */ > + host_mem_enc_active = cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT); > > #ifdef CONFIG_KEXEC_JUMP > if (image->preserve_context) > @@ -358,7 +365,7 @@ void machine_kexec(struct kimage *image) > (unsigned long)page_list, > image->start, > image->preserve_context, > - cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)); > + host_mem_enc_active); > > #ifdef CONFIG_KEXEC_JUMP > if (image->preserve_context)