]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
powerpc/fadump: Account for memory_limit while reserving memory
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 27 May 2020 09:44:35 +0000 (15:14 +0530)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commit3ff4da8eb682e90836b36ab09aa54154a6fb8a1b
tree0ec8e13dbc8715ec428e605fc4e9e967e712859f
parent0aa04bb202e40778828f7f12706ac3146488db62
powerpc/fadump: Account for memory_limit while reserving memory

BugLink: https://bugs.launchpad.net/bugs/1885023
commit 9a2921e5baca1d25eb8d21f21d1e90581a6d0f68 upstream.

If the memory chunk found for reserving memory overshoots the memory
limit imposed, do not proceed with reserving memory. Default behavior
was this until commit 140777a3d8df ("powerpc/fadump: consider reserved
ranges while reserving memory") changed it unwittingly.

Fixes: 140777a3d8df ("powerpc/fadump: consider reserved ranges while reserving memory")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/159057266320.22331.6571453892066907320.stgit@hbathini.in.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/powerpc/kernel/fadump.c