[Top] [All Lists]

Re: [PATCH] MIPS: OCTEON: Don't clobber bootloader data structures.

To: David Daney <>
Subject: Re: [PATCH] MIPS: OCTEON: Don't clobber bootloader data structures.
From: Ralf Baechle <>
Date: Thu, 13 Jun 2013 16:35:28 +0200
Cc:, David Daney <>,
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Jun 12, 2013 at 11:28:33AM -0700, David Daney wrote:

> 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.
> Can be applied to v3.8 and later.

Thanks, applied.  Will send to Linus with the next pull request.


<Prev in Thread] Current Thread [Next in Thread>