1. 31 8月, 2007 4 次提交
    • V
      SCTP: Uncomfirmed transports can't become Inactive · cc75689a
      Vlad Yasevich 提交于
      Do not set Unconfirmed transports to Inactive state.  This may
      result in an inactive association being destroyed since we start
      counting errors on "inactive" transports against the association.
      This was found at the SCTP interop event.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      cc75689a
    • V
      SCTP: Pick the correct port when binding to 0. · 2772b495
      Vlad Yasevich 提交于
      sctp_bindx() allows the use of unspecified port.  The problem is
      that every address we bind to ends up selecting a new port if
      the user specified port 0.  This patch allows re-use of the
      already selected port when the port from bindx was 0.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      2772b495
    • W
      SCTP: Use net_ratelimit to suppress error messages print too fast · d99fa429
      Wei Yongjun 提交于
      When multi bundling SHUTDOWN-ACK message is received in ESTAB state,
      this will cause "sctp protocol violation state" message print many times.
      If SHUTDOWN-ACK is bundled 300 times in one packet, message will be
      print 300 times. The same problem also exists when received unexpected
      HEARTBEAT-ACK message which is bundled message times.
      
      This patch used net_ratelimit() to suppress error messages print too fast.
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      d99fa429
    • W
      SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly · 00f1c2df
      Wei Yongjun 提交于
      PROTOCOL VIOLATION error cause in ABORT is bad encode when make abort
      chunk. When SCTP encode ABORT chunk with PROTOCOL VIOLATION error cause,
      it just add the error messages to PROTOCOL VIOLATION error cause, the
      rest four bytes(struct sctp_paramhdr) is just add to the chunk, not
      change the length of error cause. This cause the ABORT chunk to be a bad
      format. The chunk is like this:
      
      ABORT chunk
        Chunk type: ABORT (6)
        Chunk flags: 0x00
        Chunk length: 72 (*1)
        Protocol violation cause
          Cause code: Protocol violation (0x000d)
          Cause length: 62 (*2)
          Cause information: 5468652063756D756C61746976652074736E2061636B2062...
          Cause padding: 0000
      [Needless] 00030010
      Chunk Length(*1) = 72 but Cause length(*2) only 62, not include the
      extend 4 bytes.
      ((72 - sizeof(chunk_hdr)) = 68) != (62 +3) / 4 * 4
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      00f1c2df
  2. 30 8月, 2007 3 次提交
  3. 02 8月, 2007 2 次提交
  4. 01 8月, 2007 7 次提交
  5. 20 7月, 2007 1 次提交
    • P
      mm: Remove slab destructors from kmem_cache_create(). · 20c2df83
      Paul Mundt 提交于
      Slab destructors were no longer supported after Christoph's
      c59def9f change. They've been
      BUGs for both slab and slub, and slob never supported them
      either.
      
      This rips out support for the dtor pointer from kmem_cache_create()
      completely and fixes up every single callsite in the kernel (there were
      about 224, not including the slab allocator definitions themselves,
      or the documentation references).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      20c2df83
  6. 19 7月, 2007 1 次提交
  7. 11 7月, 2007 1 次提交
  8. 06 7月, 2007 3 次提交
  9. 26 6月, 2007 1 次提交
    • Z
      SCTP: lock_sock_nested in sctp_sock_migrate · 5131a184
      Zach Brown 提交于
      sctp_sock_migrate() grabs the socket lock on a newly allocated socket while
      holding the socket lock on an old socket.  lockdep worries that this might
      be a recursive lock attempt.
      
       task/3026 is trying to acquire lock:
        (sk_lock-AF_INET){--..}, at: [<ffffffff88105b8c>] sctp_sock_migrate+0x2e3/0x327 [sctp]
       but task is already holding lock:
        (sk_lock-AF_INET){--..}, at: [<ffffffff8810891f>] sctp_accept+0xdf/0x1e3 [sctp]
      
      This patch tells lockdep that this locking is safe by using
      lock_sock_nested().
      Signed-off-by: NZach Brown <zach.brown@oracle.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      5131a184
  10. 19 6月, 2007 2 次提交
  11. 14 6月, 2007 6 次提交
  12. 04 6月, 2007 1 次提交
  13. 25 5月, 2007 1 次提交
  14. 11 5月, 2007 3 次提交
  15. 09 5月, 2007 1 次提交
  16. 05 5月, 2007 3 次提交