From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:39910 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665AbdJEJCt (ORCPT ); Thu, 5 Oct 2017 05:02:49 -0400 Subject: Patch "MIPS: kexec: Do not reserve invalid crashkernel memory on boot" has been added to the 3.18-stable tree To: marcin.nowakowski@imgtec.com, alexander.levin@verizon.com, gregkh@linuxfoundation.org, ralf@linux-mips.org Cc: , From: Date: Thu, 05 Oct 2017 11:02:36 +0200 Message-ID: <150719415695136@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled MIPS: kexec: Do not reserve invalid crashkernel memory on boot to the 3.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mips-kexec-do-not-reserve-invalid-crashkernel-memory-on-boot.patch and it can be found in the queue-3.18 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From foo@baz Thu Oct 5 10:58:04 CEST 2017 From: Marcin Nowakowski Date: Wed, 23 Nov 2016 14:43:50 +0100 Subject: MIPS: kexec: Do not reserve invalid crashkernel memory on boot From: Marcin Nowakowski [ Upstream commit a8f108d70c74d83574c157648383eb2e4285a190 ] Do not reserve memory for the crashkernel if the commandline argument points to a wrong location. This can happen if the location is specified wrong or if the same commandline is reused when starting the crashkernel - in the latter case the reserved memory would point to the location from which the crashkernel is executing. Signed-off-by: Marcin Nowakowski Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/14612/ Signed-off-by: Ralf Baechle Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/setup.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -585,6 +585,11 @@ static void __init mips_parse_crashkerne if (ret != 0 || crash_size <= 0) return; + if (!memory_region_available(crash_base, crash_size)) { + pr_warn("Invalid memory region reserved for crash kernel\n"); + return; + } + crashk_res.start = crash_base; crashk_res.end = crash_base + crash_size - 1; } Patches currently in stable-queue which might be from marcin.nowakowski@imgtec.com are queue-3.18/mips-kexec-do-not-reserve-invalid-crashkernel-memory-on-boot.patch