Netdev List
 help / color / mirror / Atom feed
* [PATCHv2 net 0/3] Prevent extreme TSO parameters from stalling TX queues
@ 2012-07-31  1:51 Ben Hutchings
  2012-07-31  1:57 ` [PATCHv2 net 1/3] net: Allow driver to limit number of GSO segments per skb Ben Hutchings
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ben Hutchings @ 2012-07-31  1:51 UTC (permalink / raw)
  To: David Miller
  Cc: netdev, linux-net-drivers, Ben Greear, Eric Dumazet,
	Stephen Hemminger

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 patches 1 and 2 to the net tree and your stable update
queue.  I'm not sure whether patch 3 is really important.

Ben.

Ben Hutchings (3):
  net: Allow driver to limit number of GSO segments per skb
  sfc: Fix maximum number of TSO segments and minimum TX queue size
  tcp: Apply device TSO segment limit earlier

 drivers/net/ethernet/sfc/efx.c     |    6 ++++++
 drivers/net/ethernet/sfc/efx.h     |   14 ++++++++++----
 drivers/net/ethernet/sfc/ethtool.c |   16 +++++++++++-----
 drivers/net/ethernet/sfc/tx.c      |   19 +++++++++++++++++++
 include/linux/netdevice.h          |    2 ++
 include/net/sock.h                 |    2 ++
 net/core/dev.c                     |    4 ++++
 net/core/sock.c                    |    1 +
 net/ipv4/tcp.c                     |    4 +++-
 net/ipv4/tcp_cong.c                |    3 ++-
 net/ipv4/tcp_output.c              |   21 ++++++++++++---------
 11 files changed, 72 insertions(+), 20 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.

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

end of thread, other threads:[~2012-08-02  7:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31  1:51 [PATCHv2 net 0/3] Prevent extreme TSO parameters from stalling TX queues Ben Hutchings
2012-07-31  1:57 ` [PATCHv2 net 1/3] net: Allow driver to limit number of GSO segments per skb Ben Hutchings
2012-07-31  1:57 ` [PATCHv2 net 2/3] sfc: Fix maximum number of TSO segments and minimum TX queue size Ben Hutchings
2012-07-31  2:11 ` [PATCHv2 net 3/3] tcp: Apply device TSO segment limit earlier Ben Hutchings
2012-08-02  7:20 ` [PATCHv2 net 0/3] Prevent extreme TSO parameters from stalling TX queues David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox