Permalink
Commits on Jan 30, 2007
  1. 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
  6. [Bluetooth] Return EINPROGRESS for non-blocking socket calls

    In case of non-blocking socket calls we should return EINPROGRESS
    and not EAGAIN.
    
    Signed-off-by: Ulisses Furquim <ulissesf@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
  7. kbuild: explicitly turn off gcc stack-protector

    Ubuntu has enabled -fstack-protector per default in gcc
    breaking kernel build. Explicit turn it off for now.
    
    Backported based on several patches by Sam Ravnborg <sam@ravnborg.org>.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    AdrianBunk committed Jan 26, 2007
Commits on Jan 25, 2007
  1. [Bluetooth] Fix uninitialized return value for RFCOMM sendmsg()

    When calling send() with a zero length parameter on a RFCOMM socket
    it returns a positive value. In this rare case the variable err is
    used uninitialized and unfortunately its value is returned.
    
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    holtmann committed with AdrianBunk Jan 25, 2007
  2. [Bluetooth] More checks if DLC is still attached to the TTY

    If the DLC device is no longer attached to the TTY device, then return
    errors or default values for various callbacks of the TTY layer.
    
    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: Fix unaligned access in hci_send_to_sock.

    The "u16 *" derefs of skb->data need to be wrapped inside of
    a get_unaligned().
    
    Thanks to Gustavo Zacarias for the bug report.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Acked-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    davem330 committed with AdrianBunk Jan 25, 2007
  4. [Bluetooth] Check if DLC is still attached to the TTY

    If the DLC device is no longer attached to the TTY device, then it
    makes no sense to go through with changing the termios settings.
    
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    holtmann committed with AdrianBunk Jan 25, 2007
Commits on Jan 24, 2007
  1. sparc32: add offset in pci_map_sg()

    Add sg->offset to sg->dvma_address in pci_map_sg() on sparc32.  Without the
    offset, transfers to buffers that do not begin on a page boundary will not
    work as expected.
    
    Signed-off-by: Jan Andersson <jan.andersson@ieee.org>
    Acked-By: David Miller <davem@davemloft.net>
    Jan Andersson committed with AdrianBunk Jan 24, 2007
  2. V4L/DVB: Missing statement in drivers/media/dvb/frontends/cx22700.c

    Stumbled over this because of coverity (id #492),
    seems like we are missing a return statement here and fail
    to do proper bounds checking. If this assumption is false
    we should at least change the identation to make it clear
    
    Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    SesterhennEric committed with AdrianBunk Jan 24, 2007
  3. V4L/DVB: Flexcop-usb: fix debug printk

    .. fix debug printk. Why, oh why, one would want to do
       (u16 & 0xff) << 8
    and print it with %02x format?
    
    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alexey Dobriyan committed with AdrianBunk Jan 24, 2007
  4. V4L/DVB: Fix uninitialised variable in dvb_frontend_swzigzag

    Spotted by coverity/Adrian Bunk.
    
    Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Andrew de Quincey committed with AdrianBunk Jan 24, 2007
Commits on Jan 23, 2007
  1. [Bluetooth] Let BT_HIDP depend on INPUT

    This patch lets BT_HIDP depend on instead of select INPUT. This fixes
    the following warning during an s390 build:
    
    net/bluetooth/hidp/Kconfig:4⚠️ 'select' used by config symbol
    'BT_HIDP' refer to undefined symbol 'INPUT'
    
    A dependency on INPUT also implies !S390 (and therefore makes the
    explicit dependency obsolete) since INPUT is not available on s390.
    
    The practical difference should be nearly zero, since INPUT is always
    set to y unless EMBEDDED=y (or S390=y).
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    AdrianBunk committed Jan 23, 2007
  2. i386: fix CPU hotplug with 2GB VMSPLIT

    In VMSPLIT mode, kernel PGD might have more entries than user space
    
    Signed-off-by: Shaohua Li <shaohua.li@intel.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Shaohua Li committed with AdrianBunk Jan 23, 2007
  3. read_zero_pagealigned() locking fix

    Ramiro Voicu hits the BUG_ON(!pte_none(*pte)) in zeromap_pte_range: kernel
    bugzilla 7645.  Right: read_zero_pagealigned uses down_read of mmap_sem,
    but another thread's racing read of /dev/zero, or a normal fault, can
    easily set that pte again, in between zap_page_range and zeromap_page_range
    getting there.  It's been wrong ever since 2.4.3.
    
    The simple fix is to use down_write instead, but that would serialize reads
    of /dev/zero more than at present: perhaps some app would be badly
    affected.  So instead let zeromap_page_range return the error instead of
    BUG_ON, and read_zero_pagealigned break to the slower clear_user loop in
    that case - there's no need to optimize for it.
    
    Use -EEXIST for when a pte is found: BUG_ON in mmap_zero (the other user of
    zeromap_page_range), though it really isn't interesting there.  And since
    mmap_zero wants -EAGAIN for out-of-memory, the zeromaps better return that
    than -ENOMEM.
    
    Signed-off-by: Hugh Dickins <hugh@veritas.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Hugh Dickins committed with AdrianBunk Jan 23, 2007
Commits on Jan 22, 2007
  1. atiixp: hang fix

    When the old IDE layer calls into methods in the driver during error
    handling it is essentially random whether ide_lock is already held.  This
    causes a deadlock in the atiixp driver which also uses ide_lock internally
    for locking.
    
    Switch to a private lock instead.
    
    [akpm@osl.org: cleanup]
    Signed-off-by: Alan Cox <alan@redhat.com>
    Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alan Cox committed with AdrianBunk Jan 22, 2007
  2. cdrom: set default timeout to 7 seconds

    It's a known fact that Windows times out commands after 7 seconds, so
    drives generally try and respond if they can before that happens.  We
    default to 5 seconds, which sometimes is a bit too short.
    
    Jeremy Higdon reported here:
    
        http://lkml.org/lkml/2007/1/1/145
    
    that his drive takes longer than 5 seconds for a "read track
    information" command, later confirming that it is about 6.7 seconds.
    
    So just do the sane thing and change the default command timeout to 7
    seconds to avoid other surprises.
    
    Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Jens Axboe committed with AdrianBunk Jan 22, 2007
  3. [SCSI] qla1280 bus reset typo

    Fix typo in check of return value of qla1280_bus_reset() which would
    result in an adapter reset in addition to the bus reset.
    
    Signed-off-by: Jes Sorensen <jes@sgi.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Jes Sorensen committed with AdrianBunk Jan 22, 2007
  4. [SCSI] qla1280 command timeout

    Original patch from Ian Dall in bugzilla. Set command timeout as
    specified by the SCSI layer rather than hardcode it to 30 seconds. I
    have received a couple of reports of people hitting this one with
    various tape configurations and the patch looks obviously correct.
    
    From http://bugzilla.kernel.org/show_bug.cgi?id=6275
    
    Ian Dall <ian@beware.dropbear.id.au>:
    
    The command sent to the card was using a 30second timeout regardless of the
    timeout requested in the scsi command passed down from higher levels.
    
    Signed-off-by: Jes Sorensen <jes@sgi.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Jes Sorensen committed with AdrianBunk Jan 22, 2007
  5. adfs: fix filename handling

    Fix filenames on adfs discs being terminated at the first character greater
    than 128 (adfs filenames are Latin 1).  I saw this problem when using a
    loopback adfs image on a 2.6.17-rc5 x86_64 machine, and the patch fixed it
    there.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    jamesbursa committed with AdrianBunk Jan 20, 2007
  6. s390: connector support

    Include connector config in the s390 arch Kconfig to get support for
    connectors.
    
    This also fixes the following Kconfig warning:
    fs/Kconfig:1728⚠️ 'select' used by config symbol 'CIFS_UPCALL' refer to undefined symbol 'CONNECTOR'
    
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Martin Schwidefsky committed with AdrianBunk Jan 20, 2007
  7. NETFILTER: arp_tables: missing unregistration on module unload

    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    kaber committed with AdrianBunk Jan 22, 2007
Commits on Jan 20, 2007
  1. NETFILTER: NAT: fix NOTRACK checksum handling

    The whole idea with the NOTRACK netfilter target is that
    you can force the netfilter code to avoid connection
    tracking, and all costs assosciated with it, by making
    traffic match a NOTRACK rule.
    
    But this is totally broken by the fact that we do a checksum
    calculation over the packet before we do the NOTRACK bypass
    check, which is very expensive.  People setup NOTRACK rules
    explicitly to avoid all of these kinds of costs.
    
    This patch from Patrick, already in Linus's tree, fixes the
    bug.
    
    Move the check for ip_conntrack_untracked before the call to
    skb_checksum_help to fix NOTRACK excemptions from NAT. Pre-2.6.19
    NAT code breaks TSO by invalidating hardware checksums for every
    packet, even if explicitly excluded from NAT through NOTRACK.
    
    2.6.19 includes a fix that makes NAT and TSO live in harmony,
    but the performance degradation caused by this deserves making
    at least the workaround work properly in -stable.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    kaber committed with AdrianBunk Jan 20, 2007
  2. mm: fix bug in set_page_dirty_buffers

    This was triggered, but not the fault of, the dirty page accounting
    patches. Suitable for -stable as well, after it goes upstream.
    
    Unable to handle kernel NULL pointer dereference at virtual address 0000004c
    EIP is at _spin_lock+0x12/0x66
    Call Trace:
     [<401766e7>] __set_page_dirty_buffers+0x15/0xc0
     [<401401e7>] set_page_dirty+0x2c/0x51
     [<40140db2>] set_page_dirty_balance+0xb/0x3b
     [<40145d29>] __do_fault+0x1d8/0x279
     [<40147059>] __handle_mm_fault+0x125/0x951
     [<401133f1>] do_page_fault+0x440/0x59f
     [<4034d0c1>] error_code+0x39/0x40
     [<08048a33>] 0x8048a33
     =======================
    
    Signed-off-by: Nick Piggin <npiggin@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Nick Piggin committed with AdrianBunk Jan 20, 2007
  3. Linux 2.6.16.38

    AdrianBunk committed Jan 20, 2007
Commits on Jan 18, 2007
  1. Linux 2.6.16.38-rc2

    AdrianBunk committed Jan 18, 2007
  2. [IPV6] Fix joining all-node multicast group.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    YOSHIFUJI Hideaki committed with AdrianBunk Jan 18, 2007
Commits on Jan 14, 2007
  1. UML: fix the MODE_TT compilation

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Paolo 'Blaisorblade' Giarrusso committed with AdrianBunk Jan 14, 2007
Commits on Jan 9, 2007
  1. Linux 2.6.16.38-rc1

    AdrianBunk committed Jan 9, 2007
  2. x86_64: re-add a newline to RESTORE_CONTEXT

    RESTORE_CONTEXT lost a newline:
    http://www.mail-archive.com/kgdb-bugreport@lists.sourceforge.net/msg00559.html
    
    Reported by Steven M. Christey.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    AdrianBunk committed Jan 9, 2007
  3. ALSA: snd_rtctimer: handle RTC interrupts with a tasklet

    The calls to rtc_control() from inside the interrupt handler can
    deadlock the RTC code, so move our interrupt handling code to a tasklet.
    
    Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
    Acked-By: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    cladisch committed with AdrianBunk Jan 8, 2007