| To: | Max Krasnyansky <maxk@xxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/5] tun check error on memcpy_fromiovec |
| From: | Chris Wright <chrisw@xxxxxxxx> |
| Date: | Thu, 22 Jan 2004 18:13:53 -0800 |
| Cc: | Chris Wright <chrisw@xxxxxxxx>, maximilian attems <janitor@xxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <1074718162.1707.194.camel@localhost>; from maxk@xxxxxxxxxxxx on Wed, Jan 21, 2004 at 12:49:23PM -0800 |
| References: | <20031208202302.C30587@xxxxxxxxxxxxxxxxxx> <20031219103457.GD1213@xxxxxxxxxxxxxxxxxxx> <20040116164512.C19034@xxxxxxxxxxxxxxxxxxx> <1074718162.1707.194.camel@localhost> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
* Max Krasnyansky (maxk@xxxxxxxxxxxx) wrote: > On Fri, 2004-01-16 at 16:45, Chris Wright wrote: > > 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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: multicast loop with include filters fix [PATCH], David S. Miller |
|---|---|
| Next by Date: | [PATCH 3/6][8021q][2.6] Use VLAN tag set functionality in 8021q module, Shmuel Hen |
| Previous by Thread: | Re: [PATCH 1/5] tun check error on memcpy_fromiovec, Max Krasnyansky |
| Next by Thread: | [PATCH 2/4] irda check error on memcpy_fromiovec (resend), Jean Tourrilhes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |