Permalink
Commits on Feb 15, 2007
  1. Linux 2.6.16.41-rc1

    AdrianBunk committed Feb 15, 2007
Commits on Feb 14, 2007
  1. uml: fix signal frame alignment

    Use the same signal frame alignment calculations as the underlying
    architecture.  x86_64 appeared to do this, but the "- 8" was really
    subtracting 8 * sizeof(struct rt_sigframe) rather than 8 bytes.
    
    UML/i386 might have been OK, but I changed the calculation to match
    i386 just to be sure.
    
    Signed-off-by: Jeff Dike <jdike@addtoit.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Jeff Dike committed with AdrianBunk Feb 14, 2007
  2. [ALSA] echo3g_dsp.c shouldn't include #include <linux/irq.h>

    Despite being under linux/, linux/irq.h shouldn't be #include'd by arch
    independent code.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    AdrianBunk committed Feb 14, 2007
  3. Revert "[Bluetooth] Fix compat ioctl for BNEP, CMTP and HIDP"

    This reverts commit ac4d63d.
    
    Does not work in 2.6.16.
    AdrianBunk committed Feb 14, 2007
  4. [TCP]: struct tcp_sack_block annotations

    Some of the instances of tcp_sack_block are host-endian, some - net-endian.
    Define struct tcp_sack_block_wire identical to struct tcp_sack_block
    with u32 replaced with __be32; annotate uses of tcp_sack_block replacing
    net-endian ones with tcp_sack_block_wire.  Change is obviously safe since
    for cc(1) __be32 is typedefed to u32.
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Al Viro committed with AdrianBunk Feb 14, 2007
  5. [IPX]: Fix NULL pointer dereference on ipx unload

    Fixes a null pointer dereference when unloading the ipx module.
    
    On initialization of the ipx module, registering certain packet
    types can fail. When this happens, unloading the module later
    dereferences NULL pointers.  This patch fixes that. Please apply.
    
    Signed-off-by: Jiri Bohac <jbohac@suse.cz>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    jiribohac committed with AdrianBunk Feb 14, 2007
  6. [NETFILTER]: Clear GSO bits for TCP reset packet

    The TCP reset packet is copied from the original.  This
    includes all the GSO bits which do not apply to the new
    packet.  So we should clear those bits.
    
    Spotted by Patrick McHardy.
    
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    herbertx committed with AdrianBunk Feb 14, 2007
  7. [TCP]: Don't apply FIN exception to full TSO segments.

    Signed-off-by: John Heffner <jheffner@psc.edu>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    John Heffner committed with AdrianBunk Feb 14, 2007
  8. [ATM]: Fix for crash in adummy_init()

    This was reported by Ingo Molnar here,
    
    http://lkml.org/lkml/2006/12/18/119
    
    The problem is that adummy_init() depends on atm_init() , but adummy_init()
    is called first.
    
    So I put atm_init() into subsys_initcall which seems appropriate, and it
    will still get module_init() if it becomes a module.
    
    Interesting to note that you could crash your system here if you just load
    the modules in the wrong order.
    
    Signed-off-by: Daniel Walker <dwalker@mvista.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Daniel Walker committed with AdrianBunk Feb 14, 2007
  9. TCP: skb is unexpectedly freed.

    I encountered a kernel panic with my test program, which is a very
    simple IPv6 client-server program.
    
    The server side sets IPV6_RECVPKTINFO on a listening socket, and the
    client side just sends a message to the server.  Then the kernel panic
    occurs on the server.  (If you need the test program, please let me
    know. I can provide it.)
    
    This problem happens because a skb is forcibly freed in
    tcp_rcv_state_process().
    
    When a socket in listening state(TCP_LISTEN) receives a syn packet,
    then tcp_v6_conn_request() will be called from
    tcp_rcv_state_process().  If the tcp_v6_conn_request() successfully
    returns, the skb would be discarded by __kfree_skb().
    
    However, in case of a listening socket which was already set
    IPV6_RECVPKTINFO, an address of the skb will be stored in
    treq->pktopts and a ref count of the skb will be incremented in
    tcp_v6_conn_request().  But, even if the skb is still in use, the skb
    will be freed.  Then someone still using the freed skb will cause the
    kernel panic.
    
    I suggest to use kfree_skb() instead of __kfree_skb().
    
    Signed-off-by: Masayuki Nakagawa <nakagawa.msy@ncos.nec.co.jp>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Masayuki Nakagawa committed with AdrianBunk Feb 14, 2007
  10. TCP: Fix sorting of SACK blocks.

    The sorting of SACK blocks actually munges them rather than sort,
    causing the TCP stack to ignore some SACK information and breaking the
    assumption of ordered SACK blocks after sorting.
    
    The sort takes the data from a second buffer which isn't moved causing
    subsequent data moves to occur from the wrong location. The fix is to
    use a temporary buffer as a normal sort does.
    
    Signed-off-By: Baruch Even <baruch@ev-en.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    baruch committed with AdrianBunk Feb 14, 2007
  11. AF_PACKET: Check device down state before hard header callbacks.

    If the device is down, invoking the device hard header callbacks
    is not legal, so check it early.
    
    Based upon a shaper OOPS report from Frederik Deweerdt.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    davem330 committed with AdrianBunk Feb 14, 2007
  12. SPARC32: Fix over-optimization by GCC near ip_fast_csum.

    In some cases such as:
            iph->check = 0;
            iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
    GCC may optimize out the previous store.
    
    Observed as a failure of NFS over udp (bad checksums on ip fragments)
    when compiled with GCC 3.4.2.
    
    Signed-off-by: Bob Breuer <breuerr@mc.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    breuerr committed with AdrianBunk Feb 14, 2007
  13. DECNET: Handle a failure in neigh_parms_alloc (take 2)

    While enhancing the neighbour code to handle multiple network
    namespaces I noticed that decnet is assuming neigh_parms_alloc
    will allways succeed, which is clearly wrong.  So handle the
    failure.
    
    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    ebiederm committed with AdrianBunk Feb 14, 2007
