Message ID | 20230503224145.7405-4-eric.devolder@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1658133vqo; Wed, 3 May 2023 15:53:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fV9T6LwhsHjMGC8dfShbERjDUxLnVGCwIqgi+mwiVJ4lVyCGbSVIjDXtf2IVD7YyfI1QZ X-Received: by 2002:a17:90b:4f8e:b0:24e:29ed:af07 with SMTP id qe14-20020a17090b4f8e00b0024e29edaf07mr163166pjb.31.1683154388363; Wed, 03 May 2023 15:53:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683154388; cv=pass; d=google.com; s=arc-20160816; b=Zo8cccep56WqQVWw2ujzWTgcr7ygeZ3x2ncwwZSW5UsyDqs/Kz9/xuRnZnpQZ6ob2p 71NQ5SjSGaxsOhaSasQW4CADsD9f95T78rJGMyZNcf1Cgl7je2n/erV2QcOpHoPPbPTu Yj9vtlxy/GB2CVFUGCSrYrVNXR6ibVKF3Ss1XApvOEpwBAPu9lTYns5oGwT8Am3xOaax +1VGq7M7jj05XrqymaWxwNnfoKHE+qWpocQFFHuevGd9JJeEuPV851xw2u6GGlypZOai 7n56q6oxyEbYeEMXwMNGcLlaZdz2aLJuGWB4GV/5gxZv/nupXrgUacsZ43S7WM6aU0tu 35uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=iZA542S+AX/9nADOINVgca1jAHuZ63qloYIKhy4+3U0=; b=NIFDid6byrs8uxDNeZrBzSZiCQvWJrLwplIY8TP4i3SPMjcdG86tAVmjCggsyRoLUS 5iI4yA3IQ8xFe3lPT5ZkSLhTM3gUXFIf9mzq7ct3QkDfb42MYNylFXDj7visnHqynYtB 0W3loxoRxb3tH4nE3bf+etioDx5JUVT9E6VLHemQ1hPwByydYFST/S2N8U1rmsm9W3Fp C4eHGSZnos+doF4gfYDaGs80UDMLwxOd3Vl3gDfk/uZUwsaSS3dX+kbYg+ZU5QkzprBy WAU3MA4Dot9z2uq2jpz+xJMfHif6W1Due4sdq/wkpzgwSaY9ZfpnCpmsXXFK0/QCLzCz JJrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Ou0V384e; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Mq4yFNlt; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n65-20020a632744000000b00514329f7ebdsi35555111pgn.344.2023.05.03.15.52.55; Wed, 03 May 2023 15:53:08 -0700 (PDT) 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=@oracle.com header.s=corp-2023-03-30 header.b=Ou0V384e; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Mq4yFNlt; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbjECWnV (ORCPT <rfc822;lhua1029@gmail.com> + 99 others); Wed, 3 May 2023 18:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjECWnS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 3 May 2023 18:43:18 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A87A901F for <linux-kernel@vger.kernel.org>; Wed, 3 May 2023 15:42:50 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 343HoZ8N024252; Wed, 3 May 2023 22:42:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=iZA542S+AX/9nADOINVgca1jAHuZ63qloYIKhy4+3U0=; b=Ou0V384eMAKDk7+YetVGMGI+vybS2Sdq9Ggq98GIglPJA44oMNdHNnlYScFuQxT0cfpo NK6W0OtDYh1apsvYMyljscVDzkauMlK/0lEreMxo9G8u3CpidRtSARP9rH7xteMGplcc nXBAD45wt3SJTUzZ+xEZqMcHbyYnz0gUxVf7N5CFDK6iJmuKZ9ZBZixayEYQ4Jy0Uebz UhCoxDHgL+z+2gwRAYLPMJ5IL/Ksgj15jCPXdl/B2EKUw6xF7XBvTF1oV7K8Rdqa1PRr MGygpaFxyCo4gTy1BSKJzRcTowTFCS+4KC1NACZbsYlNu1x9NBv1Z3b/OPg+cLo7I7Mv lw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q8su1rj0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 May 2023 22:42:07 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 343L4mCm040517; Wed, 3 May 2023 22:42:06 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2168.outbound.protection.outlook.com [104.47.73.168]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3q8sp7rsc9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 May 2023 22:42:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SsPd6D7JMdrMUHZLMpvsNGp/xP+eoUUEVmdLXfUM8UDEDVXiIMV8P53f2Ui9AHdO82UWoVbYlgfBc0H9bas+V40qC75Gar74PXv802APd4MuCds5sUrT0Et/a4deN6e3rR4T+RIMfPQYgAkpBq5PW3oyd7ENMn2Ux+q39bELIvV5/u07BXKTHdmNCWH0E4T/t8I12JfUA09tHuYaSqr7bk026F72QfbIwKCz3+WOfoYEpNljVPbvdAAenQYIdBLNCHsPGKANJQkBtWokOIOG9ekuNUGgK6oRF/nvpKiLht7bGaFfToD83euKtS5I07fSxIzwJd31E6TS2WJ3EoOltA== 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=iZA542S+AX/9nADOINVgca1jAHuZ63qloYIKhy4+3U0=; b=nSnFgiAHEmUR8IxDMmzAkoviW9YH4nbojqOpkSFpH+yNOlIDRBYwyoA6xBCZZTmP8FQsJiL1E/sXonIeytkPE+yANXgCpz/3D900gOwCeenyMy3SRaWhcrI4dnBvPCGxZnnj6T1czeLiE5+tQsgt+aktbpzAnTRCjHi0nqpq3Z3B2a5sE6CX0ND+sh5Kwo/3q4IDLUzWVFNmWZrAsWjXCAJxrAZdVc8LMri7KuQqwyn2gggG+gLcd6oV5g7c6MU1T1CxVMuR0entgpawwD3CoPNqoPN/ggXvp/t4x58uY0QzqpMRZeUZO7nzaGBi5haZTJDr/EwkLSt67asMd/qj7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iZA542S+AX/9nADOINVgca1jAHuZ63qloYIKhy4+3U0=; b=Mq4yFNltsGA/qKoKZeuHS2P2HCz2DihoKYvV5BiKV5cwLp+4CgT8K8TQo/ZmSywVSNS56ojOS4v1SDUph5rPWQCEYvqcJBOj7+jCn6NpRQm/cUYkAH/mJ9Diz3AY00/G5qWRDp8/RlJFcxWRzSMMn/eoTCQW7fZjLwJAXvXjEoY= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by DS0PR10MB6846.namprd10.prod.outlook.com (2603:10b6:8:11d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Wed, 3 May 2023 22:42:01 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::ac1a:bf88:bdbf:2573]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::ac1a:bf88:bdbf:2573%5]) with mapi id 15.20.6363.022; Wed, 3 May 2023 22:42:00 +0000 From: Eric DeVolder <eric.devolder@oracle.com> To: linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, bhe@redhat.com, vgoyal@redhat.com Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, david@redhat.com, sourabhjain@linux.ibm.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com, eric.devolder@oracle.com Subject: [PATCH v22 3/8] kexec: exclude elfcorehdr from the segment digest Date: Wed, 3 May 2023 18:41:40 -0400 Message-Id: <20230503224145.7405-4-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230503224145.7405-1-eric.devolder@oracle.com> References: <20230503224145.7405-1-eric.devolder@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA0PR11CA0164.namprd11.prod.outlook.com (2603:10b6:806:1bb::19) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|DS0PR10MB6846:EE_ X-MS-Office365-Filtering-Correlation-Id: 6237b4e8-b2c1-4995-acae-08db4c279b87 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +EeOgHDMOehFnyoJjrnzHgSqQi7RvTK+QkjhCp2gRApbPw+OOAvCPN4VmzRqkIHpepyjB0AgGiNCUJB54bs15JQ76GYifTwaLDUusf8qlvXKAnLlEWqyVznBicCzOrB7QWPoRzJIuKaBr1iHeAXHp5Ij3PFMjDql9H9w8xnU/l/RSrRJtYseQ2OdFR6EG1HR75k8WMgK8HQ2we3PXHnPsK3FNPX8JMvayOdCwQyEgfoSo7cVqfR8doR5QuaYUXlVIX9ZzboKt/icUC2D192RSxmL6AfrxKo4YiMQsQR3R5OPcePGD0IJWzhr8tYvAVNHqQS0JKllD7EspqMfoGDYA831MyZSAUKblfRVopPRI5ZG8oj44FMQIhk/zHjd+28vm4w0J0tNuA3+t0StCnG5YjHDUmXNtJm7r6zzL4wvYeju8Oj6J16w73uAZsk+rY6709gZk0eaDWtKw/Khh0JgfceIE/wugyJusn99Lqq2cc7BvnlhtliQhEy0sImDgdpdFm6uGWLnieMWIGEmc8dHz79aI7vkjcqDCmfK4t9Bto15Dko2SJW4R6iNxCMS/zWa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(39860400002)(136003)(376002)(366004)(451199021)(1076003)(6512007)(316002)(6506007)(26005)(186003)(4326008)(66556008)(66476007)(66946007)(86362001)(5660300002)(478600001)(7416002)(107886003)(36756003)(6486002)(6666004)(38100700002)(8936002)(8676002)(83380400001)(2616005)(41300700001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PomH+9eBxLMn/VuOs02VBDDSeEOaqw7GROntP0n1ecI5w5lU1/EVBAw76hPNiHec1obBT3BxYj1vMs0lcV8OJOi2dbWCFvUcRcqPNCZEM9rBSVfL+RaS0HEjiQlCrqx0JA4UgbDWo1gBojDMuu5V7gvrKfhsqMt0Gu/vAL1+CRAT8rrXqhgTDDF5RYYsUVql7SnaOaMtxxIqpvl9mQquF8K62i+LIY+KVv+s+0q+EepSkzROGj98o6uw/IwbmeSFtsUX5YtMUZXnhiVM6Qfe24fN9PJ2xSsBDDRwwSM86CI91La9m8eXlJ3I1fojqKCpl1icPd+7luQwnwj3b0pP7a4lRL5UDTE5SHO5ATuLPthPgX+zGIpUa2KW6q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ryjBdOeuuwwxFRbmWnFQM50xjlLpSwUNd41cpyHL5e28HiBFt2B2iNtn41sPK9iyuXHPRFtWvBx/PUUUeFYxUbwrjaXW5gtl0rPUofrVFJTUzrifIxmAdMd7SKankmeBS3Fu2vhy9jJ/NGSb106rBv4FrqVw8lngNyJWD2XmDBq2X2mVn7J0gk39h7TTvD/KdTzfIi0p2CSl/7r8zmTelki0H6+YMiM/uO5tuuiPg1vmcL/pfDPwAvKzKliOPXJndK7S5kYyfilYlpZzb0O2VDDcaoZgEOkvawx9C05mgL6ASHHSey7a12Hy1/C4c8waoy2IKefJUQsg91IC5k= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6237b4e8-b2c1-4995-acae-08db4c279b87 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 22:42:00.2478 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: X9a/mh41fiteFPhV4nnSjLhgWe3Ym5iKIJCkNT41vSeoSJsDBYpC5nFCNjwmFZoAnYvTA3MqmOqvsmPO3r4YA4V1yE750JIDXKOXIB6VQZc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6846 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-03_14,2023-05-03_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305030195 X-Proofpoint-GUID: wbSM3OJjngqUbsQKSlk6MzeHxoosZ0uc X-Proofpoint-ORIG-GUID: wbSM3OJjngqUbsQKSlk6MzeHxoosZ0uc X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764915295757944120?= X-GMAIL-MSGID: =?utf-8?q?1764915295757944120?= |
Series |
crash: Kernel handling of CPU and memory hot un/plug
|
|
Commit Message
Eric DeVolder
May 3, 2023, 10:41 p.m. UTC
When a crash kernel is loaded via the kexec_file_load() syscall, the kernel places the various segments (ie crash kernel, crash initrd, boot_params, elfcorehdr, purgatory, etc) in memory. For those architectures that utilize purgatory, a hash digest of the segments is calculated for integrity checking. This digest is embedded into the purgatory image prior to placing purgatory in memory. This patchset updates the elfcorehdr on CPU or memory changes. However, changes to the elfcorehdr in turn cause purgatory integrity checking to fail (at crash time, and no vmcore created). Therefore, this patch explicitly excludes the elfcorehdr segment from the list of segments used to create the digest. By doing so, this permits updates to the elfcorehdr in response to CPU or memory changes, and avoids the need to also recompute the hash digest and reload purgatory. Signed-off-by: Eric DeVolder <eric.devolder@oracle.com> Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com> Acked-by: Baoquan He <bhe@redhat.com> --- kernel/kexec_file.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index f8b1797b3ec9..1d2cfc869a75 100644 --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c @@ -726,6 +726,12 @@ static int kexec_calculate_store_digests(struct kimage *image) for (j = i = 0; i < image->nr_segments; i++) { struct kexec_segment *ksegment; +#ifdef CONFIG_CRASH_HOTPLUG + /* Exclude elfcorehdr segment to allow future changes via hotplug */ + if (j == image->elfcorehdr_index) + continue; +#endif + ksegment = &image->segment[i]; /* * Skip purgatory as it will be modified once we put digest