Re: EFAULT reading /dev/mem... - broken x86info

From: Dave Jones
Date: Mon Nov 10 2003 - 11:13:16 EST


On Sat, Nov 08, 2003 at 05:27:37PM +0100, Petr Vandrovec wrote:

> After some tweaking around I found that I cannot read some pages from /dev/mem -
> - I get -EFAULT on them. x86info run to the 0x86000 and 0x87000 pages, as it
> scans 0x80000-0x8FFFF range for mptable.
>
> After some thinking I believe that CONFIG_DEBUG_PAGEALLOC
> is responsible for this problem. Should x86info (and other programs which
> attempt to scan physical memory) cope with this inability to read /dev/mem, or
> should be kernel fixed so /dev/mem really accesses physical memory and not kernel's
> view of it? Or should I simple stop using CONFIG_DEBUG_PAGEALLOC?

I don't really have much insight into the behind the scenes going on's of
DEBUG_PAGEALLOC, so I don't know if your suggestion has merit or not.
Maybe Manfred can shed some insight? This does seem to be a regression IMO
(Though I am somewhat biased as this breaks my app 8-)

Dave

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