Commits on Feb 13, 2007
  1. Fix up CIFS for "test_clear_page_dirty()" removal

    This also adds he required page "writeback" flag handling, that cifs
    hasn't been doing and that the page dirty flag changes made obvious.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Acked-by: Steve French <smfltc@us.ibm.com>
    Linus Torvalds committed with AdrianBunk Feb 13, 2007
  2. fix umask when noACL kernel meets extN tuned for ACLs

    Fix insecure default behaviour reported by Tigran Aivazian: if an
    ext2 or ext3 filesystem is tuned to mount with "acl", but mounted by
    a kernel built without ACL support, then umask was ignored when creating
    inodes - though root or user has umask 022, touch creates files as 0666,
    and mkdir creates directories as 0777.
    
    This appears to have worked right until 2.6.11, when a fix to the default
    mode on symlinks (always 0777) assumed VFS applies umask: which it does,
    unless the mount is marked for ACLs; but ext[23] set MS_POSIXACL in
    s_flags according to s_mount_opt set according to def_mount_opts.
    
    We could revert to the 2.6.10 ext[23]_init_acl (adding an S_ISLNK test);
    but other filesystems only set MS_POSIXACL when ACLs are configured.  We
    could fix this at another level; but it seems most robust to avoid setting
    the s_mount_opt flag in the first place (at the expense of more ifdefs).
    
    Likewise don't set the XATTR_USER flag when built without XATTR support.
    
    Signed-off-by: Hugh Dickins <hugh@veritas.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Hugh Dickins committed with AdrianBunk Feb 13, 2007
Commits on Feb 10, 2007
  1. Linux 2.6.16.40

    AdrianBunk committed Feb 10, 2007
