Re: [PATCH net V3 2/2] macvtap: signal truncated packets

From: David Miller
Date: Wed Dec 11 2013 - 15:27:30 EST


From: Jason Wang <jasowang@xxxxxxxxxx>
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@xxxxxxxxx>
> Cc: Zhi Yong Wu <wuzhy@xxxxxxxxxxxxxxxxxx>
> Cc: Michael S. Tsirkin <mst@xxxxxxxxxx>
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

Also applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/