[PATCH] make devmem map only a single page at end of memory

Denys Vlasenko vda.linux at googlemail.com
Wed Apr 14 20:06:03 UTC 2010


On Tue, Apr 13, 2010 at 4:35 AM, Jörgen Pihlflyckt
<jorgen.pihlflyckt at gmail.com> wrote:
> Hi!
>
> I noticed that the devmem applet maps two consecutive pages of memory in order
> to allow access to a (non-aligned) object that spans two pages. This is a
> problem if we are working with the last page of memory because the next page
> would wrap around to the first page of memory.

What exactly is the problem: that you try to map past the end
(and what happens? it fails?), or that access past the last page
does something nasty (what exactly?).
-- 
vda


More information about the busybox mailing list