Re: [PATCH net v2] net: usbnet: prevent buggy devices from killing us
From: David Miller <davem@davemloft.net>
Date: 2013-01-30 22:36:37
From: David Miller <davem@davemloft.net>
Date: 2013-01-30 22:36:37
From: Oliver Neukum <oliver@neukum.org> Date: Wed, 30 Jan 2013 08:44:35 +0100
On Tuesday 29 January 2013 10:51:28 Bjørn Mork wrote:quoted
A device sending 0 length frames as fast as it can has been observed killing the host system due to the resulting memory pressure. Temporarily disable RX skb allocation and URB submission when the current error ratio is high, preventing us from trying to allocate an infinite number of skbs. Reenable as soon as we are finished processing the done queue, allowing the device to continue working after short error bursts. Signed-off-by: Bjørn Mork <bjorn@mork.no>Acked-by: Oliver Neukum <redacted>
Applied, thanks.