Message ID | 20230629192119.6613-6-eric.devolder@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9870785vqr; Thu, 29 Jun 2023 12:44:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlHmkg4XWGAYByD56OrjDJbOMEhEeUNFT8mxOt9Iu30AggTx6KO+6LsWEcZy9jn5+TVEw2Da X-Received: by 2002:a17:90a:db87:b0:262:e2a9:bcf with SMTP id h7-20020a17090adb8700b00262e2a90bcfmr234042pjv.49.1688067866047; Thu, 29 Jun 2023 12:44:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688067866; cv=pass; d=google.com; s=arc-20160816; b=Ip5X4TsKaTBjwvguVKKyPQ7C8rEk3Fnc5CXPZDYXYib92BNlXxWSRPrTxax3f8RUcy 68Cto9EA7kyYLlxJTp5d5VPyPHhjQbFqQ7RINn+jf7kTgV4eTFTLgpyaf5olLNYEVVYl Jx7p7tqRIi7mRetVwLO0In5XIYahwCU0Efk564I3bXXJO3891eNdIn9UfN9GUmsTx+vd AWwr9tGiBa2bFF6d1LH1JHvgtBDzitEGZ2f8/Bvdx0KErV6QVgu4A5377j88X1ZtX0RS pIEuLFsGmf7fl1vsr4Ww1VNYHb/mOSnEKLRXvXpQw8akeb6JY9tkE4G1oT3PaOGAA6XP XjFw== 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=W8iEv38eAoUWiIac6DamuSVNXvMP78ssEHCbdxW608k=; fh=j+K5GuuLTbxxisV+wJRNZBqbr6zhGMwAghI8ANXi4rw=; b=EgT4sGh2YI5hIHQu5JOSH2QPmVNygncousg6lCGt+aEgj7ghcKvI9G6sfBemtsVeGv jbTjWkXwWgHz8O5zKOmhNKFTIKf7jdxX3MkHnFc2Wc40anx3GB0v4mjzVcoL/FfcDY0U ZEn7GVVXfjZgYNd4K7HfTeUVnylGBkcfdL5DzAh+YOB5S+68Eaakzx3BMtANuHmupxAt 3Ul3CcdH4Aqz9My3TDK322PmgDT3P3p0ddSWsQFUTWqJ6UYiHvrvhEQ+NuXIJhSMMPEM o7XDUh+/aPIGzZ0YVVKZRsbr3H8IUwVGl1JBA2j3D7v0YOs+J3KYRScCEzfd5ZxzM1Tc INQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=L+IkdWZF; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qqJe0mhd; 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 my17-20020a17090b4c9100b0024769a264fcsi14008047pjb.10.2023.06.29.12.44.11; Thu, 29 Jun 2023 12:44:26 -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=L+IkdWZF; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qqJe0mhd; 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 S232314AbjF2TX4 (ORCPT <rfc822;adanhawthorn@gmail.com> + 99 others); Thu, 29 Jun 2023 15:23:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbjF2TWs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Jun 2023 15:22:48 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8DEB3A96; Thu, 29 Jun 2023 12:22:41 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35TJ3pJ3002889; Thu, 29 Jun 2023 19:21:44 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=W8iEv38eAoUWiIac6DamuSVNXvMP78ssEHCbdxW608k=; b=L+IkdWZFNFEhwpn1VLX7tgAEM1FW9IXfAo25OMs7pW7FAWPWGIM1F6JeVD3X11UHhpjH hkAbZGm3QxV/PVtWmjR9DG488f/IM93sCKjmxvLBkVU8fiJnt/OD1sKk21nXKhJ3Kr7x +ouWBLxsPhXSya8O6Lyyc/ZpXwj/hRfKCQh8tnNpvZOuoKWSvuU7ODnV0d/X6hHcEZi+ 7trT16l63g6Rc7MawAONP/I6AHaBcGQgI4ek8VnfsICnfiO0lZ7E6bq6xwYlyef/cWDZ RZ5+hkYZZ2upfnoD4eZ5b7HCvnJfxilbOGSM2s1J9Ydt3Q8FoIaHaOnS7EmTtQy+dNuc yw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rf40ebwfy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jun 2023 19:21:43 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35TJ0IVo038174; Thu, 29 Jun 2023 19:21:43 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2043.outbound.protection.outlook.com [104.47.66.43]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rdpxebtjm-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jun 2023 19:21:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JX9GCD8BR518yEpK4iUT+2rZg+fL0n8oxgD9lytEL8g8iXK5kxOCa4Aoh3kGvehupEdffAjUsBXYyJJ+USJUlPjsZ2p+EA0DefG7tEtBPH9ULgtisBFNKEol1QDsuKFXQOc20b75LMqo99WApbCvK4E+rpTlxKov21irJddyGg+8+3umypS1tMTX5jF3sbmvdHbFwD1f6Dd36mzhd9Dg7aFq9fvqvlaMWj0exbuKeJPRXv2OJabNukQqm+IOIM/PlEK37iBZe7TTYsHbIEeJf7fYQIVNKbSu6kdNLGnQUi00qoIGW5pGaN+8BX7OlIG+WQXP7mA7Cx5T1EYbX4UzdQ== 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=W8iEv38eAoUWiIac6DamuSVNXvMP78ssEHCbdxW608k=; b=Mgu4+MAmBmtjvYP5Ng3XJUf2QIawtbFcpNMEzHNpZRJ8NEK++tzA58RdUDcYhIc/N+tbJYf4OVkKhiiRgiEw7KNZv9z4Msicc2jlKsd21+3VZfY/XS7C+rhlNgJ6kFevn+v+BIFS29z2GF7478vrXfw46OxSpCD+VOIajlJwMjo1D9PvRu/JxTcB9eKm0q4FndBQ1B5rdoLE7sLX6x8q8/cGVIDlMLUm7fHiozrhjG2vu+xQiMxh1Br2+HD60Rczc6aVuHuO2s5Zbpz45JaSbpMEhEbqk+fOENWLow7FkuP6gwR0kAq+d39YAm2E7NU2UZO+2ESllPhBkD1gxB4Iew== 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=W8iEv38eAoUWiIac6DamuSVNXvMP78ssEHCbdxW608k=; b=qqJe0mhdUhAQpnOpFxzwnQ6Ilx6eUAHTExafUWtKgiYYT5aCRqOQs7y75RHALHE6RM08CsFOx54KWyRZ0xDsEkFD8rZ8PrGoqQ9s8mp85khA4AX50vslGuqHZas+GxHyWWm550oxsCGJMk4/+2VE/ehieqQ4hmMnBIqBriVriuk= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by IA1PR10MB7200.namprd10.prod.outlook.com (2603:10b6:208:3f7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21; Thu, 29 Jun 2023 19:21:41 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048%5]) with mapi id 15.20.6521.024; Thu, 29 Jun 2023 19:21:41 +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 v25 05/10] kexec: exclude elfcorehdr from the segment digest Date: Thu, 29 Jun 2023 15:21:14 -0400 Message-Id: <20230629192119.6613-6-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230629192119.6613-1-eric.devolder@oracle.com> References: <20230629192119.6613-1-eric.devolder@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DS7PR06CA0019.namprd06.prod.outlook.com (2603:10b6:8:2a::18) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|IA1PR10MB7200:EE_ X-MS-Office365-Filtering-Correlation-Id: 24462888-195f-4289-baa7-08db78d61137 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M+hr1M1PebPIYWESt1s2eIZHjFQWNlV1I77JOqoErmkNGI4x/qvA8GL1dpgAMbRK04YFHtR3vRrzX9sH8P4BtgtlLPhc0WfzvMc1T4SXf4B6/hx5iB7UhIrKFsFF21GJ83OnunbU4sSKB9dfC0j9XxbDJYKWBWmi/Dt1LZY21iMwGvNxyjRN6VQGDnNpMwzKgVtSvp7DFugp7VSiNUnoGcsZQWpjRutCqjNiRsdoqKWzmPFCv9Q/S1qmc1FYok0JHO++Wj6SUaSMdIF9hWtBNObLBDeHbojNYNmys3MQxcMHD9uHwpMPK0QCh2qSHVabJXv5YPhxcyI6ddor7jCxp+P87GXBDuQCBFkmWX87Eo2JdwFG/w3T1fcJTnDY4PlnyjoXFJWV1UePwEBHHahXG4AEgRuv0FSnSjgi+9S5QC8QKuIechMEtLrA9bpJQtfwowGdENClHQuthIiEvv5f/M00+GLLNFbX6AmMlXxWCJFJyEenyIibAg7UZDtG6dhHpAlHnYa6sbu+n18TL24CPED+w6dUkCLcE9TBxHV45YXb94EyQHbZ0wZ9j4NSBmCPRMPwr/wqlr1kfvStoNLG/V0HrmF7JW42piFNRTPqsK0= 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)(136003)(376002)(39860400002)(366004)(396003)(346002)(451199021)(83380400001)(316002)(6666004)(8676002)(4326008)(8936002)(6486002)(41300700001)(36756003)(86362001)(38100700002)(921005)(2616005)(7416002)(7406005)(66556008)(6512007)(5660300002)(66946007)(66476007)(478600001)(2906002)(186003)(26005)(1076003)(107886003)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TM0sx6/Xq9XotUX9l2vrr19DS6QeD9xsUMmgh4XZrEhZccnPjCHmmzMZV9Vw8BmIBrJgNcSWRa8HrouvSUCG7oWnI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u65Emdoxw9guQIipNg2nyvc/f0J7Cqn5u7hEBQxVbs7eH3/DRxGt9LYDlfRKTPA/cTqCf4mtkP02LjPyUZi2gMnp8Y2R1awEeKw8ahRePjzaV6ndncuNRrvNsv1r3Fy5neeHy/N3R1lI5J8JIztOGsu10L7Pc7eXbdSEdp+jYgHXMg0/YmsoJuCOr778IbCLjo1kr414jFDn4yObN0fVEvglvKT2YjUVNTZGdt7GJTa96zBMRpwujKRaM+Voxtd9Te3Fve1B8GbfutlFe7iKglEJ26jSzTXDdU0XRgjq/vCn7rz6T3w0ZnIgvcj53KO6PXyhIwODUXf2DO9uav71u5aAoCO8LT/Kv0pyI5yJNHjVzUTUl8mOd7E+rtZViPaxq/tkfvzUyVLrdmCRj0FzJGpb6tmnvuS2CzlN+O8XvTJG1c0nbkjwtn98MNER5e+3vwPIByIIw4dnIfLLt/U6wP74hEuuKeAyjQdlOLdoQ27SFvA5W8m2vC21chkkZXCI2lyQD+ZHW94dvGIG7wTr+lFtAVe5L4gsgxKsKD5WI4O/lsxQO6k/NxR2xq+ao6ukP8Krux4MxHlRbuokp/FyRGEs2L1B05g5smJXgXWNfRIlx7ZIAt0oySFID3pOHqmp/0g+Giw9g49EivuV8fStxREAnQrpG4l+Ev0eM+cBcfgUK0sj9ZFB2YRZO6Cgoy10KP47vb0O+aKTrI/yE3a7udwK2K1V25K8tquqhLmxVDrux6H+brMRWTQM+ewwcC93fcocDgYBU+MhJ+uDobogCaaXvMiHvYM7rqDXMr5gDT4ShhFsB4ULlxLm5Di0qZcfFBZ3C1/KLr7PcHHG8RB6oyLgLBn388szQG97muN1bqFu0P2lVBfctVC/wo= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24462888-195f-4289-baa7-08db78d61137 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2023 19:21:41.1857 (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: c8s0JWoJ1aRCiTXx8C6norwnWarzFx5XsAJFksgdE8jQNaf6vRILGxga2LDKgAlBQPPMEF6XtQz/zyKMlwlbgHEvE/C6qDy54Gxhj65iHuc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7200 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-29_06,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306290174 X-Proofpoint-GUID: BxNcQgntbmbUMwcnHXGKW08s1B19OfVS X-Proofpoint-ORIG-GUID: BxNcQgntbmbUMwcnHXGKW08s1B19OfVS 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_H5,RCVD_IN_MSPIKE_WL,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?1770067450447828108?= X-GMAIL-MSGID: =?utf-8?q?1770067450447828108?= |
Series |
crash: Kernel handling of CPU and memory hot un/plug
|
|
Commit Message
Eric DeVolder
June 29, 2023, 7:21 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. 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 e9cf9e8d8f01..824ffc5282f4 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