Commits on Feb 3, 2007
  1. Linux 2.6.16.40-rc1

    AdrianBunk committed Feb 3, 2007
  2. reiserfs: avoid tail packing if an inode was ever mmapped

    This patch fixes a confusion reiserfs has for a long time.
    
    On release file operation reiserfs used to try to pack file data stored in
    last incomplete page of some files into metadata blocks.  After packing the
    page got cleared with clear_page_dirty.  It did not take into account that
    the page may be mmaped into other process's address space.  Recent
    replacement for clear_page_dirty cancel_dirty_page found the confusion with
    sanity check that page has to be not mapped.
    
    The patch fixes the confusion by making reiserfs avoid tail packing if an
    inode was ever mmapped.  reiserfs_mmap and reiserfs_file_release are
    serialized with mutex in reiserfs specific inode.  reiserfs_mmap locks the
    mutex and sets a bit in reiserfs specific inode flags.
    reiserfs_file_release checks the bit having the mutex locked.  If bit is
    set - tail packing is avoided.  This eliminates a possibility that mmapped
    page gets cancel_page_dirty-ed.
    
    Signed-off-by: Vladimir Saveliev <vs@namesys.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Vladimir Saveliev committed with AdrianBunk Feb 3, 2007
  3. [libata] use kmap_atomic(KM_IRQ0) in SCSI simulator

    We are inside spin_lock_irqsave().  quoth akpm's debug facility:
    
     [  231.948000] SCSI device sda: 195371568 512-byte hdwr sectors (100030 MB)
     [  232.232000] ata1.00: configured for UDMA/33
     [  232.404000] WARNING (1) at arch/i386/mm/highmem.c:47 kmap_atomic()
     [  232.404000]  [<c01162e6>] kmap_atomic+0xa9/0x1ab
     [  232.404000]  [<c0242c81>] ata_scsi_rbuf_get+0x1c/0x30
     [  232.404000]  [<c0242caf>] ata_scsi_rbuf_fill+0x1a/0x87
     [  232.404000]  [<c0243ab2>] ata_scsiop_mode_sense+0x0/0x309
     [  232.404000]  [<c01729d5>] end_bio_bh_io_sync+0x0/0x37
     [  232.404000]  [<c02311c6>] scsi_done+0x0/0x16
     [  232.404000]  [<c02311c6>] scsi_done+0x0/0x16
     [  232.404000]  [<c0242dcc>] ata_scsi_simulate+0xb0/0x13f
    [...]
    
    Signed-off-by: Jeff Garzik <jeff@garzik.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Jeff Garzik committed with AdrianBunk Feb 3, 2007
  4. ia64: add pci_get_legacy_ide_irq()

    Add pci_get_legacy_ide_irq() identical to the one used by i386/x86_64.
    Fixes amd74xx driver build on ia64 (bugzilla bug #6644).
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    bzolnier committed with AdrianBunk Feb 3, 2007
  5. hwmon: Update Rudolf Marek's e-mail address

    The Silicon Hill club is not what it used to be.
    
    Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Rudolf Marek committed with AdrianBunk Feb 3, 2007
  6. k8temp: Documentation update

    Update the documentation for the k8temp driver.
    
    Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Rudolf Marek committed with AdrianBunk Feb 3, 2007
  7. k8temp: Add documentation

    Signed-off-by: Rudolf Marek <r.marek@sh.cvut.cz>
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Rudolf Marek committed with AdrianBunk Feb 3, 2007
  8. Make 'repair' actually work for raid1.

    When 'repair' finds a block that is different one the various
    parts of the mirror. it is meant to write a chosen good version
    to the others.  However it currently writes out the original data
    to each. The memcpy to make all the data the same is missing.
    
    Also correct a test so that 'repair' causes a repair, rather than
    anything other then 'repair'.
    
    Signed-off-by: Neil Brown <neilb@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    neilbrown committed with AdrianBunk Jan 30, 2007
Commits on Jan 30, 2007
  1. hwmon: New driver k8temp

    Add support for the temperature sensor(s) found in AMD K8 CPUs.
    
    Signed-off-by: Rudolf Marek <r.marek@sh.cvut.cz>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Rudolf Marek committed with AdrianBunk Jan 28, 2007
  2. [SCSI] arcmsr: fix up sysfs values

    The sysfs files in arcmsr are non-standard in that they aren't simple
    filename value pairs, the values actually contain preceeding text which
    would have to be parsed.  The idea of sysfs files is that the file name
    is the description and the contents is a simple value.
    
    Fix up arcmsr to conform to this standard.
    
    Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    James Bottomley committed with AdrianBunk Jan 27, 2007
  3. [SCSI] areca sysfs fix

    Remove sysfs_remove_bin_file() return-value checking from the areca driver.
    
    There's nothing a driver can do if sysfs file removal fails, so we'll soon be
    changing sysfs_remove_bin_file() to internally print a diagnostic and to
    return void.
    
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Andrew Morton committed with AdrianBunk Jan 27, 2007
  4. [SCSI] arcmsr: initial driver, version 1.20.00.13

    arcmsr is a driver for the Areca Raid controller, a host based RAID
    subsystem that speaks SCSI at the firmware level.
    
    This patch is quite a clean up over the initial submission with
    contributions from:
    
    Randy Dunlap <rdunlap@xenotime.net>
    Christoph Hellwig <hch@lst.de>
    Matthew Wilcox <matthew@wil.cx>
    Adrian Bunk <bunk@stusta.de>
    
    Signed-off-by: Erich Chen <erich@areca.com.tw>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Erich Chen committed with AdrianBunk Jan 27, 2007
  5. Linux 2.6.16.39

    AdrianBunk committed Jan 30, 2007
Commits on Jan 26, 2007
  1. Linux 2.6.16.39-rc1

    AdrianBunk committed Jan 26, 2007
  2. [Bluetooth] Fix deadlock in the L2CAP layer

    The Bluetooth L2CAP layer has 2 locks that are used in softirq context,
    (one spinlock and one rwlock, where the softirq usage is readlock) but
    where not all usages of the lock were _bh safe. The patch below corrects
    this.
    
    Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    holtmann committed with AdrianBunk Jan 25, 2007
  3. [Bluetooth] Add locking for bt_proto array manipulation

    The bt_proto array needs to be protected by some kind of locking to
    prevent a race condition between bt_sock_create and bt_sock_register.
    
    And in addition all calls to sk_alloc need to be made GFP_ATOMIC now.
    
    Signed-off-by: Masatake YAMATO <jet@gyve.org>
    Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    holtmann committed with AdrianBunk Jan 25, 2007
  4. [Bluetooth] Fix compat ioctl for BNEP, CMTP and HIDP

    There exists no attempt do deal with the fact that a structure with
    a uint32_t followed by a pointer is going to be different for 32-bit
    and 64-bit userspace. Any 32-bit process trying to use it will be
    failing with -EFAULT if it's lucky; suffering from having data dumped
    at a random address if it's not.
    
    Signed-off-by: David Woodhouse <dwmw2@infradead.org>
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    holtmann committed with AdrianBunk Jan 25, 2007
  5. [Bluetooth] Handle command complete event for exit periodic inquiry

    The command complete event of the exit periodic inquiry command must
    clear the HCI_INQUIRY flag and finish the HCI request.
    
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    holtmann committed with AdrianBunk Jan 25, 2007