Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp349566pxm; Tue, 1 Mar 2022 22:52:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmlweqDygFOpwnt4bfvvw6llCDSqnY4ZCIMi7hQs+KH6EcTp+uICJo8++5bPXO8PDo70vJ X-Received: by 2002:a05:6a00:23c6:b0:4cf:1e1e:ff4f with SMTP id g6-20020a056a0023c600b004cf1e1eff4fmr31259345pfc.80.1646203966043; Tue, 01 Mar 2022 22:52:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646203966; cv=pass; d=google.com; s=arc-20160816; b=e11cd+JOgQCCFytlp9b8+1yquUHqLiWoBlMQjz3XkawC4wtq6Xh1JWAec+R2HbmXl2 DEGoICmreZjiTL1NgvvbNZqvXG60jbUJ+RsMlV6wkWlj1jyrK8m1A2tDWxf6HEwQybul +i109in1w0hkwTYg1BBx5UbYDb/X8w8X78XFusVvbITQb+q117eKj1co2ikYRzbO+7kv Wtsj9TI/nLgSSkpy6LloYEnRWWQAy+o/icwTNdczRLIyoh8pPjfWb3xGgQaxiHAe+9sE ELcW/47rdDjGgBLhp8AF0fNQpnuUR5Npb5hxpDhe9nPvw1wSp//3Zfem3f0lWofmEqTJ v+Yw== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=2ZM/9doC0OmsIKSETEm/m6L3mWzw2jKELJn1vGIsOs8=; b=hO8Ez/xZTPIC9Dn+IG9avedtwtQVB14p7SgN00dWErg/3R3cHl9JDF/SKATl8P3zUX bEZZCPEXqvNc3MS5qfwPIF/MwtytiXNFqaYH7iBxqb7v3fOA386MxMj2VkK3lp8jzw16 5qH1YH8k7ElSfsn6Pco6Bwdz2fXz2PCCT+XGdC2fkbyS7Or0QO2lrxHqcdStz1wBQwil vBldQLRpc0FDfZMlqzPNo8lHRWIjBQ0ZdN1ELprT19Z4sZnNw6WSEDO8DNZRXomXDup6 7Ht0hUwxGqQRAIFUG0xKohJ9AApDligoro+s93kF0TwZVpE3lL4I5z+G+sh+A7k6ity6 URdw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=UdMp6+EN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="c/oTU/q0"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il3-20020a17090b164300b001bd350ea68csi5837352pjb.109.2022.03.01.22.52.28; Tue, 01 Mar 2022 22:52:46 -0800 (PST) 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-2021-07-09 header.b=UdMp6+EN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="c/oTU/q0"; 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 S229848AbiCAUJN (ORCPT + 99 others); Tue, 1 Mar 2022 15:09:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232552AbiCAUJG (ORCPT ); Tue, 1 Mar 2022 15:09:06 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 902D95AEDB for ; Tue, 1 Mar 2022 12:08:18 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 221J2uN2004279; Tue, 1 Mar 2022 20:07:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=2ZM/9doC0OmsIKSETEm/m6L3mWzw2jKELJn1vGIsOs8=; b=UdMp6+ENjJKp2XqrmgCps6w0zinNynicse6rhFQ5N0JlDQZyplW/2RwBpe0jbda/TS4v NaQfaid4pPevsKtvZcex6PqG32SmKdkaVLWUr5kEG0r2Enol/0zgbTVcmJpMCRlCSkI8 938Hf39eeY+UgQkTfskMH8L+Hr/0DNbKMZvxeKVSBT8p0VlRTQJai+OyKbJjLBk0q4cv 1u7WWycQX8OrbjbgbE17EUcaJ244++X/9HKKugsIU4cs4VYLBCZsM3lk95/tmkrLcijg +ywn75vxeAqQvpMSxF0jwtVH9ybNosMCEIOuuxs9BJNeP+RQCmM8TPG5SbLH2ohGrcFX Hg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3ehbk9acxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 01 Mar 2022 20:07:57 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 221K5M0K172057; Tue, 1 Mar 2022 20:07:56 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam08lp2046.outbound.protection.outlook.com [104.47.74.46]) by userp3020.oracle.com with ESMTP id 3efdnngcng-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 01 Mar 2022 20:07:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ql32SJJJPqtomVLoPwOwrx3MYGaiSPXmyPC7wCGZXnJ9LBeiM/rDjnUaEpJuaLZ/Cir9P/gNcJICZ9N/LEyDnWbkxW4jhVL4InxJNjXK7n1YkC+dNVcUIbOR1/nxIRC8lkpJ+WGdykICwEzdmK0lHhat5eSZ6vHxWIc12jn65rJLLucaKbB/jfN4YEe0GHY3/+pS/wcvyooyz4IySqqagU++hj2yzaJ35gQYKSbMYtw+/mLJTwhL5J8zglpr+ICG/MfdQNf/zzstGF3Ml0qrmm6UrLMDmfE1lvfms1TsgZ5+1j8I6unLmZWye/TukGZfDQwsY1B2X3JG+RTyHqcD/g== 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=2ZM/9doC0OmsIKSETEm/m6L3mWzw2jKELJn1vGIsOs8=; b=Tm4KgKipFf3ImA6AKGyUjCE12ZSIpHKQ+nsH0uU4DJh0jNtVA9+DN4i9lk1LOllse9TyN+2eviN6LDywaBkz2z8CkEm93mQ1rME79E4lyRdr86ttz3FYEcHpvCp6lO1ZzfQcle9MqgAFP2Ch8VQdmLMQn8tfRSy+6wfBHub9K6njX1wUziQdszS0IAvWMro2Weg02zoA42wkFMs6l3453aILl0ZvpMSFiVSHOyJkrYUTA4uEIqCLTvaA1gXEYkRWSYTUX/1ZkE937iOM4XHedk+GfUTsNYtXmsSdPzWmAQQHSG/PNJXIGjR+HhbdhGfcRihup4TRkMfEuAH5I24YXQ== 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=2ZM/9doC0OmsIKSETEm/m6L3mWzw2jKELJn1vGIsOs8=; b=c/oTU/q0mDZjillFdk8FqucPz52cHug61r4PG9tpnQrB8FJmj/M4LpcJtOvxdaU6raOQ5lWx6BeR3N5hON1bxZp2E93IlCLplzCI5x8PpJpu+iWA1l/BV8dikbZpO0PCxnMNPlE7iJUVX1BH/L172ClHoKWqJACQUvCeHY4/nwg= Received: from SJ0PR10MB4542.namprd10.prod.outlook.com (2603:10b6:a03:2da::19) by BYAPR10MB2837.namprd10.prod.outlook.com (2603:10b6:a03:81::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Tue, 1 Mar 2022 20:07:53 +0000 Received: from SJ0PR10MB4542.namprd10.prod.outlook.com ([fe80::4d07:86d6:8830:347f]) by SJ0PR10MB4542.namprd10.prod.outlook.com ([fe80::4d07:86d6:8830:347f%7]) with mapi id 15.20.5017.027; Tue, 1 Mar 2022 20:07:53 +0000 Message-ID: Date: Tue, 1 Mar 2022 14:07:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v4 07/10] crash hp: exclude elfcorehdr from the segment digest Content-Language: en-US To: Baoquan He Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com, 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, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com References: <20220209195706.51522-1-eric.devolder@oracle.com> <20220209195706.51522-8-eric.devolder@oracle.com> From: Eric DeVolder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR17CA0024.namprd17.prod.outlook.com (2603:10b6:a03:1b8::37) To SJ0PR10MB4542.namprd10.prod.outlook.com (2603:10b6:a03:2da::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7658833f-1390-487e-97f5-08d9fbbf2b7d X-MS-TrafficTypeDiagnostic: BYAPR10MB2837:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yHsJSfcrafKQVHbfJKlltd7uLZV5dzm6JREDfAvSxEZJHWs4maADclZkDsWt/g19+abrD0VpCHwz6YQtGj/NYgbnwYsSCzjCcJiLgoDeE6QaAvaYVRMvYOpFazM5SYwkjNnBztJW/Pc8qkrp0cjjkLthA8GIBFfWCoYSlcgQmIQ32sCi3ORnyzk9UwzVvIAlq8l7JMr5EfH58t7/fZVJKgdNem5mWWnIPRgu49BAAcQQksYgjKPI173X9jyNmg47ZcfSvf5q2mq2S2hxZjdon4BwRMpRagmh3tjKDl6mn4816iP5qgurovXaBJ74Cb70oJgUFu7PdW1u9zu+v6sAhArAKIr+bxOf25AA3CxCH3hsjYhuiG74ZdW71PnRQDv9vDVibqmOmJBZeTWU70ZOkuXUBJl7Z+vsAmbkukYmnfHvFpZ3KiBw58QNf2jqphRIBukvJns/9lV9NlbR2fS0zjO+YxRJPca5EOiQZEE5C8Ae+6VWneLcYRcWzJOlEqdcRSS0qkdwBPUgIi4GEYFlcwK51gjRGuGD8Ha/Eo8Ol+ONgB8V1uLu6dyvFTl5rVxPqaJkF3CJ39YA1SVdW7L2D+ySC+YxSrAPlbRmeD6HqnTTMnR6oWhGGgaiLUM5350FOVukD7mYrsnUCQtA1PxeB62UU5DYPmCPjfMT0FHyl0uqPc7K/MW31ngQwdRfrNDoXATZzVymKrCzMghq3dORETbFB/l6uL576b05mw6YCu6yKeeYxOhWiJ455qf71U10 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4542.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(66476007)(2906002)(31696002)(4326008)(66556008)(8676002)(6486002)(5660300002)(66946007)(36756003)(38100700002)(508600001)(7416002)(8936002)(86362001)(31686004)(107886003)(53546011)(2616005)(316002)(6916009)(186003)(6512007)(6506007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N1NRNGFHbzVJdHVuUHdLQVJTVHd4NEN4S0ZaWlVwaUtQZGJ1K1ljejd6SUxm?= =?utf-8?B?Y3E3M2JkY3BFczJ5ZDNHbytIR0pjNWN5MXJTWHhHNjhHelg5ZE52U0lmYW5i?= =?utf-8?B?RWhTYkdZWVpwTFIvUFlRYTViaWZ6V0dqNVpmcUFQdTI3UkN3aWk0RXJyVmhQ?= =?utf-8?B?NlE4N2l5QlpETVBhcjhZcUk2TGRoQnI3RGdVQUZYeEZpb2pzdmJOdktaNVVl?= =?utf-8?B?M2JCL1hDMzlFdkJNTGpObXRsNVh3ZHQ1NVR1Z2FJOU85aW10WmNNYUxKRmZ1?= =?utf-8?B?NTlzcXl2Y3dIU1llRlVMOTVSNzMzclJ0aU1KaDNSekN5NGg2VENZQ09KczBk?= =?utf-8?B?b0tjb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FM2eE9QTWtKNXl0?= =?utf-8?B?V3h6VERhalB6Q1N6TGlma3ZJb3F3QTNwbStHMDNQR0dwdVdhTFNmSlBZM0Rn?= =?utf-8?B?UGphV3JQTWp0MXIzMWtIck94WnJicktsSS9EbW5oTFRNV0NNMW56YjZXTGxz?= =?utf-8?Q?9fSzpovKiGG99qVnFS?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7658833f-1390-487e-97f5-08d9fbbf2b7d X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4542.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2022 20:07:53.8799 (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: ER0WafbIJ70Nlh74sSC/yjHHgLZXNGjjPPVVrkKi2CV6OMomhGj/ItHiRUQplYZWDVbp54IRG01S9/SnyNYlPVe0Pn7qWg+hainisFx5eIY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2837 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10273 signatures=685966 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2203010101 X-Proofpoint-GUID: BpKXaHEFUye4FW0hJpwQBudEDj8LHdro X-Proofpoint-ORIG-GUID: BpKXaHEFUye4FW0hJpwQBudEDj8LHdro X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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: X-Mailing-List: linux-kernel@vger.kernel.org On 2/22/22 22:00, Baoquan He wrote: > On 02/09/22 at 02:57pm, Eric DeVolder wrote: >> 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. >> >> Since hotplug events cause changes to the elfcorehdr, purgatory >> integrity checking fails (at crash time, and no kdump created). >> As a result, this change explicitly excludes the elfcorehdr segment >> from the list of segments used to create the digest. By doing so, >> this permits changes to the elfcorehdr in response to hotplug events, >> without having to also reload purgatory due to the change to the >> digest. > > Acked-by: Baoquan He Thank you! eric > >> >> Signed-off-by: Eric DeVolder >> --- >> kernel/kexec_file.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c >> index 801d0d0a5012..93bb0c0ce66c 100644 >> --- a/kernel/kexec_file.c >> +++ b/kernel/kexec_file.c >> @@ -765,6 +765,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 >> + /* This segment excluded to allow future changes via hotplug */ >> + if (image->elf_index_valid && (j == image->elf_index)) >> + continue; >> +#endif >> + >> ksegment = &image->segment[i]; >> /* >> * Skip purgatory as it will be modified once we put digest >> -- >> 2.27.0 >> >