Re: bug in write(2) system call.

Scott Wood (master@darkflame.ml.org)
Mon, 19 Oct 1998 20:46:23 -0400 (EDT)


Philip Blundell <pb@nexus.co.uk> wrote:
>
> > So we should avoid checking any pointers, whatsoever, and just go
> >for it?
>
> Yes; this is why we have the MMU to do permission checking. If you have a bad
> pointer an exception will be raised and the kernel just has to handle it
> appropriately.

And what if the user program passes a pointer that is valid for the
kernel to dereference (hence the MMU triggers no exception), but is not
something userland code should be able to touch?

-Scott

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