1. 12 Nov, 2010 2 commits
    • Shan Wei's avatar
      netfilter: ipv6: fix overlap check for fragments · 22e091e5
      Shan Wei authored
      The type of FRAG6_CB(prev)->offset is int, skb->len is *unsigned* int,
      and offset is int.
      
      Without this patch, type conversion occurred to this expression, when
      (FRAG6_CB(prev)->offset + prev->len) is less than offset.
      Signed-off-by: default avatarShan Wei <shanwei@cn.fujitsu.com>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      22e091e5
    • Eric Paris's avatar
      netfilter: NF_HOOK_COND has wrong conditional · ac5aa2e3
      Eric Paris authored
      The NF_HOOK_COND returns 0 when it shouldn't due to what I believe to be an
      error in the code as the order of operations is not what was intended.  C will
      evalutate == before =.  Which means ret is getting set to the bool result,
      rather than the return value of the function call.  The code says
      
      if (ret = function() == 1)
      when it meant to say:
      if ((ret = function()) == 1)
      
      Normally the compiler would warn, but it doesn't notice it because its
      a actually complex conditional and so the wrong code is wrapped in an explict
      set of () [exactly what the compiler wants you to do if this was intentional].
      Fixing this means that errors when netfilter denies a packet get propagated
      back up the stack rather than lost.
      
      Problem introduced by commit 2249065f (netfilter: get rid of the grossness
      in netfilter.h).
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      ac5aa2e3
  2. 03 Nov, 2010 2 commits
  3. 29 Oct, 2010 2 commits
  4. 28 Oct, 2010 2 commits
  5. 27 Oct, 2010 25 commits
  6. 26 Oct, 2010 7 commits