1. 24 Feb, 2015 1 commit
    • Andrey Vagin's avatar
      proc: parse /proc/pid/status when a task is stopped (v2) · 99801e72
      Andrey Vagin authored
      If we parse /proc/pid/status when a task isn't stopped,
      we can't be sure that a process state will not be changed.
      
      08:58:48 Test: zdtm/live/user/static/zombie00, Namespace: 1
      08:58:48 Dump log   : /var/lib/jenkins/jobs/CRIU-dump/workspace/test/dump/ns/user/static/zombie00/114/1/dump.log
      08:58:48 --------------------------------- grep Error ---------------------------------
      08:58:48 (00.001127) Error (ptrace.c:124): SEIZE 121: task not stopped after seize
      
      v2: don't believe into errno (by xemul@)
      
      Reported-by: Mr Jenkins
      Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      99801e72
  2. 19 Feb, 2015 4 commits
  3. 16 Feb, 2015 1 commit
    • Saied Kazemi's avatar
      Do not call listen() when SO_REUSEADDR is off · 1b4e9058
      Saied Kazemi authored
      For an established TCP connection, the send queue is restored in two
      steps: in step (1), we retransmit the data that was sent before but not
      yet acknowledged, and in step (2), we transmit the data that was never
      sent outside before.  The TCP_REPAIR option is disabled before step (2)
      and re-enabled after step (2) (without this patch).
      
      If the amount of data to be sent in step (2) is large, the TCP_REPAIR
      flag on the socket can remain off for some time (O(milliseconds)).  If a
      listen() is called on another socket bound to the same port during this
      time window, it fails. This is because -- turning TCP_REPAIR off clears
      the SO_REUSEADDR flag on the socket.
      
      This patch adds a mutex (reuseaddr_lock) per port number, so that a
      listen() on a port number does not happen while SO_REUSEADDR for another
      socket on the same port is off.
      
      Thanks to Amey Deshpande <ameyd@google.com> for debugging.
      Signed-off-by: 's avatarSaied Kazemi <saied@google.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      1b4e9058
  4. 13 Feb, 2015 11 commits
  5. 10 Feb, 2015 4 commits
  6. 09 Feb, 2015 5 commits
  7. 29 Jan, 2015 4 commits
  8. 28 Jan, 2015 1 commit
  9. 27 Jan, 2015 9 commits