All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] asix: silence log message from oversize packet
@ 2015-12-18  1:51 Stephen Hemminger
  2015-12-18 21:08 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2015-12-18  1:51 UTC (permalink / raw)
  To: Ben Hutchings, Ivan Vecera, David S. Miller, linuxbrad; +Cc: netdev

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>

--- a/drivers/net/usb/asix_common.c	2015-10-16 16:05:30.997785598 -0700
+++ b/drivers/net/usb/asix_common.c	2015-12-17 17:50:30.983973764 -0800
@@ -118,7 +118,7 @@ int asix_rx_fixup_internal(struct usbnet
 				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;
 			}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] asix: silence log message from oversize packet
  2015-12-18  1:51 [PATCH net-next] asix: silence log message from oversize packet Stephen Hemminger
@ 2015-12-18 21:08 ` David Miller
  2015-12-19  0:15   ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2015-12-18 21:08 UTC (permalink / raw)
  To: stephen; +Cc: ben.hutchings, ivecera, linuxbrad, netdev

From: Stephen Hemminger <stephen@networkplumber.org>
Date: Thu, 17 Dec 2015 17:51:16 -0800

> 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>

Seems reasonable, applied, thanks Stephen.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] asix: silence log message from oversize packet
  2015-12-18 21:08 ` David Miller
@ 2015-12-19  0:15   ` Stephen Hemminger
  2015-12-19  2:25     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2015-12-19  0:15 UTC (permalink / raw)
  To: David Miller; +Cc: ben.hutchings, ivecera, linuxbrad, netdev

On Fri, 18 Dec 2015 16:08:53 -0500 (EST)
David Miller <davem@davemloft.net> wrote:

> From: Stephen Hemminger <stephen@networkplumber.org>
> Date: Thu, 17 Dec 2015 17:51:16 -0800
> 
> > 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>
> 
> Seems reasonable, applied, thanks Stephen.

It doesn't fix the bug that is generating the oversize packet, that still needs
to be root caused.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] asix: silence log message from oversize packet
  2015-12-19  0:15   ` Stephen Hemminger
@ 2015-12-19  2:25     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2015-12-19  2:25 UTC (permalink / raw)
  To: stephen; +Cc: ben.hutchings, ivecera, linuxbrad, netdev

From: Stephen Hemminger <stephen@networkplumber.org>
Date: Fri, 18 Dec 2015 16:15:03 -0800

> On Fri, 18 Dec 2015 16:08:53 -0500 (EST)
> David Miller <davem@davemloft.net> wrote:
> 
>> From: Stephen Hemminger <stephen@networkplumber.org>
>> Date: Thu, 17 Dec 2015 17:51:16 -0800
>> 
>> > 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>
>> 
>> Seems reasonable, applied, thanks Stephen.
> 
> It doesn't fix the bug that is generating the oversize packet, that still needs
> to be root caused.

Remote systems can do this easily.  It's not a bug in the driver.

Say you decrease the MTU to 500 or whatever, nothing in the hardware
prevents reception of > 500 byte frames.

It's only a software limit.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-19  2:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18  1:51 [PATCH net-next] asix: silence log message from oversize packet Stephen Hemminger
2015-12-18 21:08 ` David Miller
2015-12-19  0:15   ` Stephen Hemminger
2015-12-19  2:25     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.