]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Octeon: Don't clobber bootloader data structures.
authorDavid Daney <david.daney@cavium.com>
Wed, 12 Jun 2013 17:28:33 +0000 (17:28 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jun 2013 19:26:55 +0000 (21:26 +0200)
commit321c5917dc6720e7069d7da03f3122403b2362b0
tree3f92182bac58999d03ca79cafe9c6bef7511dfed
parent3a05a17efb8436c29ca6301de2089c76de6402d9
MIPS: Octeon: Don't clobber bootloader data structures.

Commit abe77f90dc (MIPS: Octeon: Add kexec and kdump support) added a
bootmem region for the kernel image itself.  The problem is that this
is rounded up to a 0x100000 boundary, which is memory that may not be
owned by the kernel.  Depending on the kernel's configuration based
size, this 'extra' memory may contain data passed from the bootloader
to the kernel itself, which if clobbered makes the kernel crash in
various ways.

The fix: Quit rounding the size up, so that we only use memory
assigned to the kernel.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: <stable@vger.kernel.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5449/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c