1. 21 6月, 2008 1 次提交
  2. 20 6月, 2008 1 次提交
    • V
      sctp: Follow security requirement of responding with 1 packet · 2e3216cd
      Vlad Yasevich 提交于
      RFC 4960, Section 11.4. Protection of Non-SCTP-Capable Hosts
      
      When an SCTP stack receives a packet containing multiple control or
      DATA chunks and the processing of the packet requires the sending of
      multiple chunks in response, the sender of the response chunk(s) MUST
      NOT send more than one packet.  If bundling is supported, multiple
      response chunks that fit into a single packet MAY be bundled together
      into one single response packet.  If bundling is not supported, then
      the sender MUST NOT send more than one response chunk and MUST
      discard all other responses.  Note that this rule does NOT apply to a
      SACK chunk, since a SACK chunk is, in itself, a response to DATA and
      a SACK does not require a response of more DATA.
      
      We implement this by not servicing our outqueue until we reach the end
      of the packet.  This enables maximum bundling.  We also identify
      'response' chunks and make sure that we only send 1 packet when sending
      such chunks.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e3216cd
  3. 17 6月, 2008 1 次提交
  4. 05 6月, 2008 1 次提交
  5. 10 5月, 2008 1 次提交
  6. 13 4月, 2008 1 次提交
  7. 06 3月, 2008 1 次提交
  8. 07 2月, 2008 1 次提交
    • W
      [SCTP]: Fix kernel panic while received ASCONF chunk with bad serial number · a8699814
      Wei Yongjun 提交于
      While recevied ASCONF chunk with serial number less then needed, kernel
      will treat this chunk as a retransmitted ASCONF chunk and find cached
      ASCONF-ACK chunk used sctp_assoc_lookup_asconf_ack(). But this function
      will always return NO-NULL. So response with cached ASCONF-ACKs chunk
      will cause kernel panic.
      In function sctp_assoc_lookup_asconf_ack(), if the cached ASCONF-ACKs
      list asconf_ack_list is empty, or if the serial being requested does not
      exists, the function as it currectly stands returns the actuall
      list_head asoc->asconf_ack_list, this is not a cache ASCONF-ACK chunk
      but a bogus pointer.
      Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      a8699814
  9. 05 2月, 2008 1 次提交
  10. 29 1月, 2008 3 次提交
  11. 08 11月, 2007 2 次提交
  12. 11 10月, 2007 3 次提交
  13. 17 9月, 2007 1 次提交
  14. 31 8月, 2007 1 次提交
  15. 14 6月, 2007 1 次提交
  16. 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
  17. 26 4月, 2007 3 次提交
  18. 20 3月, 2007 2 次提交
  19. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  20. 11 2月, 2007 1 次提交
  21. 14 12月, 2006 1 次提交
  22. 03 12月, 2006 11 次提交