Re: [PATCH 09/13] vmcore: copy ELF note segments in buffer on 2ndkernel

From: Vivek Goyal
Date: Tue Feb 19 2013 - 18:05:58 EST

On Tue, Feb 19, 2013 at 02:02:34AM +0900, HATAYAMA Daisuke wrote:

> Anyway, what I'll do in the next version, are in summary:
> - append pad notes in each notes on the 1st kernel in every
> architectures, and
> - check if each note is in page-size boundary, and if not so, copy it
> in the 2nd kernel and then append pad notes to it.

Makes sense to me. Most of the time first kernel and second kernel are
same so no copying of notes will take place. Only in corner cases of
older kernel being used as first kernel, copying will take place.

One other possibility is that deny mmap() if first kernel did not
prepare notes on page size boundary.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at