Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp454316pxm; Wed, 2 Mar 2022 01:46:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1avtiZ4zmQivYiPeThpVIEHVXPHwycOobM9zXXHarOJpphD61esEW2tcdFd5kmvJsGmR0 X-Received: by 2002:a05:6402:2744:b0:415:c590:3ac3 with SMTP id z4-20020a056402274400b00415c5903ac3mr575317edd.405.1646214418460; Wed, 02 Mar 2022 01:46:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646214418; cv=pass; d=google.com; s=arc-20160816; b=IxD8+RaP7+OV7vzNzEnmu6Y5Ecc12fKHTQwfEAWz+1EBu6df1siRlxGyW2vUrqMQEg qFmiKB3trVZNULAi6z/IkXWob2QGr6fyMvDVyw7vkX0+HMLQlkzfn1QTEmYloznhK76s OLB9ZT5JHkX3D8ahedzKFhajFOTfKE94ssHnDzenCuV8EVF8mNeuzZhkRW1oF0AgOaLM FsXuNLERZn0HPRyKCKdW6cJ4SIUmCq/29eoMdIdTHzO6YnCX3UAzEHatxJeIThMYb0Et yTMCcMob6YafWGAV2j9PzjMS+SBZZ4kMes81p/4PziYggfaDBIPeXrk9+A8Rlb8dCEYn tWzg== 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=efFJWqb85NUkQ1juTjD4nztei7jK0aBy0841M7B13aU=; b=lqcw6UZWbj0RxyGWiQ9I6BtoFgYBgMZuPh6kx4XQipi/uLzwDdmG7WBvgh5xjUyYdM fPuHc1Nk+Mbw533eBGNA02qU+jI8xVS4RYFWC82+wAt0EjPGs9Q2H1YYPekUpau4UBQ6 S+NaqDEGr30hs8/Re4qGgcSh3g5pDYQKPWkTpdp+3bzrBHtqwEqhxgPVp/7tzXfuzdUt ygcEw6IPwf1Kt3PwYrkvEHFqk4umVeGrptUicG2n+BwpiCrmN6R/DtZyJP4nX9vHdypS os8Z2DRyUYnNHRt2j5u0Uj8MkuaQYy6aI4HDK/DrzAepFZon6UtsWSpCxLILE9LcJi0j bBbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=TeeUW3dF; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HDDUfrlY; 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 z10-20020a05640235ca00b00415bf4cd2a0si730928edc.207.2022.03.02.01.46.35; Wed, 02 Mar 2022 01:46:58 -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=TeeUW3dF; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=HDDUfrlY; 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 S237625AbiCAUJs (ORCPT + 99 others); Tue, 1 Mar 2022 15:09:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237618AbiCAUJq (ORCPT ); Tue, 1 Mar 2022 15:09:46 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6A391274D for ; Tue, 1 Mar 2022 12:09:02 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 221IjAMF030543; Tue, 1 Mar 2022 20:08:43 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=efFJWqb85NUkQ1juTjD4nztei7jK0aBy0841M7B13aU=; b=TeeUW3dF/fHy5xy+zuBxsHP2onwOkOuj9SDluh50a+/AeDbgqcG4CfCQWSdAL37MKnEb QUjNY5vh06PO8NVnDGjGnyF2LsFXyGcBJ1d7yfm0bL7aCV2eqMwrJDqKsqtGcbuxbvH6 R3pWW5EJ3PO4fGsoNGBpHuJtS46eWux2JsUkzLZodRpq41pF4RtPowru6Gqh/ccOvc0Z qEsCsUfhcLjUuQPu67sl96VcrxyaAstlxHEA5fd3m34lY49+LmtLjed6fubCuUyeW311 mcP97HXk/WXtzui5JGnbUgWfHRGvoPB1QdALtTXh/RysK/6kmw9YhsdLNr5Dm0qb85Hi /g== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3eh1k43w6d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 01 Mar 2022 20:08:43 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 221K5xwV034174; Tue, 1 Mar 2022 20:08:42 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by userp3030.oracle.com with ESMTP id 3ef9ay4t7f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 01 Mar 2022 20:08:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EZV6H/bDIdVG5LVoAOTDEhAbnz7tLkde2mCR4RV9Sy178lbq2UTeYX26KS8wOKnMHavK5bJED3ug7m3lY5Y59YJbAikN3pL4Gnjd0knTjKJ6GCrA8yNKgRIBDSMWzVFlTFdnWg5vk4EHRaA1p5xM1txMwb/7m+pKf7uKJ47cygnDnIUeBUoXW/vn6Ep6J+hwVS0CQIOvy3+6K33kgSh2/f2MDn6KjCdZShfXrZNlS7RXpaTPcLblLD/SbQgRJ3n8M2r8dKzjkbPavCx98ZDuo94RvaIaJiDOKcp6ZTRZllZHHoMvEdkQ99OKkUyTHhm5WnHvoEHR8/7T4T5G5HTwow== 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=efFJWqb85NUkQ1juTjD4nztei7jK0aBy0841M7B13aU=; b=KZ6X038D7MmsdRpYKAGBnS+svGQrZiF/epAB6SJyng6fqI/ViQM7Lp/KQkmQcvHHW/F4rZYBQWgVtdm0w1Adx1q4RWEsfZ7qqmLhk80c4Lg6RmjHq/q4fWsvJsak+38/1FYOEYb4kEjCkN/ekzg/ilQgqVwpxV5gqFrDP6xiorTk88UFtzJuFUP6p/NbopUG+1J0IbatXQG2n89jtbMgGFS9Ha0H+VemNtDY1fA0tT+q4t6Cb6NwDk3hQR6U11YXzychB8AQf+0iwARbEpXT6U5gBgMMmcW/k8myEz0w36gP6kt1+Kl6/j1u+JMhewKBjqqGYtNs+AYmJffHLcbqnA== 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=efFJWqb85NUkQ1juTjD4nztei7jK0aBy0841M7B13aU=; b=HDDUfrlYfx/PYO9WRCG2RReWYelsvGnDkoSbC5Ezq/Anl9Ybgpg+Cf7qVziRseIlNirxM+kRQD9BPQetthWdfcPvH4RJFCZQMfp+z64tyq4NZsVwzPpBwseL9JZG10nWUwNvQGayUBdsxiP1gwvagS+lGKWNcOZ8v/Lo61CMMvQ= Received: from SJ0PR10MB4542.namprd10.prod.outlook.com (2603:10b6:a03:2da::19) by BLAPR10MB5313.namprd10.prod.outlook.com (2603:10b6:208:331::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.13; Tue, 1 Mar 2022 20:08:38 +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:08:38 +0000 Message-ID: <75f0637f-262e-1650-2a30-e7cbe2962448@oracle.com> Date: Tue, 1 Mar 2022 14:08:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v4 08/10] crash hp: exclude hot remove cpu from elfcorehdr notes 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-9-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: SJ0PR03CA0360.namprd03.prod.outlook.com (2603:10b6:a03:39c::35) 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: 5e83e0dd-d505-43d7-c0c6-08d9fbbf4651 X-MS-TrafficTypeDiagnostic: BLAPR10MB5313: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: 2MslmCkRngqxl+eO8wRliovaNGmjPC2T5IGujJ7dkdEYNPycCUYQITnQtOpfotUxPwfi3tggaY7ikuAUIvpeFqYeaHcGz0lleMETqEIMqGF2VET/h8oJ/hrOYSkO+yiUPBhSTugNv9FhDHnYUcFBNrQPMwjLS2TGzLSm8P1h0p+vEGIBgvVfffPWW2lCSzh/89Iy9KPo7SZFpTgzDznoqc/07KWnxjlbEGxhcnMKpR/K0tvAeba6LzTFUcG6eLaXiYOb/pUEYs39GPgqX7ya/De6bIn80/VnXVqMifind9wL2sgKnV49nyOUX2/HIR6A0GKCuUrBos6dED2q/EM9JrNITMBEu8RZDuYhECK3ydes75J4T4dx3JYHqPJDMZAK05V1bVBEGtMX+9MIaWq4EoFeUGE3eN7OgfQrfzJ/1yPonYTuHgfybn1RKd57AfVbPwBYfnbYdrcePqHp5X+BOVX731sTSKUGRAgUvI0xF1l2jmjdk4eA6+KSIKOA7N0V86its3Jq2GXPY46TN7GdfezOtEgDJe+JaL+ciZP2t3MZx0yMvQ4ve+IcPYhtw/KLn+egzhE0LMzYhiN+Xu6RDr8/zqYqAMB+P3DocZ8skZV0SRVgKU2DjDl/5QlSf77yXhm0FZyXSXlTuWMDpB1hCkvXBERO1RwD/lPJvyNRP5RheNExfCrBOFcfWL5QxAzYYKqDcYzIRQV5n3BZ2HAq7G0LDaA4M3Fv4u1tz+eTGeYIKCUXg2l5jcDA3NN90n3T 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)(6916009)(316002)(8936002)(31686004)(6486002)(66476007)(66556008)(4326008)(8676002)(2906002)(31696002)(86362001)(7416002)(508600001)(36756003)(6666004)(66946007)(5660300002)(107886003)(6512007)(53546011)(6506007)(38100700002)(2616005)(83380400001)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UkZWWHk2SThrRERxbXg5RnNZYWhDQjNsS2pzVzR6eWgvRFpOQVFsc0pUeTlU?= =?utf-8?B?WUtjU1U2Y2p5Y3VLSzhVYzRVRzlWckIzUHA0RCtCZE53UnQrY2F5QStIUnFG?= =?utf-8?B?dHVsd1U5Q29uMjIrL0VVOVBSSEI2VVNoeWhrVkZIM2dzbi80M00wZ2x0YS8x?= =?utf-8?B?Ym01VVhtN0QrQXZnZWMybEJSL3FwTnJwcXd2VjVWb0FNNWFXeHhhVjhJd2dw?= =?utf-8?B?NDA3eWEzVWlpTnBrbXJiRTdjSHU2SzU0cWpvN1duczI5TnlieExZZkhFMHpV?= =?utf-8?B?VVA1aW42eXI3bEZtTEJVNGpteXFHVE80Y01BQlhQVVpF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vUjUzYVU4NmNpYVYwRXJ4RnZOYTBBOXhx?= =?utf-8?B?VFJoUUdwc0RCSVlncUFjSXpuMzlRUUxzMG5hVFB2Vm5PeS9QbXFOb1QvTkU3?= =?utf-8?B?MFhnYm5KVG5NQTl0SW0ybStNY0RBOE1VN1h5eEtnS3MraE5OV1JrazRJUTY4?= =?utf-8?Q?8yK2U8S/PwdUjpvkwZ?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e83e0dd-d505-43d7-c0c6-08d9fbbf4651 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:08:38.7987 (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: SzGmIIQ4z4M4Qq9md1/kM1WPazDv03yG+JG2TvdEIQo3j7EEdkgm/O3uE8wBYsQabDtjDk3Mi5PaEahrWDY03iYScnfKCBQTMdUa8yUj7z4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5313 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10273 signatures=685966 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 malwarescore=0 mlxscore=0 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2203010101 X-Proofpoint-ORIG-GUID: 74uO_znkyWHuCEm2MJc_TAa6afAYxXyH X-Proofpoint-GUID: 74uO_znkyWHuCEm2MJc_TAa6afAYxXyH 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:04, Baoquan He wrote: > On 02/09/22 at 02:57pm, Eric DeVolder wrote: >> Due to use of CPUHP_AP_ONLINE_DYN, upon CPU unplug, the CPU is >> still in the for_each_present_cpu() list when within the >> crash_hotplug_handler(). Thus the CPU must be explicitly excluded >> when building the new list of CPUs. >> >> This change identifies in crash_hotplug_handler() the CPU to be >> excluded, and the check for excluding the CPU in >> crash_prepare_elf64_headers(). > > This looks good to me, and the particularity of cpu hotplug can be > understood well by other code reader. Thanks. > > Acked-by: Baoquan He Thank you! eric > >> >> Signed-off-by: Eric DeVolder >> --- >> kernel/crash_core.c | 10 ++++++++++ >> kernel/kexec_file.c | 5 +++++ >> 2 files changed, 15 insertions(+) >> >> diff --git a/kernel/crash_core.c b/kernel/crash_core.c >> index 524470e18883..b6942e04a188 100644 >> --- a/kernel/crash_core.c >> +++ b/kernel/crash_core.c >> @@ -550,6 +550,16 @@ static void crash_hotplug_handler(unsigned int hp_action, >> /* Flag to differentiate between normal load and hotplug */ >> kexec_crash_image->hotplug_event = true; >> >> + /* >> + * Due to use of CPUHP_AP_ONLINE_DYN, upon unplug and during >> + * this callback, the CPU is still in the for_each_present_cpu() >> + * list. Must explicitly look to exclude this CPU when building >> + * new list. >> + */ >> + kexec_crash_image->offlinecpu = >> + (hp_action == KEXEC_CRASH_HP_REMOVE_CPU) ? >> + (unsigned int)a : ~0U; >> + >> /* Now invoke arch-specific update handler */ >> arch_crash_hotplug_handler(kexec_crash_image, hp_action, a, b); >> >> diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c >> index 93bb0c0ce66c..339995d42169 100644 >> --- a/kernel/kexec_file.c >> +++ b/kernel/kexec_file.c >> @@ -1314,6 +1314,11 @@ int crash_prepare_elf64_headers(struct kimage *image, struct crash_mem *mem, >> >> /* Prepare one phdr of type PT_NOTE for each present CPU */ >> for_each_present_cpu(cpu) { >> +#ifdef CONFIG_CRASH_HOTPLUG >> + /* Skip the soon-to-be offlined cpu */ >> + if (image->hotplug_event && (cpu == image->offlinecpu)) >> + continue; >> +#endif >> phdr->p_type = PT_NOTE; >> notes_addr = per_cpu_ptr_to_phys(per_cpu_ptr(crash_notes, cpu)); >> phdr->p_offset = phdr->p_paddr = notes_addr; >> -- >> 2.27.0 >> >