Re: bug in write(2) system call.

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 20 Oct 1998 14:02:52 +0100 (BST)


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

Thats what the access_ok() part of the intel copy_from_user macro tests.
Since user and kernel space are disparate addresses the check is easy

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