Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 22, 2006
  1. @AdrianBunk

    Linux 2.6.16.33

    AdrianBunk authored
Commits on Nov 20, 2006
  1. @AdrianBunk

    Linux 2.6.16.33-rc1

    AdrianBunk authored
  2. @ozbenh @AdrianBunk

    POWERPC: Make alignment exception always check exception table

    ozbenh authored AdrianBunk committed
    The alignment exception used to only check the exception table for
    -EFAULT, not for other errors. That opens an oops window if we can
    coerce the kernel into getting an alignment exception for other reasons
    in what would normally be a user-protected accessor, which can be done
    via some of the futex ops. This fixes it by always checking the
    exception tables.
    
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @dvenza @AdrianBunk

    Add new PHY to sis900 supported list

    dvenza authored AdrianBunk committed
    This patch adds support for a new PHY to the sis900 driver.
    See also Bugzilla 6919.
    
    Signed-off-by: Daniele Venzano <venza@brownhat.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  4. @AdrianBunk

    sis900 adm7001 PHY support

    Artur Skawina authored AdrianBunk committed
    this patch is required to get a SIS964 based motherboard ethernet working
    (FSC D1875) (picking the #1 transceiver, instead of the last one, in case
    no known ones were found might be a better default, and would have worked
    in this case too)
    
    Signed-off-by: Artur Skawina <art_k@o2.pl>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  5. @AdrianBunk

    Old IDE, fix SATA detection for cabling

    Michael-Luke Jones authored AdrianBunk committed
    This patch is identical to that introduced in
    1a1276e to the Linus' 2.6 development tree
    by Alan Cox.
    
    'This is based on the proposed patches flying around but also checks that
    the device in question is new enough to have word 93 rather thanb blindly
    assuming word 93 == 0 means SATA (see ATA-5, ATA-7)' -- Alan Cox
    
    Required for my SATA drive on an Asus Pundit-R to operate above 33MBps.
    
    Signed-off-by: Michael-Luke Jones <mlj28@cam.ac.uk>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  6. @AdrianBunk

    Fix BeFS slab corruption

    Diego Calleja authored AdrianBunk committed
    In bugzilla #6941, Jens Kilian reported:
    
    "The function befs_utf2nls (in fs/befs/linuxvfs.c) writes a 0 byte past the
    end of a block of memory allocated via kmalloc(), leading to memory
    corruption.  This happens only for filenames which are pure ASCII and a
    multiple of 4 bytes in length.  [...]
    
    Without DEBUG_SLAB, this leads to further corruption and hard lockups; I
    believe this is the bug which has made kernels later than 2.6.8 unusable
    for me.  (This must be due to changes in memory management, the bug has
    been in the BeFS driver since the time it was introduced (AFAICT).)
    
    Steps to reproduce:
    Create a directory (in BeOS, naturally :-) with files named, e.g.,
    "1", "22", "333", "4444", ...  Mount it in Linux and do an "ls" or "find""
    
    This patch implements the suggested fix. Credits to Jens Kilian for
    debugging the problem and finding the right fix.
    
    Signed-off-by: Diego Calleja <diegocg@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  7. @AdrianBunk

    V4L/DVB: Saa7134: rename dmasound_{init,exit}

    AdrianBunk authored
    Two different exports with the same name are not a good idea:
    
    $ grep -r EXPORT_SYMBOL\(dmasound_init\) *
    drivers/media/video/saa7134/saa7134-core.c:EXPORT_SYMBOL(dmasound_init);
    sound/oss/dmasound/dmasound_core.c:EXPORT_SYMBOL(dmasound_init);
    $
    
    This patch renames the saa7134 dmasound_{init,exit} to
    saa7134_dmasound_{init,exit}.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Nov 19, 2006
  1. @davem330 @AdrianBunk

    [RTNETLINK]: Fix IFLA_ADDRESS handling.

    davem330 authored AdrianBunk committed
    The ->set_mac_address handlers expect a pointer to a
    sockaddr which contains the MAC address, whereas
    IFLA_ADDRESS provides just the MAC address itself.
    
    So whip up a sockaddr to wrap around the netlink
    attribute for the ->set_mac_address call.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  2. @AdrianBunk

    drivers/scsi/psi240i.c: fix an array overrun

    AdrianBunk authored
    This patch fixes an array overrun spotted by the Coverity checker.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @AdrianBunk

    [TG3]: Fix array overrun in tg3_read_partno().

    Michael Chan authored AdrianBunk committed
    Use proper upper limits for the loops and check for all error
    conditions.
    
    The problem was noticed by Adrian Bunk.
    
    Signed-off-by: Michael Chan <mchan@broadcom.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  4. @AdrianBunk

    disable debugging version of write_lock()

    Andrew Morton authored AdrianBunk committed
    We've confirmed that the debug version of write_lock() can get stuck for long
    enough to cause NMI watchdog timeouts and hence a crash.
    
    We don't know why, yet.   Disable it for now.
    
    Also disable the similar read_lock() code.  Just in case.
    
    Thanks to Dave Olson <olson@unixfolk.com> for reporting and testing.
    
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Nov 17, 2006
  1. @AdrianBunk

    Fix timer race in dst GC code

    Dmitry Mishin authored AdrianBunk committed
    Replace add_timer() by mod_timer() in dst_run_gc
    in order to avoid BUG message.
    
       CPU1                            CPU2
    dst_run_gc()  entered           dst_run_gc() entered
    spin_lock(&dst_lock)                   .....
    del_timer(&dst_gc_timer)         fail to get lock
       ....                         mod_timer() <--- puts
                                                 timer back
                                                 to the list
    add_timer(&dst_gc_timer) <--- BUG because timer is in list already.
    
    Found during OpenVZ internal testing.
    
    At first we thought that it is OpenVZ specific as we
    added dst_run_gc(0) call in dst_dev_event(),
    but as Alexey pointed to me it is possible to trigger
    this condition in mainstream kernel.
    
    F.e. timer has fired on CPU2, but the handler was preeempted
    by an irq before dst_lock is tried.
    Meanwhile, someone on CPU1 adds an entry to gc list and
    starts the timer.
    If CPU2 was preempted long enough, this timer can expire
    simultaneously with resuming timer handler on CPU1, arriving
    exactly to the situation described.
    
    Signed-off-by: Dmitry Mishin <dim@openvz.org>
    Signed-off-by: Kirill Korotaev <dev@openvz.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  2. @AdrianBunk

    ext3 -nobh option causes oops

    Badari Pulavarty authored AdrianBunk committed
    For files other than IFREG, nobh option doesn't make sense.  Modifications
    to them are journalled and needs buffer heads to do that.  Without this
    patch, we get kernel oops in page_buffers().
    
    Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @AdrianBunk

    ipmi_si_intf.c: fix "&& 0xff" typos

    Alexey Dobriyan authored AdrianBunk committed
    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  4. @AdrianBunk

    security/seclvl.c: fix time wrap (CVE-2005-4352)

    AdrianBunk authored
    initlvl=2 in seclvl gives the guarantee
    "Cannot decrement the system time".
    
    But it was possible to set the time to the maximum unixtime value
    (19 Jan 2038) resulting in a wrap to the minimum value.
    
    This patch fixes this by disallowing setting the time to any date
    after 2030 with initlvl=2.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Nov 16, 2006
  1. @AdrianBunk

    synclink_gt fix receive tty error handling

    Paul Fulghum authored AdrianBunk committed
    Fix receive tty error handling in synclink_gt driver.
    Adrian reported compiler warning for incorrect bit test
    against char variable. I determined these and other
    device specific error bits were incorrectly defined.
    
    Signed-off-by: Paul Fulghum <paulkf@microgate.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Nov 15, 2006
  1. @dr-itz @AdrianBunk

    fix via586 irq routing for pirq 5

    dr-itz authored AdrianBunk committed
    fix interrput routing for via 586 bridges. pirq can be 5 which needs to be
    mapped to INTD. but currently the access functions can handle only pirq 1-4.
    this is similar to the other via chipsets where pirq 4 and 5 are both mapped
    to INTD. fixes bugzilla #7490
    
    Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  2. @AdrianBunk

    sata_promise: Support FastTrak TX4300/TX4310

    Daniel Drake authored AdrianBunk committed
    This patch adds support for the Promise FastTrak TX4300/TX4310 4-port PCI SATA
    controllers based on the PDC40719 chip.
    
    Signed-off-by: Daniel Drake <dsd@gentoo.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @acpibob @AdrianBunk

    Reduce ACPI verbosity on null handle condition

    acpibob authored AdrianBunk committed
    As detailed at http://bugs.gentoo.org/131534 :
    
    2.6.16 converted many ACPI debug messages into error or warning
    messages. One extraneous message was incorrectly converted, resulting in
    logs being flooded by "Handle is NULL and Pathname is relative" messages
    on some systems.
    
    This patch (part of a larger ACPICA commit) converts the message back to
    debug level.
    
    Signed-off-by: Daniel Drake <dsd@gentoo.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  4. @AdrianBunk

    Linux 2.6.16.32

    AdrianBunk authored
