Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp354192rwi; Wed, 2 Nov 2022 12:44:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Tb1dkEUezQ/Nk3OBWx0FEqy5VDzPFM7bbNWbdnbNNpcOWMWITZE01itlCcAirnr1mY8Ug X-Received: by 2002:a17:906:6086:b0:731:3970:48d0 with SMTP id t6-20020a170906608600b00731397048d0mr25237993ejj.16.1667418252070; Wed, 02 Nov 2022 12:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667418252; cv=none; d=google.com; s=arc-20160816; b=Gj6o/iB8XdAdN7t1O/FDxdrD7dpT3U3ixO0+9i9Ph9iyK0rN78iD15oY/C7koSIq94 vtS1A0eZbgloccBoufMGwT/KTxVyVGcrPmf7y1fFhuYJQq/BSDfg/WZHEux7jYUbxqB4 dzcw4VUOsd66KF01SigwoB07xA+f/lhv+GKPMlXkYWGhBgZlzIwsTQdoVANuoHWw85oB bxHOU2K8ngD9tkioU5tfwT0bgAzXsVA1jCGbqvNWWLAZh0rhF52QU62Cw627yhu7eodC Eb+gUQ5WUsPdYN+vI8j5o0vw3VW3OQgNpJZOsdDMvPLIIW/ZuIBU128CelJTEsBwMLF9 OJLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mxQPFn4VApQbB8DR3S7WCXnD5Fw6PWq0YrvohTIv6T0=; b=P3vwcK28xrhKxyOH684u69ieXubngU/ywCc+rCHXsM/lEuaGyMTEQzpcug9SYmPYsc 2YFJVY/bCMry3o5HnEIlHP5gh+xbaIbYs4XOvTgsn1CmRkHpzYyOwDTDq0WcMTKtgGXV pYyT7/tA0123pDP7xydV3tPSTxTnc4QJoiXelSanpLMAg9KJH87GgU/CaaqsOTpIExAP oVPQ3aMfDDGcTTb5u7rhX1thrjGvYRu+iSwOzSFI6zgdHYP+dtt/VyarMIFRs0PVFJ3Z Hi0mzuKV83zQ7BEiG8Xph3De7tFEejNLHK9Ynp8JqfEnE7jxz80XugvHHPPBxO8w3yDz r5gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DGCSacQn; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a056402358500b004614db9083csi20262913edc.313.2022.11.02.12.43.45; Wed, 02 Nov 2022 12:44:12 -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=@alien8.de header.s=dkim header.b=DGCSacQn; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231828AbiKBSuP (ORCPT + 98 others); Wed, 2 Nov 2022 14:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231778AbiKBStm (ORCPT ); Wed, 2 Nov 2022 14:49:42 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC6FD2BEF for ; Wed, 2 Nov 2022 11:49:32 -0700 (PDT) Received: from zn.tnic (p200300ea9733e741329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e741:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 683951EC0426; Wed, 2 Nov 2022 19:49:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1667414971; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=mxQPFn4VApQbB8DR3S7WCXnD5Fw6PWq0YrvohTIv6T0=; b=DGCSacQnm9py2kWOxRnUFJJBaB/7uju6cLCKCJfO/Z57vhznDBC3OG6XXP6RT0NlNnhWVC sOBJYulAsrSlJOTdxxbR4jgCUWyH081sWheuRMz2bCZyyecu4b7HdEeP3W2jnO9JCty8bM B5fnXC7IU/UeoHh/BGRnJds8maQIOnc= Date: Wed, 2 Nov 2022 19:49:31 +0100 From: Borislav Petkov To: Eric DeVolder Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, bhe@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, 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 Subject: Re: [PATCH v13 7/7] x86/crash: add x86 crash hotplug support Message-ID: References: <20221031193604.28779-1-eric.devolder@oracle.com> <20221031193604.28779-8-eric.devolder@oracle.com> <1c11a429-b5a9-fb55-fbef-b49e760e2d1e@oracle.com> <06ef6e4b-1f42-d50f-1328-4f82fb34dd4d@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Wed, Nov 02, 2022 at 11:54:08AM -0500, Eric DeVolder wrote: > Technically the answer is no; cpu hotplug events are independent of memory > hotplug events, but both are written into the elfcorehdr, so in reality > yes... The elfcorehdr contains a single list of Phdrs describing CPUs and > crash memory ranges; the entire list is re-written on a hotplug change. Then technically also yes. Otherwise your crash information will contain wrong CPU numbers. How has that not been a problem until now...? I.e., offline a bunch of CPUs and then cause a crash dump. Hmm. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette