1. 17 1月, 2012 3 次提交
  2. 13 1月, 2012 1 次提交
  3. 10 1月, 2012 3 次提交
  4. 09 1月, 2012 1 次提交
  5. 08 1月, 2012 2 次提交
  6. 05 1月, 2012 2 次提交
  7. 31 12月, 2011 1 次提交
  8. 29 12月, 2011 1 次提交
  9. 25 12月, 2011 1 次提交
  10. 23 12月, 2011 2 次提交
  11. 22 12月, 2011 1 次提交
  12. 20 12月, 2011 1 次提交
  13. 17 12月, 2011 6 次提交
  14. 14 12月, 2011 2 次提交
  15. 13 12月, 2011 3 次提交
  16. 12 12月, 2011 1 次提交
  17. 10 12月, 2011 1 次提交
  18. 09 12月, 2011 2 次提交
  19. 07 12月, 2011 3 次提交
  20. 06 12月, 2011 2 次提交
  21. 05 12月, 2011 1 次提交
    • E
      tcp: take care of misalignments · 117632e6
      Eric Dumazet 提交于
      We discovered that TCP stack could retransmit misaligned skbs if a
      malicious peer acknowledged sub MSS frame. This currently can happen
      only if output interface is non SG enabled : If SG is enabled, tcp
      builds headless skbs (all payload is included in fragments), so the tcp
      trimming process only removes parts of skb fragments, header stay
      aligned.
      
      Some arches cant handle misalignments, so force a head reallocation and
      shrink headroom to MAX_TCP_HEADER.
      
      Dont care about misaligments on x86 and PPC (or other arches setting
      NET_IP_ALIGN to 0)
      
      This patch introduces __pskb_copy() which can specify the headroom of
      new head, and pskb_copy() becomes a wrapper on top of __pskb_copy()
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      117632e6