Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6974973imu; Thu, 31 Jan 2019 02:52:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN52yiauG765Uvmw3iZe2JM6XbmFRKDMt/QvDmV74SS1cEiSJDAAk3oGm756FHbBexQT6Fv7 X-Received: by 2002:a17:902:708b:: with SMTP id z11mr34310398plk.203.1548931962624; Thu, 31 Jan 2019 02:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548931962; cv=none; d=google.com; s=arc-20160816; b=yW4GjMZVxOt5Cv33GuB3AbdtR/bt9MoXRoxh8R7iEj3hYr+fcDuCyJ1DeLuUlHqNnf ZdEw6umbI9GhBW5lqlrTcmdeb2D0EQxPrQ9nYGLp+reYLdlS6rx0PFx/u7pdFco/d6n+ FFUzwmpgqJb9tUJICHQqHf3EAW9A3mnqvEStXmuKjynuSEGRJGGCzzURPRATdOflnJie iRo3mQGPYcA05xcM+TuTsYbpWMf+IxKX+Z7wfumjgSbmqjOHARaNAhoUzC5mo9dcVKtc R1LFT6kLLUcrROlKo4UOhMddGnWYDtGYR8ZBDTi59PUjSt4NLF8C2TZqwVyR3Racid/b eMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iZxgZbiqmspQrT4l2OrjAvZyk2r8+D0wludez4XwuP4=; b=KKLxpcqUdCYI4nuPtScxIijQ1U+157i+f9b48cbY1FF6JhuUCCDMRktOgPBrQn9AQc OA5oJ1npn9U3LMIhB0zWHqEjkLDRLYl62hzDG4z7vaoBjEzRFhKfE1fKX8mIjDWHjjKs fI8vlUzqo/LW+KAdQfj4Cdc30RUO4wsxL9Frij3V6OjRY8x18xTvTGqrZIC90q2nmtpn mol6bmQzle5+vSUnTcuxJoDD2Dk+sbQGdlOnNyfTidu09PaOuN3MzwDJl+WEjkEl5cWA KEkkdvm4QdVSHNbGSWM/cIfQ2yZrtVFrggdKZrEBoPfzXTC6Xs3ms66xGMWARrChGmKr Lyyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RqK3LrPx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k135si3672121pgc.574.2019.01.31.02.52.27; Thu, 31 Jan 2019 02:52:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RqK3LrPx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728138AbfAaKub (ORCPT + 99 others); Thu, 31 Jan 2019 05:50:31 -0500 Received: from mail.skyhub.de ([5.9.137.197]:33834 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbfAaKu3 (ORCPT ); Thu, 31 Jan 2019 05:50:29 -0500 Received: from zn.tnic (p200300EC2BCC59000D578CD19F54A2D7.dip0.t-ipconnect.de [IPv6:2003:ec:2bcc:5900:d57:8cd1:9f54:a2d7]) (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 BE16C1EC04F3; Thu, 31 Jan 2019 11:50:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1548931828; 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=iZxgZbiqmspQrT4l2OrjAvZyk2r8+D0wludez4XwuP4=; b=RqK3LrPxPgYRIxRaDwU8FvsoNbIKWK+wUjyKreQhK8wqv+bCqW+VFL3ulEJD3LKFIXt3M2 PWBlCfZGAQu6mzEk5YHl07gSgZjco95Dnou3NGlks4yMTJiCRGEArizDVtdxJElBxYxHYC 1m069eHjj6A2qVXzI7TA9+lIvaEK9+4= Date: Thu, 31 Jan 2019 11:50:19 +0100 From: Borislav Petkov To: Pingfan Liu Cc: kexec@lists.infradead.org, Dave Young , Baoquan He , Andrew Morton , Mike Rapoport , Yinghai Lu , vgoyal@redhat.com, Randy Dunlap , x86@kernel.org, LKML Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr Message-ID: <20190131105019.GB6749@zn.tnic> References: <1548047768-7656-1-git-send-email-kernelfans@gmail.com> <20190125103924.GB27998@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2019 at 01:51:45PM +0800, Pingfan Liu wrote: > Sorry, can not catch up with you. Do you suggestion > memblock_find_in_range(0, kernel_start) and > memblock_find_in_range(kernel_end, mem_end)? But the memory is > truncated into fraction by many component which call > memblock_reserve(), besides kernel. extract_kernel() selects the physical address where the place the kernel. You can use that physical address to figure out where to allocate the crash kernel range. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.