[PATCH] Fix memory access errors for kexec PPC

Simon Horman horms at verge.net.au
Wed Apr 27 03:48:05 EDT 2011


On Wed, Apr 27, 2011 at 12:10:19PM +0530, Suzuki Poulose wrote:
> On 04/27/11 11:47, Simon Horman wrote:
> >On Wed, Apr 20, 2011 at 03:02:02PM +0530, Suzuki Poulose wrote:
> >>Hi,
> >>
> >>I was trying the kexec for ppc32 and came across a couple of memory errors
> >>while running with glibc.
> >>
> >>The attached patch is the outcome of the glibc's alerts !
> >>We define buf[MAXBYTES-1] and issue  fread(buf, 1, MAXBYTES, file), which glibc
> >>reports an error.
> >>
> >>Also there is a typo in the realloc_memory_ranges() code for ppc which causes in
> >>a double free().
> >
> >Thanks,
> >
> >could you please make this a formal submission by
> >supplying a Signed-off-by line?
> I have updated the patch to use realloc instead of malloc() for memory_range.

Hi,

unfortuantely this doesn't seep to apply to the current git tree.
Could you fix that?

The tree is available at
git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git



More information about the kexec mailing list