hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/linux/virtio_net.h
....@@ -148,6 +148,10 @@
148148 if (gso_type & SKB_GSO_UDP)
149149 nh_off -= thlen;
150150
151
+ /* Kernel has a special handling for GSO_BY_FRAGS. */
152
+ if (gso_size == GSO_BY_FRAGS)
153
+ return -EINVAL;
154
+
151155 /* Too small packets are not really GSO ones. */
152156 if (skb->len - nh_off > gso_size) {
153157 shinfo->gso_size = gso_size;