OSDN Git Service

x86/debug: Extend the lower bound of crash kernel low reservations
authorJiri Bohac <jbohac@suse.cz>
Fri, 16 Jun 2017 16:16:02 +0000 (18:16 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Jun 2017 09:10:23 +0000 (11:10 +0200)
commitfe2d48b805d01e14ddb8144de01de43171eb516f
treebef095f9ee6090a0423ca058b78bddcb806d54b5
parent28be1b454c2bb60e317b3135211a378fa2718886
x86/debug: Extend the lower bound of crash kernel low reservations

The following change in 2013:

  0212f9159694 ("x86: Add Crash kernel low reservation")

... introduced reserve_crashkernel_low(). This function is used to
reserve crash kernel memory either if crashkernel=size,low is given
on the command line or if the region reserved by reserve_crashkernel
is entirely above 4G.

reserve_crashkernel_low() tries to find a block of 'low_size' bytes.
But there seems to be no good reason to restrict the lower bound
of the range to 'low_size'.

Make memblock_find_in_range() search from the start of memory.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/20170616161602.2r7birrf2y3ylv6v@dwarf.suse.cz
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/setup.c