Update comment explaining the check, to reality.
Discussed with: jhb Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
fc1689021f
commit
3ee6e65875
@ -249,12 +249,10 @@ ENTRY(copyout)
|
||||
jz done_copyout
|
||||
|
||||
/*
|
||||
* Check explicitly for non-user addresses. If 486 write protection
|
||||
* is being used, this check is essential because we are in kernel
|
||||
* mode so the h/w does not provide any protection against writing
|
||||
* kernel addresses.
|
||||
* Check explicitly for non-user addresses. This check is essential
|
||||
* because it prevents usermode from writing into kernel. We do not
|
||||
* verify that user did not specified a rogue address anywhere else.
|
||||
*/
|
||||
|
||||
/*
|
||||
* First, prevent address wrapping.
|
||||
*/
|
||||
|
@ -291,12 +291,10 @@ ENTRY(copyout)
|
||||
jz done_copyout
|
||||
|
||||
/*
|
||||
* Check explicitly for non-user addresses. If 486 write protection
|
||||
* is being used, this check is essential because we are in kernel
|
||||
* mode so the h/w does not provide any protection against writing
|
||||
* kernel addresses.
|
||||
* Check explicitly for non-user addresses. This check is essential
|
||||
* because it prevents usermode from writing into kernel. We do not
|
||||
* verify that user did not specified a rogue address anywhere else.
|
||||
*/
|
||||
|
||||
/*
|
||||
* First, prevent address wrapping.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user