From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: [PATCH net 0/2] Prevent extreme TSO parameters from stalling TX queues Date: Mon, 30 Jul 2012 18:14:58 +0100 Message-ID: <1343668498.2667.5.camel@bwh-desktop.uk.solarflarecom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: , To: David Miller Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:30736 "EHLO ocex02.SolarFlarecom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754151Ab2G3RPG (ORCPT ); Mon, 30 Jul 2012 13:15:06 -0400 Sender: netdev-owner@vger.kernel.org List-ID: The following changes fix a potential DoS by peers or local users on network interfaces using the sfc driver (and possibly others) with TSO enabled (as it is by default). Please apply them to the net tree and your stable update queue. Ben. Ben Hutchings (2): tcp: Limit number of segments generated by GSO per skb sfc: Correct the minimum TX queue size drivers/net/ethernet/sfc/efx.c | 5 +++++ drivers/net/ethernet/sfc/efx.h | 11 +++++++---- drivers/net/ethernet/sfc/ethtool.c | 16 +++++++++++----- drivers/net/ethernet/sfc/tx.c | 20 ++++++++++++++++++++ include/net/tcp.h | 3 +++ net/ipv4/tcp.c | 4 +++- net/ipv4/tcp_output.c | 17 +++++++++-------- 7 files changed, 58 insertions(+), 18 deletions(-) -- 1.7.7.6 -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.