1. 04 9月, 2017 1 次提交
  2. 04 11月, 2016 1 次提交
  3. 24 10月, 2016 1 次提交
  4. 28 4月, 2016 1 次提交
  5. 20 2月, 2016 1 次提交
  6. 06 1月, 2016 1 次提交
  7. 25 11月, 2015 1 次提交
  8. 03 11月, 2015 1 次提交
  9. 27 7月, 2015 2 次提交
  10. 01 4月, 2015 2 次提交
  11. 24 11月, 2014 1 次提交
  12. 31 10月, 2014 1 次提交
  13. 25 8月, 2014 2 次提交
  14. 03 8月, 2014 4 次提交
  15. 28 7月, 2014 8 次提交
  16. 24 10月, 2013 1 次提交
  17. 20 8月, 2013 1 次提交
  18. 17 4月, 2013 1 次提交
    • E
      net: drop dst before queueing fragments · 97599dc7
      Eric Dumazet 提交于
      Commit 4a94445c (net: Use ip_route_input_noref() in input path)
      added a bug in IP defragmentation handling, as non refcounted
      dst could escape an RCU protected section.
      
      Commit 64f3b9e2 (net: ip_expire() must revalidate route) fixed
      the case of timeouts, but not the general problem.
      
      Tom Parkin noticed crashes in UDP stack and provided a patch,
      but further analysis permitted us to pinpoint the root cause.
      
      Before queueing a packet into a frag list, we must drop its dst,
      as this dst has limited lifetime (RCU protected)
      
      When/if a packet is finally reassembled, we use the dst of the very
      last skb, still protected by RCU and valid, as the dst of the
      reassembled packet.
      
      Use same logic in IPv6, as there is no need to hold dst references.
      Reported-by: NTom Parkin <tparkin@katalix.com>
      Tested-by: NTom Parkin <tparkin@katalix.com>
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      97599dc7
  19. 25 3月, 2013 1 次提交
  20. 19 3月, 2013 1 次提交
    • H
      inet: limit length of fragment queue hash table bucket lists · 5a3da1fe
      Hannes Frederic Sowa 提交于
      This patch introduces a constant limit of the fragment queue hash
      table bucket list lengths. Currently the limit 128 is choosen somewhat
      arbitrary and just ensures that we can fill up the fragment cache with
      empty packets up to the default ip_frag_high_thresh limits. It should
      just protect from list iteration eating considerable amounts of cpu.
      
      If we reach the maximum length in one hash bucket a warning is printed.
      This is implemented on the caller side of inet_frag_find to distinguish
      between the different users of inet_fragment.c.
      
      I dropped the out of memory warning in the ipv4 fragment lookup path,
      because we already get a warning by the slab allocator.
      
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: Jesper Dangaard Brouer <jbrouer@redhat.com>
      Signed-off-by: NHannes Frederic Sowa <hannes@stressinduktion.org>
      Acked-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5a3da1fe
  21. 19 2月, 2013 2 次提交
  22. 16 2月, 2013 1 次提交
  23. 30 1月, 2013 2 次提交
  24. 19 11月, 2012 1 次提交
  25. 20 9月, 2012 1 次提交