Commits on Nov 11, 2006
  1. @AdrianBunk

    Linux 2.6.16.32-rc1

    AdrianBunk authored
  2. @AdrianBunk

    Fix longstanding load balancing bug in the scheduler

    Christoph Lameter authored AdrianBunk committed
    The scheduler will stop load balancing if the most busy processor contains
    processes pinned via processor affinity.
    
    The scheduler currently only does one search for busiest cpu.  If it cannot
    pull any tasks away from the busiest cpu because they were pinned then the
    scheduler goes into a corner and sulks leaving the idle processors idle.
    
    F.e.  If you have processor 0 busy running four tasks pinned via taskset,
    there are none on processor 1 and one just started two processes on
    processor 2 then the scheduler will not move one of the two processes away
    from processor 2.
    
    This patch fixes that issue by forcing the scheduler to come out of its
    corner and retrying the load balancing by considering other processors for
    load balancing.
    
    This patch was originally developed by John Hawkes and discussed at
    
        http://marc.theaimsgroup.com/?l=linux-kernel&m=113901368523205&w=2.
    
    I have removed extraneous material and gone back to equipping struct rq
    with the cpu the queue is associated with since this makes the patch much
    easier and it is likely that others in the future will have the same
    difficulty of figuring out which processor owns which runqueue.
    
    The overhead added through these patches is a single word on the stack if
    the kernel is configured to support 32 cpus or less (32 bit).  For 32 bit
    environments the maximum number of cpus that can be configued is 255 which
    would result in the use of 32 bytes additional on the stack.  On IA64 up to
    1k cpus can be configured which will result in the use of 128 additional
    bytes on the stack.  The maximum additional cache footprint is one
    cacheline.  Typically memory use will be much less than a cacheline and the
    additional cpumask will be placed on the stack in a cacheline that already
    contains other local variable.
    
    Signed-off-by: Christoph Lameter <clameter@sgi.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @htejun @AdrianBunk

    sata_sil24: add a new PCI ID for SiI 3124

    htejun authored AdrianBunk committed
    Add a new PCI ID for SiI 3124.  Reported by Silicon Image.
    
    Signed-off-by: Tejun Heo <htejun@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  4. @AdrianBunk

    ia64/sparc: fix local DoS with corrupted ELFs (CVE-2006-4538)

    Kirill Korotaev authored AdrianBunk committed
    This patch prevents cross-region mappings
    on IA64 and SPARC which could lead to system crash.
    
    Adrian Bunk:
    Adapted to 2.6.16.
    
    Signed-Off-By: Kirill Korotaev <dev@openvz.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Nov 10, 2006
  1. @paulusmack @AdrianBunk

    nvidia fbdev: fix powerpc xmon scribbles

    paulusmack authored AdrianBunk committed
    xmon writes garbage on the screen because the nvidia console driver has
    changed the line pitch from what the firmware set it to.  Fix it by making
    the nvidia driver inform the btext engine (which xmon uses if the screen is
    its output device) about changes to display resolution.
    
    Signed-off-by: Paul Mackerras <paulus@samba.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  2. @paulusmack @AdrianBunk

    [POWERPC] Fix return value from memcpy

    paulusmack authored AdrianBunk committed
    As pointed out by Herbert Xu <herbert@gondor.apana.org.au>, our
    memcpy implementation didn't return the destination pointer as its
    return value, and there is code in the kernel that expects that.
    This fixes it.
    
    Signed-off-by: Paul Mackerras <paulus@samba.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @herbertx @AdrianBunk

    [NET]: Update frag_list in pskb_trim

    herbertx authored AdrianBunk committed
    When pskb_trim has to defer to ___pksb_trim to trim the frag_list part of
    the packet, the frag_list is not updated to reflect the trimming.  This
    will usually work fine until you hit something that uses the packet length
    or tail from the frag_list.
    
    Examples include esp_output and ip_fragment.
    
    Another problem caused by this is that you can end up with a linear packet
    with a frag_list attached.
    
    It is possible to get away with this if we audit everything to make sure
    that they always consult skb->len before going down onto frag_list.  In
    fact we can do the samething for the paged part as well to avoid copying
    the data area of the skb.  For now though, let's do the conservative fix
    and update frag_list.
    
    Many thanks to Marco Berizzi for helping me to track down this bug.
    
    This 4-year old bug took 3 months to track down.  Marco was very patient
    indeed :)
    
    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>
  4. @AdrianBunk

    scx200_acb: Fix the block transactions

    Jean Delvare authored AdrianBunk committed
    The scx200_acb i2c bus driver pretends to support SMBus block
    transactions, but in fact it implements the more simple I2C block
    transactions. Additionally, it lacks sanity checks on the length
    of the block transactions, which could lead to a buffer overrun.
    
    This fixes an oops reported by Alexander Atanasov:
    http://marc.theaimsgroup.com/?l=linux-kernel&m=114970382125094
    
    Thanks to Ben Gardner for fixing my bugs :)
    
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  5. @AdrianBunk

    Fix the scx200_acb state machine:

    Thomas Andrews authored AdrianBunk committed
    * Nack was sent one byte too late on reads >= 2 bytes.
    * Stop bit was set one byte too late on reads.
    
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
Commits on Nov 9, 2006
  1. @proski @AdrianBunk

    drivers/video/nvidia/nvidia.c: Add ID for Quadro NVS280

    proski authored AdrianBunk committed
    Quadro NVS280 is a dual-head PCIe card with PCI ID 10de:00fd and subsystem I
    10de:0215.
    
    Signed-off-by: Pavel Roskin <proski@gnu.org>
    Signed-off-by: Antonino Daplas <adaplas@pol.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  2. @jeffmahoney @AdrianBunk

    [DISKLABEL] SUN: Fix signed int usage for sector count

    jeffmahoney authored AdrianBunk committed
    The current sun disklabel code uses a signed int for the sector count.
    When partitions larger than 1 TB are used, the cast to a sector_t causes
    the partition sizes to be invalid:
    
     # cat /proc/paritions | grep sdan
       66   112 2146435072 sdan
       66   115 9223372036853660736 sdan3
       66   120 9223372036853660736 sdan8
    
    This patch switches the sector count to an unsigned int to fix this.
    
    Eric Sandeen also submitted the same patch.
    
    Signed-off-by: Jeff Mahoney <jeffm@suse.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  3. @AdrianBunk

    [NET]: __alloc_pages() failures reported due to fragmentation

    Larry Woodman authored AdrianBunk committed
    We have seen a couple of __alloc_pages() failures due to
    fragmentation, there is plenty of free memory but no large order pages
    available.  I think the problem is in sock_alloc_send_pskb(), the
    gfp_mask includes __GFP_REPEAT but its never used/passed to the page
    allocator.  Shouldnt the gfp_mask be passed to alloc_skb() ?
    
    Signed-off-by: Larry Woodman <lwoodman@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
  4. @herbertx @AdrianBunk

    [NET]: Set truesize in pskb_copy

    herbertx authored AdrianBunk committed
    Since pskb_copy tacks on the non-linear bits from the original
    skb, it needs to count them in the truesize field of the new skb.
    
    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>
  5. @AdrianBunk

    [TCP]: Don't use highmem in tcp hash size calculation.

    John Heffner authored AdrianBunk committed
    This patch removes consideration of high memory when determining TCP
    hash table sizes.  Taking into account high memory results in tcp_mem
    values that are too large.
    
    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>
Something went wrong with that request. Please try again.