1. 16 4月, 2008 2 次提交
  2. 15 4月, 2008 4 次提交
  3. 14 4月, 2008 11 次提交
  4. 13 4月, 2008 10 次提交
  5. 12 4月, 2008 10 次提交
  6. 11 4月, 2008 1 次提交
  7. 10 4月, 2008 2 次提交
    • D
      [IPV4]: Fix byte value boundary check in do_ip_getsockopt(). · 951e07c9
      David S. Miller 提交于
      This fixes kernel bugzilla 10371.
      
      As reported by M.Piechaczek@osmosys.tv, if we try to grab a
      char sized socket option value, as in:
      
        unsigned char ttl = 255;
        socklen_t     len = sizeof(ttl);
        setsockopt(socket, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, &len);
      
        getsockopt(socket, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, &len);
      
      The ttl returned will be wrong on big-endian, and on both little-
      endian and big-endian the next three bytes in userspace are written
      with garbage.
      
      It's because of this test in do_ip_getsockopt():
      
      	if (len < sizeof(int) && len > 0 && val>=0 && val<255) {
      
      It should allow a 'val' of 255 to pass here, but it doesn't so it
      copies a full 'int' back to userspace.
      
      On little-endian that will write the correct value into the location
      but it spams on the next three bytes in userspace.  On big endian it
      writes the wrong value into the location and spams the next three
      bytes.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      951e07c9
    • E
      BNX2X: Correct bringing chip out of reset · 619c714c
      Eliezer Tamir 提交于
      Fixed bug: Wrong register was written to when bringing the chip out of
      reset.
      
      [ Bump driver version and release date -DaveM ]
      Signed-off-by: NEliezer Tamir <eliezert@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      619c714c