1. 13 4月, 2008 3 次提交
    • P
      [DCCP]: Fix skb->cb conflicts with IP · 028b0275
      Patrick McHardy 提交于
      dev_queue_xmit() and the other IP output functions expect to get a skb
      with clear or properly initialized skb->cb. Unlike TCP and UDP, the
      dccp_skb_cb doesn't contain a struct inet_skb_parm at the beginning,
      so the DCCP-specific data is interpreted by the IP output functions.
      This can cause false negatives for the conditional POST_ROUTING hook
      invocation, making the packet bypass the hook.
      
      Add a inet_skb_parm/inet6_skb_parm union to the beginning of
      dccp_skb_cb to avoid clashes. Also add a BUILD_BUG_ON to make
      sure it fits in the cb.
      
      [ Combined with patch from Gerrit Renker to remove two now unnecessary
        memsets of IPCB(skb)->opt ]
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Acked-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      028b0275
    • P
      [AX25]: Potential ax25_uid_assoc-s leaks on module unload. · ae1b6a31
      Pavel Emelyanov 提交于
      The ax25_uid_free call walks the ax25_uid_list and releases entries
      from it. The problem is that after the fisrt call to hlist_del_init
      the hlist_for_each_entry (which hides behind the ax25_uid_for_each)
      will consider the current position to be the last and will return.
      
      Thus, the whole list will be left not freed.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ae1b6a31
    • S
      tg3: fix MMIO for PPC 44x platforms · 2de58e30
      Sergei Shtylyov 提交于
      The driver stores the PCI resource addresses into 'unsigned long' variable
      before calling ioremap_nocache() on them. This warrants kernel oops when the
      registers are accessed on PPC 44x platforms which (being 32-bit) have PCI
      memory space mapped beyond 4 GB.
      
      The arch/ppc/ kernel has a fixup in ioremap() that creates an illusion that
      the PCI memory resource is mapped below 4 GB, but arch/powerpc/ code got rid
      of this trick, having instead CONFIG_RESOURCES_64BIT enabled.
      
      [ Bump driver version and release date -DaveM ]
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2de58e30
  2. 12 4月, 2008 10 次提交
  3. 11 4月, 2008 1 次提交
  4. 10 4月, 2008 7 次提交
  5. 09 4月, 2008 4 次提交
  6. 08 4月, 2008 9 次提交
  7. 05 4月, 2008 5 次提交
  8. 04 4月, 2008 1 次提交