1. 14 6月, 2007 2 次提交
  2. 05 5月, 2007 1 次提交
    • V
      [SCTP]: Set assoc_id correctly during INIT collision. · 07d93967
      Vlad Yasevich 提交于
      During the INIT/COOKIE-ACK collision cases, it's possible to get
      into a situation where the association id is not yet set at the time
      of the user event generation.  As a result, user events have an
      association id set to 0 which will confuse applications.
      
      This happens if we hit case B of duplicate cookie processing.
      In the particular example found and provided by Oscar Isaula
      <Oscar.Isaula@motorola.com>, flow looks like this:
      A				B
      ---- INIT------->  (lost)
      	    <---------INIT------
      ---- INIT-ACK--->
      	    <------ Cookie ECHO
      
      When the Cookie Echo is received, we end up trying to update the
      association that was created on A as a result of the (lost) INIT,
      but that association doesn't have the ID set yet.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      07d93967
  3. 26 4月, 2007 3 次提交
  4. 20 3月, 2007 1 次提交
  5. 23 12月, 2006 1 次提交
  6. 14 12月, 2006 2 次提交
  7. 03 12月, 2006 15 次提交
  8. 22 11月, 2006 1 次提交
  9. 23 9月, 2006 1 次提交
  10. 21 9月, 2006 1 次提交
  11. 22 7月, 2006 2 次提交
  12. 18 6月, 2006 1 次提交
  13. 06 5月, 2006 1 次提交
  14. 21 3月, 2006 1 次提交
  15. 03 2月, 2006 1 次提交
  16. 18 1月, 2006 3 次提交
    • V
      [SCTP]: Fix machine check/connection hang on IA64. · 313e7b4d
      Vlad Yasevich 提交于
      sctp_unpack_cookie used an on-stack array called digest as a result/out
      parameter in the call to crypto_hmac. However, hmac code
      (crypto_hmac_final)
      assumes that the 'out' argument is in virtual memory (identity mapped
      region)
      and can use virt_to_page call on it.  This does not work with the on-stack
      declared digest.  The problems observed so far have been:
       a) incorrect hmac digest
       b) machine check and hardware reset.
      
      Solution is to define the digest in an identity mapped region by
      kmalloc'ing
      it.  We can do this once as part of the endpoint structure and re-use it
      when
      verifying the SCTP cookie.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      313e7b4d
    • V
      [SCTP]: Fix bad sysctl formatting of SCTP timeout values on 64-bit m/cs. · 8116ffad
      Vlad Yasevich 提交于
      Change all the structure members that hold jiffies to be of type
      unsigned long.  This also corrects bad sysctl formating on 64 bit
      architectures.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      8116ffad
    • V
      [SCTP]: Fix sctp_cookie alignment in the packet. · 9834a2bb
      Vlad Yasevich 提交于
      On 64 bit architectures, sctp_cookie sent as part of INIT-ACK is not
      aligned on a 64 bit boundry and thus causes unaligned access exceptions.
      
      The layout of the cookie prameter is this:
      |<----- Parameter Header --------------------|<--- Cookie DATA --------
      -----------------------------------------------------------------------
      | param type (16 bits) | param len (16 bits) | sig [32 bytes] | cookie..
      -----------------------------------------------------------------------
      
      The cookie data portion contains 64 bit values on 64 bit architechtures
      (timeval) that fall on a 32 bit alignment boundry when used as part of
      the on-wire format, but align correctly when used in internal
      structures.  This patch explicitely pads the on-wire format so that
      it is properly aligned.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      9834a2bb
  17. 04 1月, 2006 1 次提交
  18. 12 11月, 2005 2 次提交