Messages in this thread | | | Date | Wed, 11 Dec 2013 15:26:33 -0500 (EST) | Subject | Re: [PATCH net V3 2/2] macvtap: signal truncated packets | From | David Miller <> |
| |
From: Jason Wang <jasowang@redhat.com> Date: Wed, 11 Dec 2013 13:08:34 +0800
> macvtap_put_user() never return a value grater than iov length, this in fact > bypasses the truncated checking in macvtap_recvmsg(). Fix this by always > returning the size of packet plus the possible vlan header to let the trunca > checking work. > > Cc: Vlad Yasevich <vyasevich@gmail.com> > Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Signed-off-by: Jason Wang <jasowang@redhat.com>
Also applied and queued up for -stable, thanks.
| |