1. 24 8月, 2009 4 次提交
    • P
      netfilter: xt_quota: fix wrong return value (error case) · 2149f66f
      Patrick McHardy 提交于
      Success was indicated on a memory allocation failure, thereby causing
      a crash due to a later NULL deref.
      (Affects v2.6.30-rc1 up to here.)
      Signed-off-by: NJan Engelhardt <jengelh@medozas.de>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2149f66f
    • B
      ipv6: Fix commit 63d9950b (ipv6: Make... · ca6982b8
      Bruno Prémont 提交于
      ipv6: Fix commit 63d9950b (ipv6: Make v4-mapped bindings consistent with IPv4)
      
      Commit 63d9950b
        (ipv6: Make v4-mapped bindings consistent with IPv4)
      changes behavior of inet6_bind() for v4-mapped addresses so it should
      behave the same way as inet_bind().
      
      During this change setting of err to -EADDRNOTAVAIL got lost:
      
      af_inet.c:469 inet_bind()
      	err = -EADDRNOTAVAIL;
      	if (!sysctl_ip_nonlocal_bind &&
      	    !(inet->freebind || inet->transparent) &&
      	    addr->sin_addr.s_addr != htonl(INADDR_ANY) &&
      	    chk_addr_ret != RTN_LOCAL &&
      	    chk_addr_ret != RTN_MULTICAST &&
      	    chk_addr_ret != RTN_BROADCAST)
      		goto out;
      
      
      af_inet6.c:463 inet6_bind()
      	if (addr_type == IPV6_ADDR_MAPPED) {
      		int chk_addr_ret;
      
      		/* Binding to v4-mapped address on a v6-only socket                         
      		 * makes no sense                                                           
      		 */
      		if (np->ipv6only) {
      			err = -EINVAL;
      			goto out; 
      		}
      
      		/* Reproduce AF_INET checks to make the bindings consitant */               
      		v4addr = addr->sin6_addr.s6_addr32[3];                                      
      		chk_addr_ret = inet_addr_type(net, v4addr);                                 
      		if (!sysctl_ip_nonlocal_bind &&                                             
      		    !(inet->freebind || inet->transparent) &&                               
      		    v4addr != htonl(INADDR_ANY) &&
      		    chk_addr_ret != RTN_LOCAL &&                                            
      		    chk_addr_ret != RTN_MULTICAST &&                                        
      		    chk_addr_ret != RTN_BROADCAST)
      			goto out;
      	} else {
      
      
      Signed-off-by Bruno Prémont <bonbons@linux-vserver.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ca6982b8
    • K
      E100: fix interaction with swiotlb on X86. · 6ff9c2e7
      Krzysztof Hałasa 提交于
      E100 places it's RX packet descriptors inside skb->data and uses them
      with bidirectional streaming DMA mapping. Data in descriptors is
      accessed simultaneously by the chip (writing status and size when
      a packet is received) and CPU (reading to check if the packet was
      received). This isn't a valid usage of PCI DMA API, which requires use
      of the coherent (consistent) memory for such purpose. Unfortunately e100
      chips working in "simplified" RX mode have to store received data
      directly after the descriptor. Fixing the driver to conform to the API
      would require using unsupported "flexible" RX mode or receiving data
      into a coherent memory and using CPU to copy it to network buffers.
      
      This patch, while not yet making the driver conform to the PCI DMA API,
      allows it to work correctly on X86 with swiotlb (while not breaking
      other architectures).
      Signed-off-by: NKrzysztof Hałasa <khc@pm.waw.pl>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6ff9c2e7
    • D
      pkt_sched: Convert CBQ to tasklet_hrtimer. · 38acce2d
      David S. Miller 提交于
      This code expects to run in softirq context, and bare hrtimers
      run in hw IRQ context.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      38acce2d
  2. 23 8月, 2009 1 次提交
  3. 22 8月, 2009 2 次提交
  4. 20 8月, 2009 2 次提交
  5. 19 8月, 2009 3 次提交
  6. 18 8月, 2009 4 次提交
  7. 16 8月, 2009 7 次提交
  8. 15 8月, 2009 5 次提交
  9. 14 8月, 2009 8 次提交
  10. 13 8月, 2009 2 次提交
  11. 11 8月, 2009 2 次提交