Thread (1 message) 1 message, 1 author, 2004-01-23

Re: [PATCH 1/5] tun check error on memcpy_fromiovec

From: Chris Wright <hidden>
Date: 2004-01-23 02:13:53

* Max Krasnyansky (maxk@qualcomm.com) wrote:
On Fri, 2004-01-16 at 16:45, Chris Wright wrote:
quoted
I specifically left those alone.  They have a semi-bogus verify_area()
call that is trying to insure the memcpy_fromiovec won't EFAULT.  I'd
prefer to remove them and simply do memcpy checking.
Please don't add extra unneeded checks or fix stuff that does not need
to be fixed. Verify area is not bogus. We need to know total length of
the iovec so we might as well check it in the same loop and not bother
with checking later. 
Yes, I realize it's used to collect total length.  But it does not protect
from userspace controlled buffer whose contents can change.  Continuing
when a fault is possible means the skb->data could be zero'd.  However,
since this is intended to be 0700 root owned device, and the user could
supply same such data directly, it's of fairly low priority to patch.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help