Re: [PATCH] vmcore: prevent PT_NOTE p_memsz overflow during headerupdate

From: Vivek Goyal
Date: Mon Feb 03 2014 - 12:05:49 EST


On Mon, Feb 03, 2014 at 04:57:56PM +0000, Pearson, Greg wrote:

[..]
> > So I will not be too worried about skipping seemingly corrupted ELf
> > notes. I think giving a warning makes sense though. Is somebody
> > overwriting the memory area in kenrel reserved for per cpu PT_NOTE.
>
> I haven't figured out the cause of the strange second PT_NOTE entries
> yet, but I suspect some type of memory corruption.

Hi Greg,

May be put some printk() in crash_save_cpu() and make sure that at
creation time notes are being created properly. That will atleast
make clear whether elf notes were not created properly or they got
corrupted later.

Thanks
Vivek
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/