Message ID | 20230811170642.6696-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:b824:0:b0:3f2:4152:657d with SMTP id z4csp1253112vqi; Fri, 11 Aug 2023 10:38:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF71JFXl79lGhCrGPT06+zS8WXepfYBy85to6U6F69i//zrSp8FRkREb7nYYz5/vpuG8tT/ X-Received: by 2002:a17:90b:17d2:b0:25c:18ad:6b82 with SMTP id me18-20020a17090b17d200b0025c18ad6b82mr3250303pjb.21.1691775493252; Fri, 11 Aug 2023 10:38:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691775493; cv=pass; d=google.com; s=arc-20160816; b=hrG14E48YCwfhHtxaVHQniIt+jVE4KpImCqpQD7awlee/vKh5UjfRyIYE6zWHAt+N8 xEljOatXbhM9Me/y4rETSBOHXwjdp1HZpOe85GyiviO8zjx8R54N9kfDx59fVR5wXwg1 PYgwG8BcJUrxAM75uClVrdXoKCkjMaBoDaFz2jLIbi3e9otYp59H/WAONiGdUy4uOUYv X6t0PB2Ak1UB7nE4Qn+lnblvDFd3udJQZSrqBZXJXxQfsMZ3KuKWoDYQqRnEOJHrunWg TTyWO4SVacyZFubzXWadFqsCS0LeZcZkHH9c7XK9wpFwVWOAK3yxstKPq66jgENxr3Ev kgrg== 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=TpE1wqVtb7MplpG9Vaelj6riR98OXh5MaMtMxiY6bCg=; fh=ZbNC38sm56YRcxo0eY5DlCjDElPeJYCNHKxhiyVbz2E=; b=j0LcLMXy26q34cZGivRqy/NWe5NKf8PlnhNo5F3+ig7fAlXvu8r8zqNU9ZNoVgSzJ/ 0d5lIvExJwWQvC7KDdIfmJxC6s8p2AjrnkAHxiwjfUtsBd6AB5j+OI+pG6tuTZrq3dfz HSYgCclgSJ+oVGGLV5N5UhQ29bGlgzdt2KzhWxx/tdQ1S6DZbbkvaNLtl9TM0WNe2ffq SI9AEwBy4bJIFU1MbA3CSpaH4csoFWTqpCsFWiU0ukVYyIYXRvxY1CU9NfbPqQ7aw6Dc wduHCrwTs0jjgHxYit2s5O05SGEnkBemRydp+IQW6Ah9YF3tDDwX05OERCEnIlRIXJqs M92w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=BJ5THPA4; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uVARqjYH; 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 q7-20020a17090aa00700b00267ed1dd76esi5719568pjp.177.2023.08.11.10.37.57; Fri, 11 Aug 2023 10:38:13 -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=BJ5THPA4; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uVARqjYH; 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 S236535AbjHKRIK (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Fri, 11 Aug 2023 13:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236416AbjHKRIH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Aug 2023 13:08:07 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C9301FDD; Fri, 11 Aug 2023 10:08:06 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37BDYT04000367; Fri, 11 Aug 2023 17:07:06 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=TpE1wqVtb7MplpG9Vaelj6riR98OXh5MaMtMxiY6bCg=; b=BJ5THPA44KkdU4QMLcj4v6tQBaiOw+9AU7LORw7UeP2LNcdBZdvGXKLZJH7QL5wvkba1 n/QgqkQgbIMeejuMAHYgLSv+HQW8NX8e77EkpPHn2RxkMFy1m2dPUPjKCWfZQE3prOpG 4Tbl22H0qSZBhXcZYtIu2ov/Tv7ivFCYBqU9XMru7ysk40VN+VIOxXb8Bo755x74G9CJ Yzj2UrMIhn60GVSPRnrq2Qe9uyPkWFxVBqqF3GjJlMqH6mJ4T1UR0n7ynwJn8Rc9WGJ7 yQJyoQibF3yUjRaH/SiY9JDCAQ42gww4P7hCTfrKp3YAHeXIiwNZg2GWdBXhRMHiWE+z JQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sd8y6sfvc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Aug 2023 17:07:06 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37BGT0iQ011134; Fri, 11 Aug 2023 17:07:05 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2177.outbound.protection.outlook.com [104.47.59.177]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s9cvh2dnh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Aug 2023 17:07:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eLRr34Hvf3bS3OEh4am44wPBRS0DjIxH/pKpr1V3IFRHxDKjt9YeH7UDgc8BrZ43m/zOzWNFmFzoeYWvKphjMpDnuhNNoWtFfxEBeXRI9ackKDg7+4BsrVXAKy0+hi335UXfv4SDS2J/NakpTho4tQqREP+knmkIXJqtHKyZTi90un/uuopIV/aWjCgY6gEuQyne318gXxO4PVKscTylE4S+UcHa9nlTMOFSY7OcvOhYDrNroJg4jfSliHN+KORSg66Ai7vaCIT3ZNVGOXkCtRrabNmGniyO8zEhPc/4zqaUvKJ+efY/npv/DrGeyCvkkKh2qomvhtWiEgLJXXrN9A== 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=TpE1wqVtb7MplpG9Vaelj6riR98OXh5MaMtMxiY6bCg=; b=LilzivjurDPAgwOUuV7RRdb0bZUAO1DBCWp4+i+nr0eqwX7dl/AX+aHiYR6PbQPzrarHjB79bs5a+IIYVUtyCiXeIupdkhEpfvpC73buscR40k5QuXjbXEvxmspRSBnIo9unUKzezIobZMgyEf1GLPBSiykwz2PHk00S2WzSFOqnjr15GIuOlAEgX5aVbyZJYRYASGKxphFB5JGrA9oxZolbaDpeBTqWnJ2DJ5Z4ednirtUAOUscnnl4FXtRQF46WjkawVKSdbr+sdrmoKioMzJazIhXQr+e9pQqGXDftoOeIVOAnDkc6o0wpbBh3OTr6do+1RG2YUCr+yJif+uxWA== 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=TpE1wqVtb7MplpG9Vaelj6riR98OXh5MaMtMxiY6bCg=; b=uVARqjYHUa4TgQHUkDsGfq88nYuhST6JuycyGzWZNeGBaIyZ+NWkjmUxd57ExpQGK91ViX5E0fAgE9mBlURTivDAl5Leg56VQaqTuTUGB+Vyhzpxi9nX79xXqjwvP+GpjGTFdXwrQ/fKQ5smiGD1BnjpEsZDLEcWxUb1y3d8VKU= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by SJ1PR10MB5978.namprd10.prod.outlook.com (2603:10b6:a03:45f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.30; Fri, 11 Aug 2023 17:07:01 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::be4f:55e6:89c5:4f57]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::be4f:55e6:89c5:4f57%4]) with mapi id 15.20.6678.020; Fri, 11 Aug 2023 17:07:01 +0000 From: Eric DeVolder <eric.devolder@oracle.com> To: linux-kernel@vger.kernel.org, david@redhat.com, osalvador@suse.de, corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, bhe@redhat.com, ebiederm@xmission.com, kexec@lists.infradead.org Cc: hpa@zytor.com, gregkh@linuxfoundation.org, rafael@kernel.org, vgoyal@redhat.com, dyoung@redhat.com, lf32.dev@gmail.com, akpm@linux-foundation.org, naveen.n.rao@linux.vnet.ibm.com, zohar@linux.ibm.com, bhelgaas@google.com, vbabka@suse.cz, tiwai@suse.de, seanjc@google.com, linux@weissschuh.net, vschneid@redhat.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, sourabhjain@linux.ibm.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com, eric.devolder@oracle.com Subject: [PATCH v27 3/8] kexec: exclude elfcorehdr from the segment digest Date: Fri, 11 Aug 2023 13:06:37 -0400 Message-Id: <20230811170642.6696-4-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230811170642.6696-1-eric.devolder@oracle.com> References: <20230811170642.6696-1-eric.devolder@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0339.namprd03.prod.outlook.com (2603:10b6:a03:39c::14) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|SJ1PR10MB5978:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e5b8132-965c-4ccb-f64e-08db9a8d60db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EZiKz9vy+Wgi0KV4Cpr5bdRz5cdRb9vZUGV0miTRGQb+Gh5N1aoDEKozh76c1d9mKf/40zZxBYCwtcvTyCicgBmn0jb/sxs2XFTIImuugIeCzkN/ti7l3XxhHMueDnv/c44y9HEfiSC2f9SOd/Wgo94UOpVwMSyH1eEraa84dTFp8QYpNvhSCMqE3gn2OoXePRQSNhnvoGYMeLEmpG96eoDJR4QMWA9HSOiUvHhhC8999oLASlmWyBaR5HXo7H9nMwZjfgDUkOLAAFcNVbGL/box6wWNX2hrJFhZCWR22MHJztem03EtlrfOqWLAiNISBrerWo+/W1TCdjCh1JzusbvefCsmKTHbRF6/amty4dwObJ7Ae82I3+qaqrQ5IOQJToKIBDqa9WXMB3CXmKaoA3dqrZUE/HmYSIGjBX/iXmTPToV6EHnJBTjaokCpcicwhLFXjspjI1EwqKj89skz/UxPLU9CL3ZNLGYTxXdJIHLfuze0uIKxblfBK3AKIWs2ApS4HUTdwe5soca0gasT++XqW296hkgueTHGNNIKNL0ct5BFiQtj8Bospxwyd84BUwqvbfjMrzApGAl5FtH63gxxJ6GCiG4Q/6vFO8Cte10= 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)(376002)(396003)(39860400002)(136003)(346002)(366004)(451199021)(1800799006)(186006)(6666004)(6486002)(6512007)(478600001)(2616005)(6506007)(26005)(7416002)(107886003)(2906002)(1076003)(7406005)(66476007)(4326008)(66946007)(66556008)(316002)(8936002)(8676002)(5660300002)(41300700001)(38100700002)(86362001)(36756003)(83380400001)(921005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rMg7ShuvNFGNqr8lcc5g87jBq+Qgdsk7LSabMjXF6IX07FyPC/YQu0oVUh1lATAlgBM5TTk2R6kjptJ2M+dt1Kku2QokrSR8rFG0hV3U4R/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KHKScBdww89l2tJIHtqclyP1eQtf9eppSJvbj9vBY3ep2lvg81p+O6PJ9iFqYqozNx/GafBcCBWhUY3SxDJ89JRTf8qCNkwkBK0IJ7mk99WH50+wytaKrI+DN+s6V6gWHBrzVCRWxWfSfxHr+8s/qEK4tV8P3dSs3DKFLYSY86WhXk5N02zOXOMiniDJ5/K+M/S4yznzsEnUkSbmCuvMmOzU3tb5jRGry7EvFDDbcukG5oO0jSiBB23vwBot9zhyNbXq5gGLQLgbLFjPC1stfbok9q2aHcPUb7IzdIWQyvQJsie+YG+BXYtHOarwlP1XmkH6FyyuRqyF2MtGOYMXezV2KiK8qOF/Y4hwiOaE830dyyzZKulJaCrgyQHRxa3KJelRqY9BomyCyBTIA5phbDI42Sa3QcPq8hOp1rip/A0Cy1u02I8U6Vc2fwD1AmYUmsUcXVgQkBdLpT1qXK7eyvkHoTBK5AInaIO8SPS3hJenVvlwgr4seF7nspOb2S2DquDD29Mrl5S9Eqr09RAzj13OvlsVMQngeMctFxZ7yeaQG31HZQygd4ecoaHqfdb8Kru4W0tI/L7CDVN0ZHpKQgpK8FDxeqwr56JuDCdn46l/i3StCp1n/X8pEYKI0agiOnacmav6c5ZcwEes9hR5i92zioQ3An2JF9P3Ca6DBO8IHyJAKjWNrhgKqtYFMRRE5bJLSSUUXOGvIdI5ppiTwShFhb41LUHv0qkt8fYCwyVHbqdMr0lUdhIMy1KpdxlGxY2VoOsP4xqnEzNe8BUH9puXKmo1oU/sE5wOsImw6w23nqboUeF0rdkARFBWhL6iHAf/GlgvwWj87XQsEU//v6p2a6uSCLrTrbDmmRMUdVuui8f0wm7OINQ4T4ARlA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e5b8132-965c-4ccb-f64e-08db9a8d60db X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2023 17:07:01.2723 (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: bcWMiCR6tfzi3MNad+Dl9OCCj6hsLFj08QoO4YT7f7RjrBJXdt+aQA/lo5sNw2JFO4UuAtD7hU7HX354GJoSsDufx1eSGhd6v/6GrxthFMA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR10MB5978 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-11_09,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308110156 X-Proofpoint-ORIG-GUID: Z-aVg-jZHAyDecndJUfDnAIuT68CDdSL X-Proofpoint-GUID: Z-aVg-jZHAyDecndJUfDnAIuT68CDdSL X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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: INBOX X-GMAIL-THRID: 1773955179616023888 X-GMAIL-MSGID: 1773955179616023888 |
Series |
crash: Kernel handling of CPU and memory hot un/plug
|
|
Commit Message
Eric DeVolder
Aug. 11, 2023, 5:06 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. The digest is embedded into the purgatory image prior to placing in memory. Updates to the elfcorehdr in response to CPU and memory changes would cause the purgatory integrity checking to fail (at crash time, and no vmcore created). Therefore, the elfcorehdr segment is explicitly excluded from the purgatory digest, enabling updates to the elfcorehdr while also avoiding the need to recompute the hash digest and reload purgatory. Suggested-by: Baoquan He <bhe@redhat.com> Signed-off-by: Eric DeVolder <eric.devolder@oracle.com> Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com> Acked-by: Hari Bathini <hbathini@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 453b7a513540..e2ec9d7b9a1f 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