Jason Wang
ce232ce01d
macvtap: signal truncated packets
...
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>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-11 15:23:06 -05:00
..
2013-11-27 01:03:27 +01:00
2013-10-31 14:48:38 +00:00
2013-11-27 13:55:16 -05:00
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2013-11-20 13:25:04 -08:00
2013-11-13 17:40:34 +09:00
2013-11-21 16:42:27 -08:00
2013-11-05 15:58:21 -05:00
2013-11-14 08:51:29 +09:00
2013-11-23 16:18:25 -08:00
2013-11-15 16:47:22 -08:00
2013-10-22 22:36:50 +02:00
2013-11-14 17:19:20 -05:00
2013-11-27 01:03:43 +01:00
2013-11-14 13:41:48 +09:00
2013-11-23 16:18:25 -08:00
2013-11-07 19:24:20 +01:00
2013-11-20 13:20:24 -08:00
2013-11-18 14:51:52 -08:00
2013-11-15 09:32:21 +09:00
2013-11-14 07:55:21 +09:00
2013-11-28 09:57:46 -08:00
2013-11-29 08:36:15 +10:00
2013-11-27 20:41:54 -08:00
2013-11-27 01:03:27 +01:00
2013-11-29 09:55:13 -08:00
2013-11-20 13:25:04 -08:00
2013-11-19 01:06:28 +01:00
2013-11-25 12:50:11 -08:00
2013-11-22 10:52:03 -08:00
2013-11-24 10:45:29 -08:00
2013-11-15 18:57:42 -08:00
2013-12-02 10:15:39 -08:00
2013-11-20 21:52:30 -05:00
2013-10-25 10:13:25 -07:00
2013-11-07 12:13:05 +10:30
2013-11-27 11:35:47 +11:00
2013-11-28 11:00:15 +11:00
2013-11-20 13:20:24 -08:00
2013-11-15 09:32:21 +09:00
2013-11-13 12:09:26 +09:00
2013-11-15 16:47:22 -08:00
2013-11-20 13:20:24 -08:00
2013-11-20 13:25:04 -08:00
2013-11-20 13:20:24 -08:00
2013-12-11 15:23:06 -05:00
2013-11-26 11:15:12 -08:00
2013-11-14 07:55:21 +09:00
2013-11-15 14:05:15 -08:00
2013-12-02 16:01:49 -05:00
2013-11-12 16:52:17 +09:00
2013-10-24 16:18:40 +01:00
2013-11-14 10:43:17 -08:00
2013-11-26 13:03:36 +09:00
2013-11-14 23:17:21 +01:00
2013-11-18 15:35:09 -08:00
2013-11-05 02:36:57 +01:00
2013-11-13 12:09:35 +09:00
2013-11-01 11:17:57 +01:00
2013-11-24 14:02:50 +00:00
2013-10-29 11:28:11 +10:30
2013-11-21 16:42:27 -08:00
2013-11-20 09:04:54 +01:00
2013-12-02 10:09:07 -08:00
2013-11-28 11:31:35 +00:00
2013-11-27 09:32:49 -08:00
2013-11-22 10:52:03 -08:00
2013-11-19 15:50:47 -08:00
2013-11-25 18:30:21 -08:00
2013-11-13 12:09:23 +09:00
2013-11-22 10:52:03 -08:00
2013-11-07 11:42:15 +09:00
2013-11-22 10:52:03 -08:00
2013-11-16 12:45:55 -08:00
2013-11-15 13:28:47 +09:00
2013-11-15 09:32:21 +09:00
2013-11-18 21:34:19 +01:00
2013-12-02 10:12:01 -08:00
2013-11-14 13:41:48 +09:00
2013-11-14 13:41:48 +09:00