24 Aug, 2005

3 commits

  • Linus Torvalds
     
  • o Brown paperbag bug - ax25_findbyuid() was always returning a NULL pointer
    as the result. Breaks ROSE completly and AX.25 if UID policy set to deny.

    o While the list structure of AX.25's UID to callsign mapping table was
    properly protected by a spinlock, it's elements were not refcounted
    resulting in a race between removal and usage of an element.

    Signed-off-by: Ralf Baechle DL5RB
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • The socket flag cleanups that went into 2.6.12-rc1 are basically oring
    the flags of an old socket into the socket just being created.
    Unfortunately that one was just initialized by sock_init_data(), so already
    has SOCK_ZAPPED set. As the result zapped sockets are created and all
    incoming connection will fail due to this bug which again was carefully
    replicated to at least AX.25, NET/ROM or ROSE.

    In order to keep the abstraction alive I've introduced sock_copy_flags()
    to copy the socket flags from one sockets to another and used that
    instead of the bitwise copy thing. Anyway, the idea here has probably
    been to copy all flags, so sock_copy_flags() should be the right thing.
    With this the ham radio protocols are usable again, so I hope this will
    make it into 2.6.13.

    Signed-off-by: Ralf Baechle DL5RB
    Signed-off-by: David S. Miller

    Ralf Baechle
     

23 Aug, 2005

1 commit


20 Aug, 2005

3 commits


19 Aug, 2005

12 commits


18 Aug, 2005

2 commits


17 Aug, 2005

5 commits

  • Paulus suggested that we put xLparMap in its own .c file so that we can
    generate a .s file to be included into head.S. This doesn't get around
    the problem of having it at a fixed address, but it makes it more
    palatable.

    It would be good if this could be included in 2.6.13 as it solves our
    build problems with various versions of binutils and gcc. In
    particular, it allows us to build an iSeries kernel on Debian unstable
    using their biarch compiler.

    This has been built and booted on iSeries and built for pSeries and g5.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Paul Mackerras
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • On the 6700/6702 PXH part, a MSI may get corrupted if an ACPI hotplug
    driver and SHPC driver in MSI mode are used together.

    This patch will prevent MSI from being enabled for the SHPC as part of
    an early pci quirk, as well as on any pci device which sets the no_msi
    bit.

    Signed-off-by: Kristen Carlson Accardi
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Kristen Accardi
     
  • Chuck Ebbert noticed that the desc_empty macro is incorrect. Fix it.

    Thankfully, this is not used as a security check, but it can falsely
    overwrite TLS segments with carefully chosen base / limits. I do not
    believe this is an issue in practice, but it is a kernel bug.

    Signed-off-by: Zachary Amsden
    Signed-off-by: Chris Wright

    [ x86-64 had the same problem, and the same fix. Linus ]

    Signed-off-by: Linus Torvalds

    Zachary Amsden
     
  • Tony Luck
     
  • When the client performs an exclusive create and opens the file for writing,
    a Netapp filer will first create the file using the mode 01777. It does this
    since an NFSv3/v4 exclusive create cannot immediately set the mode bits.
    The 01777 mode then gets put into the inode->i_mode. After the file creation
    is successful, we then do a setattr to change the mode to the correct value
    (as per the NFS spec).

    The problem is that nfs_refresh_inode() no longer updates inode->i_mode, so
    the latter retains the 01777 mode. A bit later, the VFS notices this, and calls
    remove_suid(). This of course now resets the file mode to inode->i_mode & 0777.
    Hey presto, the file mode on the server is now magically changed to 0777. Duh...

    Fixes http://bugzilla.linux-nfs.org/show_bug.cgi?id=32

    Signed-off-by: Trond Myklebust
    Signed-off-by: Linus Torvalds

    Trond Myklebust
     

16 Aug, 2005

3 commits


15 Aug, 2005

2 commits


14 Aug, 2005

1 commit

  • There was a rather silly and embarrassing typo in the sh _syscall6().
    For the syscall ABI we have the trapa value specified as 0x10 + number
    of arguments, this was being set incorrectly in the _syscall6() case
    which ended up causing some problems for users.

    Signed-off-by: Paul Mundt
    Signed-off-by: Linus Torvalds

    Paul Mundt
     

13 Aug, 2005

1 commit


12 Aug, 2005

3 commits

  • This fixes a race during initialization with the NAPI softirq
    processing by using an RCU approach.

    This race was discovered when refill_skbs() was added to
    the setup code.

    Signed-off-by: Matt Mackall
    Signed-off-by: David S. Miller

    Matt Mackall
     
  • Add limited retry logic to netpoll_send_skb

    Each time we attempt to send, decrement our per-device retry counter.
    On every successful send, we reset the counter.

    We delay 50us between attempts with up to 20000 retries for a total of
    1 second. After we've exhausted our retries, subsequent failed
    attempts will try only once until reset by success.

    Signed-off-by: Matt Mackall
    Signed-off-by: David S. Miller

    Matt Mackall
     
  • There are many instances of

    skb->protocol = htons(ETH_P_*);
    skb->protocol = __constant_htons(ETH_P_*);
    and
    skb->protocol = *_type_trans(...);

    Most of *_type_trans() are already endian-annotated, so, let's shift
    attention on other warnings.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     

11 Aug, 2005

3 commits


10 Aug, 2005

1 commit

  • Patch from Ben Dooks

    Rename the s3c2410_report_oc() to s3c2410_usb_report_oc()
    as this is an usb specific function.
    Change port power on the usb-simtec implementation to only
    power up the output if both are set, as per the usb 1.1
    specification

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks