Re: /proc/vmcore mmap() failure issue

From: H. Peter Anvin
Date: Wed Nov 13 2013 - 17:45:35 EST


On 11/13/2013 02:41 PM, Vivek Goyal wrote:
>
> Hi Peter,
>
> I noticed we seem to be trimming away partial pages in memblock.
>
> memblock_x86_fill() {
> /* throw away partial pages */
> memblock_trim_memory(PAGE_SIZE);
> }
>
> But not in e820 hence they show up in /proc/iomem.
>

Why does /proc/iomem matter?

> How about something along the lines as below patch. This fixes my
> /proc/vmcore mmap() issue.

I'm not sure if what you're seeing is something that is better handled
in userspace.

-hpa


--
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/