Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4748259ima; Tue, 5 Feb 2019 00:16:54 -0800 (PST) X-Google-Smtp-Source: AHgI3Iac7KijWYgVJF9rgiiychFaIjjykNnh68pKGaXvKXwzfTYjINXe/cZ8U1oVkKQFfvY/g3FD X-Received: by 2002:a17:902:1022:: with SMTP id b31mr3790408pla.141.1549354614584; Tue, 05 Feb 2019 00:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549354614; cv=none; d=google.com; s=arc-20160816; b=vj+JkP/1asKA4vdgDLYmJqMFg8YK/rSdkf5iQ0Cwth1ed9vmsDI7F+3rc3yaXh4gvy evwY1a4I5/Qr2e+rURV1vf49sbb2WVS8aHrUBxUALP0/HbuS3AWmARBAkIvFqV90NeIz zdSFqCy1+/dGUw89aDI7wYNHD7N6wg7qAWkCzIsJ20Af86V3RHw2nOjQfVKMbRuadm5E wzYb09gfGu4hODLCKiE/BYUTWBJuJBnb7bhCKKM6U9nimbNy3xRrtvVXO+vOp4rsQqv5 amLZGb1xXh2BdjnvXgdRb66nqN3a571ACsJd+w1oGSL1HAZa9vi5HWj5jJOmutGMLEbr Nryg== 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=tkgFnKewGz8bffz+e/keKpf1PnYtWA6EtvbcPOHKqQg=; b=ulHqPJbUd5436OppN6zyCmtv8LLrm8hSDqOmOZKq7GmW+zbDfuzp+lQbtGsWP/t+GY 9jZ3rQhHVY+2Q/96IhgId1ByTj6jY2HpidFlEYn6KOeBV5fDDo5wbBwpXo1d2gnKYy3Y DWwNWNhfO6kIlPsGB1WdKawh/kfGY0oGBbND+ni5UGXBU4/AO5GJErkNoZkoYa5woMBe W+Ts7L35dZ/law6Qak8shLPN7EUKJWN6lNBNpzMCoKUvkS9z9Un42YfVvjFIW7NJdiHu cJf189JjXN7C1r+Cl6gIvWLjx1kpVYyqC0h0y3GFyl2fdI2R2Ouf8k9XwY/yvzXkL2Tk ak5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ZpWet7PY; 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 s18si2487108pgj.319.2019.02.05.00.16.38; Tue, 05 Feb 2019 00:16:54 -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=ZpWet7PY; 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 S1727742AbfBEIQA (ORCPT + 99 others); Tue, 5 Feb 2019 03:16:00 -0500 Received: from mail.skyhub.de ([5.9.137.197]:40264 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfBEIQA (ORCPT ); Tue, 5 Feb 2019 03:16:00 -0500 Received: from zn.tnic (p200300EC2BCB6B008896F3D5E1C66173.dip0.t-ipconnect.de [IPv6:2003:ec:2bcb:6b00:8896:f3d5:e1c6:6173]) (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 4556B1EC0911; Tue, 5 Feb 2019 09:15:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1549354558; 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=tkgFnKewGz8bffz+e/keKpf1PnYtWA6EtvbcPOHKqQg=; b=ZpWet7PYkPmIdtRlOLvqKagYDEsDCojZVJXdhUHInIU7pjAjyHsUL6JdEQUATSWVMc+d1M dTqzz42mPbbj7g4B1J2jAssa+fP5tHCnxC9xRheocexRv7XJnWiA7NYXVmsd0xYGjxXfFg 2d+nMxf4UYQaQJJAHdHkZVB0fir6jxE= Date: Tue, 5 Feb 2019 09:15:52 +0100 From: Borislav Petkov To: Jerry Hoemann Cc: Dave Young , x86@kernel.org, Baoquan He , Randy Dunlap , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Pingfan Liu , Mike Rapoport , Andrew Morton , yinghai@kernel.org, vgoyal@redhat.com Subject: Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr Message-ID: <20190205081552.GG21801@zn.tnic> References: <1548047768-7656-1-git-send-email-kernelfans@gmail.com> <20190125103924.GB27998@zn.tnic> <20190125134518.GA23595@dhcp-128-65.nay.redhat.com> <20190125140823.GC27998@zn.tnic> <20190131075907.GB19091@dhcp-128-65.nay.redhat.com> <20190131105732.GC6749@zn.tnic> <20190131222732.GA946@anatevka> <20190131234740.GO6749@zn.tnic> <20190204223016.GB11986@anatevka> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190204223016.GB11986@anatevka> 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 Mon, Feb 04, 2019 at 03:30:16PM -0700, Jerry Hoemann wrote: > Is your objection only to the second fallback of allocating > memory above >= 4GB? Or are you objecting to allocating from > (896 .. 4GB) as well? My problem is why should the user need to specify high or low allocation explicitly when we can handle all that in the kernel automatically. The presence of crashkernel= on the cmdline sure means that the user wants to allocate memory for a second kernel. Now, if the requested allocation fails, we say: Error reserving crashkernel So, instead of saying that, we can *try* *again* and say Error reserving requested crashkernel at @..., attempting a high range. and run memblock_find_in_range() on the other regions which we deemed are ok to allocate from. Why aren't we doing that by default instead of placing all those different options in front of the user and expecting her/him to know something about all those magic ranges? I don't think most of the users care about where the kernel gets allocated - all they want is a working kdump setup. > Falling back to allocating < 4GB probably satisfes most of the cases > where the original allocation fails. Yes. Now make that automatic. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.