asix: silence log message from oversize packet
authorstephen hemminger <stephen@networkplumber.org>
Fri, 18 Dec 2015 01:51:16 +0000 (17:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 21:08:35 +0000 (16:08 -0500)
Since it is possible for an external system to send oversize packets
at anytime, it is best for driver not to print a message and spam
the log (potential external DoS).

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=109471

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_common.c

index bd9acff1eb7bf277a434345659517683cc0fba45..0c5c22b84da85a22e62f4e9061e7724c4e6fe607 100644 (file)
@@ -118,7 +118,7 @@ int asix_rx_fixup_internal(struct usbnet *dev, struct sk_buff *skb,
                                return 0;
                        }
                        if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) {
-                               netdev_err(dev->net, "asix_rx_fixup() Bad RX Length %d\n",
+                               netdev_dbg(dev->net, "asix_rx_fixup() Bad RX Length %d\n",
                                           size);
                                return 0;
                        }