1. 06 3月, 2010 1 次提交
  2. 09 6月, 2009 1 次提交
  3. 16 2月, 2009 2 次提交
  4. 23 1月, 2009 1 次提交
    • V
      sctp: Fix another socket race during accept/peeloff · ae53b5bd
      Vlad Yasevich 提交于
      There is a race between sctp_rcv() and sctp_accept() where we
      have moved the association from the listening socket to the
      accepted socket, but sctp_rcv() processing cached the old
      socket and continues to use it.
      
      The easy solution is to check for the socket mismatch once we've
      grabed the socket lock.  If we hit a mis-match, that means
      that were are currently holding the lock on the listening socket,
      but the association is refrencing a newly accepted socket.  We need
      to drop the lock on the old socket and grab the lock on the new one.
      
      A more proper solution might be to create accepted sockets when
      the new association is established, similar to TCP.  That would
      eliminate the race for 1-to-1 style sockets, but it would still
      existing for 1-to-many sockets where a user wished to peeloff an
      association.  For now, we'll live with this easy solution as
      it addresses the problem.
      Reported-by: NMichal Hocko <mhocko@suse.cz>
      Reported-by: NKarsten Keil <kkeil@suse.de>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ae53b5bd
  5. 23 10月, 2008 1 次提交
  6. 19 7月, 2008 1 次提交
  7. 17 7月, 2008 1 次提交
  8. 15 7月, 2008 1 次提交
  9. 20 6月, 2008 1 次提交
    • W
      sctp: Validate Initiate Tag when handling ICMP message · 7115e632
      Wei Yongjun 提交于
      This patch add to validate initiate tag and chunk type if verification
      tag is 0 when handling ICMP message.
      
      RFC 4960, Appendix C. ICMP Handling
      
      ICMP6) An implementation MUST validate that the Verification Tag
      contained in the ICMP message matches the Verification Tag of the peer.
      If the Verification Tag is not 0 and does NOT match, discard the ICMP
      message.  If it is 0 and the ICMP message contains enough bytes to
      verify that the chunk type is an INIT chunk and that the Initiate Tag
      matches the tag of the peer, continue with ICMP7.  If the ICMP message
      is too short or the chunk type or the Initiate Tag does not match,
      silently discard the packet.
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7115e632
  10. 10 4月, 2008 1 次提交
  11. 18 3月, 2008 1 次提交
  12. 06 3月, 2008 1 次提交
  13. 05 2月, 2008 1 次提交
  14. 29 1月, 2008 2 次提交
  15. 10 11月, 2007 1 次提交
  16. 11 10月, 2007 1 次提交
  17. 26 9月, 2007 1 次提交
  18. 01 8月, 2007 1 次提交
  19. 14 6月, 2007 2 次提交
  20. 26 4月, 2007 10 次提交
  21. 11 2月, 2007 1 次提交
  22. 03 12月, 2006 6 次提交
  23. 31 10月, 2006 1 次提交