Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp153360imb; Thu, 28 Feb 2019 19:17:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwrfFkIX0z+pKfw2xhS7UFE46heRDQy/J0VbJeJ6HKkC+ozsE75K0sZ0TeDWfkhzLC3Fp2Y X-Received: by 2002:a63:7503:: with SMTP id q3mr2516541pgc.98.1551410234764; Thu, 28 Feb 2019 19:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551410234; cv=none; d=google.com; s=arc-20160816; b=uiT+wmkrTwH3u4dBFJgezzMx4mD2RIeVpQ82hQtHLeM7uwS6EIRi6r/uS2irXrbr2c yqZlvNZOJtF2Ir592guq5R8LnG0NpO2lywmKNr2BIk8tQGHuLF97vyVSSDqYyYtJXGC3 HydwStuPN8QWogC7DAsXRGjbNLKpclGmzHAlN3Fj6l7zwRGOQKesGkENj7xFrNi41H4v 8jCcWIg8lqtyMfgbuQZ4Audtw84v6lRGCbGE2+sf3SllsRhUwpKM0gSbwGNjuahf6pb5 NEdF1S/hujC7ggRxpzeDjEkTZqKtS9tJYt0QeV0I5ygPVB97p/ymiOQdvDaHukxIuXPl /IUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DM+d/4EP4JRgwKFIQ8vTGi+KTuta0nTyCKeSsyUW+IQ=; b=mi3PJfhUsEVCGfvj9/B1YY1didA7uxOpLn93RlKw438acjLZmqeULJnuPq17K2Cokt YYvZkLalZ2q/bca4CS69S5WRSDMcBPFw4sDqrFFo0M//nkskfs/O3LTcZkiQ/ybWWwJh RQi/6xwAZHcACHaOalvl/cRaGZp3CBvcnhOerYI530pueuT+RUoHgZ+jvYPDAYF2AW2k stc6yRoto1ulaptTj9HKVVIL9XXoiq/EkG5+PZHk0dcci5KNaLCfQfVlh+RLUrIief1A oi5indadCFTW8R4e+hnuxgypSjqylHlNtZO/bo34SSR1/8N/JURIFAVk5OuHQYBDTFJC C6Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R0HpGexN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si6769832pgj.96.2019.02.28.19.16.59; Thu, 28 Feb 2019 19:17:14 -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=@gmail.com header.s=20161025 header.b=R0HpGexN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729040AbfCADEc (ORCPT + 99 others); Thu, 28 Feb 2019 22:04:32 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:34955 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfCADEc (ORCPT ); Thu, 28 Feb 2019 22:04:32 -0500 Received: by mail-it1-f195.google.com with SMTP id 188so19240018itb.0 for ; Thu, 28 Feb 2019 19:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DM+d/4EP4JRgwKFIQ8vTGi+KTuta0nTyCKeSsyUW+IQ=; b=R0HpGexNCXxU8+buIYrCqvxn9P1eVd/e6fX87s3tas6Nd8yMl5BdqFjXUW22CaKr72 iS/PwDw32Cq/26zCWDKnDmHafZzuL6UtI+lN/sBa1wwk93xPhvacEOC4R3lRO86ppxJT sO7kFqp4RjiHMZxSgv37VPjfFaYxbyneyZjaDpr1zgPW7ztVS3MwAzRxrOEBZvG3J/CH GLFF/XBsJ8MDXHE3ytrX/u39fpsiimm+sqUqi2R5yNUBJUkpJEdNeeqt8F7J8a69Pdsy +VDzbePnbipkG1fwmPzhXkO9i6pSMbYG5Ws5bHdqCS8PbenqtMJPHXBonU92pVM4jrHR jL2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DM+d/4EP4JRgwKFIQ8vTGi+KTuta0nTyCKeSsyUW+IQ=; b=HGUkkM6cHb7X/2Y7F9uVtsx/wtkN67zialWlzdMW8E+7QAAQtFSF7u0V62Ut5Y0nx8 +ucrUkg52Hpx+/FghhWlP4Qm6W1VPn7AxCxSnfo0A7oGjxeS7JDHeHH2w1jWetYEFEZU E5+7Od/PXjA9NvMXxR5qfAuA/oXt2k0A64KSlaFg4bAgWAlCtTIwDOw+e7cETQiiHtnl xLYHRvDanbQqfBTUkUAexDn6mR47UZhMcgbfbXEhmDVnK9oQ6VuznktIsqRDVyNFNT0L 4KibETNfiAaydU4ngIp2/V9whdcwoA0JsZAPtIYTTUUyyjcsmMbVVSQaMd+gif946CfX 8pvg== X-Gm-Message-State: APjAAAVe+uTbw2kF2kYnjTF10qeLtrqq+ulOv2ysEz3Dj2V1RPfIUmMC k7hlxyjHHhqpvx1kjYKZ/6mhh0JDOKtPQ04c6A== X-Received: by 2002:a02:8c28:: with SMTP id l37mr1469411jak.17.1551409470930; Thu, 28 Feb 2019 19:04:30 -0800 (PST) MIME-Version: 1.0 References: <20190215102458.GD10433@zn.tnic> <20190218014820.GA10711@dhcp-128-65.nay.redhat.com> <20190220083241.GA3447@zn.tnic> <20190220094146.GA8597@dhcp-128-65.nay.redhat.com> <20190221171321.GD12997@zn.tnic> <20190222021101.GA11654@dhcp-128-65.nay.redhat.com> <20190222084241.GC8380@suse.de> <20190222130026.GA30766@zn.tnic> <20190225110043.GA5884@suse.de> <20190225111216.GA9276@dhcp-128-65.nay.redhat.com> <20190225113003.GE26145@zn.tnic> In-Reply-To: <20190225113003.GE26145@zn.tnic> From: Pingfan Liu Date: Fri, 1 Mar 2019 11:04:19 +0800 Message-ID: Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr To: Borislav Petkov Cc: Dave Young , Joerg Roedel , Baoquan He , Jerry Hoemann , x86@kernel.org, Randy Dunlap , kexec@lists.infradead.org, LKML , Mike Rapoport , Andrew Morton , Yinghai Lu , vgoyal@redhat.com, iommu@lists.linux-foundation.org, konrad.wilk@oracle.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Borislav, Do you think the following patch is good at present? diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 81f9d23..9213073 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -460,7 +460,7 @@ static void __init memblock_x86_reserve_range_setup_data(void) # define CRASH_ADDR_LOW_MAX (512 << 20) # define CRASH_ADDR_HIGH_MAX (512 << 20) #else -# define CRASH_ADDR_LOW_MAX (896UL << 20) +# define CRASH_ADDR_LOW_MAX (1 << 32) # define CRASH_ADDR_HIGH_MAX MAXMEM #endif For documentation, I will send another patch to improve the description. Thanks, Pingfan On Mon, Feb 25, 2019 at 7:30 PM Borislav Petkov wrote: > > On Mon, Feb 25, 2019 at 07:12:16PM +0800, Dave Young wrote: > > If we move to high as default, it will allocate 160M high + 256M low. It > > We won't move to high by default - we will *fall* back to high if the > default allocation fails. > > > To make the process less fragile maybe we can remove the 896M limitation > > and only try <4G then go to high. > > Sure, the more robust for the user, the better. > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply.