Re: [CHECKER] pcmcia user-pointer dereference

From: Mike Playle (mike@newdawn.uklinux.net)
Date: Fri May 30 2003 - 07:39:05 EST


On Fri, May 30, 2003 at 01:40:27PM +0100, David Hinds wrote:
> On Thu, May 29, 2003 at 04:30:54PM -0500, Hollis Blanchard wrote:
> >
> > That's true for pcmcia_get_mem_page. However pcmcia_map_mem_page writes
> > into the structure it verifies. I think pcmcia_get_first/next_window
> > could also be used to corrupt memory (*handle = win in
> > pcmcia_get_window).
>
> The map_mem_page ioctl can only be used by root. The get_*_window
> ioctl's can't corrupt anything because they, like get_mem_page, only
> read the target data structures.
>
> -- Dave

What about memory-mapped IO registers? Can this ioctl be used to cause
an unwanted read from a memory mapped device?

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