1. 02 Apr, 2010 12 commits
  2. 01 Apr, 2010 1 commit
  3. 31 Mar, 2010 5 commits
  4. 30 Mar, 2010 16 commits
  5. 29 Mar, 2010 3 commits
    • Neil Horman's avatar
      r8169: offical fix for CVE-2009-4537 (overlength frame DMAs) · c0cd884a
      Neil Horman authored
      Official patch to fix the r8169 frame length check error.
      
      Based on this initial thread:
      http://marc.info/?l=linux-netdev&m=126202972828626&w=1
      This is the official patch to fix the frame length problems in the r8169
      driver.  As noted in the previous thread, while this patch incurs a performance
      hit on the driver, its possible to improve performance dynamically by updating
      the mtu and rx_copybreak values at runtime to return performance to what it was
      for those NICS which are unaffected by the ideosyncracy (if there are any).
      
      Summary:
      
          A while back Eric submitted a patch for r8169 in which the proper
      allocated frame size was written to RXMaxSize to prevent the NIC from dmaing too
      much data.  This was done in commit fdd7b4c3.  A
      long time prior to that however, Francois posted
      126fa4b9, which expiclitly disabled the MaxSize
      setting due to the fact that the hardware behaved in odd ways when overlong
      frames were received on NIC's supported by this driver.  This was mentioned in a
      security conference recently:
      http://events.ccc.de/congress/2009/Fahrplan//events/3596.en.html
      
      It seems that if we can't enable frame size filtering, then, as Eric correctly
      noticed, we can find ourselves DMA-ing too much data to a buffer, causing
      corruption.  As a result is seems that we are forced to allocate a frame which
      is ready to handle a maximally sized receive.
      
      This obviously has performance issues with it, so to mitigate that issue, this
      patch does two things:
      
      1) Raises the copybreak value to the frame allocation size, which should force
      appropriately sized packets to get allocated on rx, rather than a full new 16k
      buffer.
      
      2) This patch only disables frame filtering initially (i.e., during the NIC
      open), changing the MTU results in ring buffer allocation of a size in relation
      to the new mtu (along with a warning indicating that this is dangerous).
      
      Because of item (2), individuals who can't cope with the performance hit (or can
      otherwise filter frames to prevent the bug), or who have hardware they are sure
      is unaffected by this issue, can manually lower the copybreak and reset the mtu
      such that performance is restored easily.
      Signed-off-by: default avatarNeil Horman <nhorman@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c0cd884a
    • YOSHIFUJI Hideaki / 吉藤英明's avatar
      ipv6: Don't drop cache route entry unless timer actually expired. · 54c1a859
      YOSHIFUJI Hideaki / 吉藤英明 authored
      This is ipv6 variant of the commit 5e016cbf.. ("ipv4: Don't drop
      redirected route cache entry unless PTMU actually expired")
      by Guenter Roeck <guenter.roeck@ericsson.com>.
      
      Remove cache route entry in ipv6_negative_advice() only if
      the timer is expired.
      Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      54c1a859
    • David S. Miller's avatar
      tulip: Add missing parens. · 7855f761
      David S. Miller authored
      As reported by Stephen Rothwell.
      
      drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet':
      drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7855f761
  6. 28 Mar, 2010 1 commit
    • Francois Romieu's avatar
      r8169: fix broken register writes · 78f1cd02
      Francois Romieu authored
      This is quite similar to b39fe41f
      though said registers are not even documented as 64-bit registers
      - as opposed to the initial TxDescStartAddress ones - but as single
      bytes which must be combined into 32 bits at the MMIO read/write
      level before being merged into a 64 bit logical entity.
      
      Credits go to Ben Hutchings <ben@decadent.org.uk> for the MAR
      registers (aka "multicast is broken for ages on ARM) and to
      Timo Teräs <timo.teras@iki.fi> for the MAC registers.
      Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      78f1cd02
  7. 27 Mar, 2010 2 commits
    • Ken Kawasaki's avatar
      pcnet_cs: add new id · 1546a713
      Ken Kawasaki authored
      pcnet_cs:
       *add new id (Allied Telesis LM33-PCM-T Lan&Modem multifunction card)
       *use PROD_ID for LA-PCM.(because LA-PCM and LM33-PCM-T use the same MANF_ID).
      Signed-off-by: default avatarKen Kawasaki <ken_kawasaki@spring.nifty.jp>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1546a713
    • Andy Gospodarek's avatar
      bonding: fix broken multicast with round-robin mode · a2fd940f
      Andy Gospodarek authored
      Round-robin (mode 0) does nothing to ensure that any multicast traffic
      originally destined for the host will continue to arrive at the host when
      the link that sent the IGMP join or membership report goes down.  One of
      the benefits of absolute round-robin transmit.
      
      Keeping track of subscribed multicast groups for each slave did not seem
      like a good use of resources, so I decided to simply send on the
      curr_active slave of the bond (typically the first enslaved device that
      is up).  This makes failover management simple as IGMP membership
      reports only need to be sent when the curr_active_slave changes.  I
      tested this patch and it appears to work as expected.
      
      Originally reported by Lon Hohberger <lhh@redhat.com>.
      Signed-off-by: default avatarAndy Gospodarek <andy@greyhouse.net>
      CC: Lon Hohberger <lhh@redhat.com>
      CC: Jay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: default avatarJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a2fd940f