Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 22, 2007
  1. @gregkh

    Linux 2.6.22.5

    gregkh authored
  2. @dwmw2 @gregkh

    JFFS2 locking regression fix.

    dwmw2 authored gregkh committed
    Commit a491486 introduced a locking
    problem in JFFS2 -- we up() the alloc_sem when we weren't previously
    holding it. This leads to all kinds of fun behaviour later.
    
    There was a _reason_ for the
    	if (1 /* alternative path needs testing */ ||
    which the above-mentioned commit removed :)
    
    Discovered and debugged by Giulio Fedel <giulio.fedel@andorsystems.com>
    
    Signed-off-by: David Woodhouse <dwmw2@infradead.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  3. @gregkh

    i386: Fix double fault handler

    Chuck Ebbert authored gregkh committed
    The new percpu code has apparently broken the doublefault handler
    when CONFIG_DEBUG_SPINLOCK is set. Doublefault is handled by
    a hardware task, making the check
    
            SPIN_BUG_ON(lock->owner == current, lock, "recursion");
    
    fault because it uses the FS register to access the percpu data
    for current, and that register is zero in the new TSS. (The trace
    I saw was on 2.6.20 where it was GS, but it looks like this will
    still happen with FS on 2.6.22.)
    
    Initializing FS in the doublefault_tss should fix it.
    
    AK: Also fix broken ptr_ok() and turn printks into KERN_EMERG
    AK: And add a PANIC prefix to make clear the system will hang
    AK: (e.g. x86-64 will recover)
    
    Signed-off-by: Chuck Ebbert <cebbert@redhat.com>
    Signed-off-by: Andi Kleen <ak@suse.de>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  4. @gregkh

    i386: Handle P6s without performance counters in nmi watchdog

    Andi Kleen authored gregkh committed
    I got an oops while booting a 32bit kernel on KVM because it doesn't
    implement performance counters used by the NMI watchdog. Handle this
    case.
    
    
    Cc: Avi Kivity <avi@qumranet.com>
    Signed-off-by: Andi Kleen <ak@suse.de>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  5. @gregkh

    x86_64: Change PMDS invocation to single macro

    Andi Kleen authored gregkh committed
    Very old binutils (2.12.90...) seem to have trouble with newlines
    in assembler macro invocation. They put them into the resulting
    argument expansion. In this case this lead to a parse error because
    a .rept expression ended up spread over multiple lines. Change the PMDS()
    invocation to a single line.
    
    Signed-off-by: Andi Kleen <ak@suse.de>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  6. @gregkh

    x86_64: Check for .cfi_rel_offset in CFI probe

    Andi Kleen authored gregkh committed
    Very old binutils have .cfi_startproc/endproc, but
    no .cfi_rel_offset. Check for .cfi_rel_offset too.
    
    Cc: Jan Beulich <jbeulich@novell.com>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  7. @gregkh

    i386: allow debuggers to access the vsyscall page with compat vDSO

    Jan Beulich authored gregkh committed
    From: Jan Beulich <jbeulich@novell.com>
    Signed-off-by: Jan Beulich <jbeulich@novell.com>
    Signed-off-by: Andi Kleen <ak@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  8. @rjwysocki @gregkh

    Hibernation: do not try to mark invalid PFNs as nosave

    rjwysocki authored gregkh committed
    On some systems some PFNs reported by the early initialization code as 'nosave'
    may be invalid. =A0If we try to set the corresponding bits in the hibernation
    bitmap, BUG_ON() in memory_bm_find_bit() will be triggered and the system
    won't be able to boot (cf. https://bugzilla.novell.com/show_bug.cgi?id=296242).
    
    Prevent this from happening by verifying if the 'nosave' PFNs are valid in
    mark_nosave_pages().
    
    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    Acked-by: Pavel Machek <pavel@ucw.cz>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  9. @henrysuati @gregkh

    libata: add ATI SB700 device IDs to AHCI driver

    henrysuati authored gregkh committed
    The SATA controller device ID is different according to
    the onchip SATA type set in the system BIOS:
    Device                              Device ID
    SATA in IDE mode             0x4390
    SATA in AHCI mode           0x4391
    SATA in non-raid5 driver     0x4392
    SATA in raid5 driver           0x4393
    
    Although the device ID is different, they use the same AHCI driver
    .The attached file is the patch for adding these device
    IDs for ATI SB700.
    
    Signed-off-by: su henry <henry.su.ati@gmail.com>
    Signed-off-by: Jeff Garzik <jeff@garzik.org>
    Cc: Chuck Ebbert <cebbert@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  10. @gregkh

    forcedeth: fix random hang in forcedeth driver when using netconsole

    Timo Jantunen authored gregkh committed
    If the forcedeth driver receives too much work in an interrupt, it
    assumes it has a broken hardware with stuck IRQ. It works around the
    problem by disabling interrupts on the nic but makes a printk while
    holding device spinlog - which isn't smart thing to do if you have
    netconsole on the same nic.
    
    This patch moves the printk's out of the spinlock protected area.
    
    
    Without this patch the machine hangs hard. With this patch everything
    still works even when there is significant increase on CPU usage while
    using the nic.
    
    Signed-off-by: Timo Jantunen <jeti@iki.fi>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  11. @gregkh

    r8169: avoid needless NAPI poll scheduling

    Francois Romieu authored gregkh committed
    Theory  : though needless, it should not have hurt.
    Practice: it does not play nice with DEBUG_SHIRQ + LOCKDEP + UP
    (see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D242572).
     
    
    The patch makes sense in itself but I should dig why it has an effect
    on #242572 (assuming that NAPI do not change in a near future).
    
    Patch in mainline as 313b030.
    Backported to 2.6.22-stable by Thomas M=FCller.
    
    Signed-off-by: Thomas M=FCller <thomas@mathtm.de>
    Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  12. @gregkh

    AVR32: Fix atomic_add_unless() and atomic_sub_unless()

    Haavard Skinnemoen authored gregkh committed
    These functions depend on "result" being initalized to 0, but "result"
    is not included as an input constraint to the inline assembly block
    following its initialization, only as an output constraint. Thus gcc
    thinks it doesn't need to initialize it, so result ends up undefined
    if the "unless" condition is true.
    
    This fixes an oops in sunrpc where the faulty atomics caused
    rpciod_up() to not start the workqueue as it should.
    
    Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  13. @acpibob @gregkh

    ACPICA: Clear reserved fields for incoming ACPI 1.0 FADTs

    acpibob authored gregkh committed
    ACPICA: Clear reserved fields for incoming ACPI 1.0 FADTs
    
    Fixed a problem with the internal FADT conversion where ACPI 1.0
    FADTs that contained invalid non-zero values in reserved fields
    could cause later failures because these fields have meaning in
    later revisions of the FADT. For incoming ACPI 1.0 FADTs, these
    fields are now always zeroed. (Preferred_PM_Profile, PSTATE_CNT,
    CST_CNT, IAPC_BOOT_FLAGS.)
    
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>
    Cc: Chuck Ebbert <cebbert@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  14. @acpibob @gregkh

    ACPICA: Fixed possible corruption of global GPE list

    acpibob authored gregkh committed
    ACPICA: Fixed possible corruption of global GPE list
    
    Fixed a problem in acpi_ev_delete_gpe_xrupt where the global interrupt
    list could be corrupted if the interrupt being removed was at
    the head of the list. Reported by Linn Crosetto.
    
    Signed-off-by: Bob Moore <robert.moore@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>
    Cc: Chuck Ebbert <cebbert@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  15. @gregkh

    revert "x86, serial: convert legacy COM ports to platform devices"

    Andrew Morton authored gregkh committed
    Revert 7e92b4f.  It broke Sébastien Dugué's
    machine and Jeff said (persuasively)
    
      This seems like it will break decades-long-working stuff, in favor of
      breaking new ground in our favorite area, "trusting the BIOS."
    
      It's just not worth it for serial ports, IMO.  Serial ports are something
      that just shouldn't break at this late stage in the game.  My new Intel
      platform boxes don't even have serial ports, so I question the value of
      messing with serial port probing even more...  because...  just wait a year,
      and your box won't have a serial port either!  :)
    
      I certainly don't object to the use of platform devices (or isa_driver),
      but the probe change seems questionable.  That's sorta analagous to
      rewriting the floppy driver probe routine.  Sure you could do it...  but why
      risk all that damage and go through debugging all over again?
    
      It seems clear from this report that we cannot, should not, trust BIOS for
      something (a) so simple and (b) that has been working for over a decade.
    
    Much discussion ensued and we've decided to have another go at all of this.
    
    Cc: Sébastien Dugué <sebastien.dugue@bull.net>
    Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
    Cc: Len Brown <lenb@kernel.org>
    Cc: Adam Belay <ambx1@neo.rr.com>
    Cc: Matthew Garrett <mjg59@srcf.ucam.org>
    Cc: Russell King <rmk@arm.linux.org.uk>
    Cc: Jeff Garzik <jeff@garzik.org>
    Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
    Cc: Sascha Sommer <saschasommer@freenet.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  16. @gregkh

    sky2: check drop truncated packets

    Stephen Hemminger authored gregkh committed
    Backport of commit 7174953
    
    If packet larger than MTU is received, the driver uses hardware to
    truncate the packet. Use the status registers to catch/drop them.
    
    Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  17. @gregkh

    sky2: check for more work before leaving NAPI

    Stephen Hemminger authored gregkh committed
    Backport of commit 5c11ce7
    
    This patch avoids generating another IRQ if more packets
    arrive while in the NAPI poll routine. Before marking device as
    finished, it rechecks that the status ring is empty.
    
    Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  18. @gregkh

    sky2: carrier management

    Stephen Hemminger authored gregkh committed
    backport of commit 55d7b4e
    
    Make sky2 handle carrier similar to other drivers,
    eliminate some possible races in carrier state transistions.
    
    Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  19. @gregkh

    sky2: restore workarounds for lost interrupts

    Stephen Hemminger authored gregkh committed
    Backport of commit c59697e
    
    This patch restores a couple of workarounds from 2.6.16:
     * restart transmit moderation timer in case it expires during IRQ routine
     * default to having 10 HZ watchdog timer.
    At this point it more important not to hang than to worry about the
    power cost.
    
    Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  20. @gregkh

    hwmon: (smsc47m1) restore missing name attribute

    Jean Delvare authored gregkh committed
    The smsc47m1 driver no longer creates the name attribute used by
    libsensors to identify chip types. It was lost during the conversion
    to a platform driver. I was fooled by the fact that we do have a
    group with all attributes, but only to delete them all at once. The
    group is not used to create the attributes, so we have to explicitly
    create the name attribute.
    
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  21. @gregkh

    hwmon: fix w83781d temp sensor type setting

    Mark M. Hoffman authored gregkh committed
    Commit 3487533 introduced a regression that
    caused temp2 and temp3 sensor type settings to be written to temp1 instead.
    The result is that temp sensor readings could be way off.
    
    Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Aug 21, 2007
  1. @gregkh

    Linux 2.6.22.4

    gregkh authored
  2. @holtmann @gregkh

    Reset current->pdeath_signal on SUID binary execution (CVE-2007-3848)

    holtmann authored gregkh committed
    This fixes a vulnerability in the "parent process death signal"
    implementation discoverd by Wojciech Purczynski of COSEINC PTE Ltd.
    and iSEC Security Research.
    
    http://marc.info/?l=bugtraq&m=118711306802632&w=2
    
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Commits on Aug 15, 2007
  1. @gregkh

    Linux 2.6.22.3

    gregkh authored
  2. @gregkh

    CPUFREQ: ondemand: add a check to avoid negative load calculation

    Venki Pallipadi authored gregkh committed
    Due to rounding and inexact jiffy accounting, idle_ticks can sometimes
    be higher than total_ticks. Make sure those cases are handled as
    zero load case.
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Dave Jones <davej@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  3. @gregkh

    CPUFREQ: ondemand: fix tickless accounting and software coordination bug

    Venki Pallipadi authored gregkh committed
    With tickless kernel and software coordination os P-states, ondemand
    can look at wrong idle statistics. This can happen when ondemand sampling
    is happening on CPU 0 and due to software coordination sampling also looks at
    utilization of CPU 1. If CPU 1 is in tickless state at that moment, its idle
    statistics will not be uptodate and CPU 0 thinks CPU 1 is idle for less
    amount of time than it actually is.
    
    This can be resolved by looking at all the busy times of CPUs, which is
    accurate, even with tickless, and use that to determine idle time in a
    round about way (total time - busy time).
    
    Thanks to Arjan for originally reporting the ondemand bug on
    Lenovo T61.
    
    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Signed-off-by: Dave Jones <davej@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  4. @gregkh

    pata_atiixp: add SB700 PCI ID

    Jeff Garzik authored gregkh committed
    [libata] pata_atiixp: add SB700 PCI ID
    
    From AMD.
    
    Signed-off-by: Jeff Garzik <jeff@garzik.org>
    Cc: Chuck Ebbert <cebbert@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  5. @gregkh

    stifb: detect cards in double buffer mode more reliably

    Helge Deller authored gregkh committed
    Visualize-EG, Graffiti and A4450A graphics cards on PARISC can
    be configured in double-buffer and standard mode, but the stifb
    driver supports standard mode only.
    This patch detects double-buffered cards more reliable.
    
    It is a real bugfix for a very nasty problem for all parisc users which have
    wrongly configured their graphic card.  The problem: The stifb graphics driver
    will not detect that the card is wrongly configured and then nevertheless just
    enables the graphics mode, which it shouldn't.  In the end, the user will see
    no further updates / boot messages on the screen.
    
    We had documented this problem already on our FAQ
    (http://parisc-linux.org/faq/index.html#viseg "Why do I get corrupted graphics
    with my Vis-EG/Graffiti/A4450A card?") but people still run into this problem.
     So having this fix in as early as possible can help us.
    
    Signed-off-by: Helge Deller <deller@gmx.de>
    Signed-off-by: Antonino Daplas <adaplas@gmail.com>
    Cc: Kyle McMartin <kyle@mcmartin.ca>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  6. @gregkh

    direct-io: fix error-path crashes

    Badari Pulavarty authored gregkh committed
    Need to initialize map_bh.b_state to zero.  Otherwise, in case of a faulty
    user-buffer its possible to go into dio_zero_block() and submit a page by
    mistake - since it checks for buffer_new().
    
    http://marc.info/?l=linux-kernel&m=118551339032528&w=2
    
    akpm: Linus had a (better) patch to just do a kzalloc() in there, but it got
    lost.  Probably this version is better for -stable anwyay.
    
    Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
    Acked-by: Joe Jin <joe.jin@oracle.com>
    Acked-by: Zach Brown <zach.brown@oracle.com>
    Cc: gurudas pai <gurudas.pai@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  7. @ozbenh @gregkh

    powerpc: Fix size check for hugetlbfs

    ozbenh authored gregkh committed
    My "slices" address space management code that was added in 2.6.22
    implementation of get_unmapped_area() doesn't properly check that the
    size is a multiple of the requested page size. This allows userland to
    create VMAs that aren't a multiple of the huge page size with hugetlbfs
    (since hugetlbfs entirely relies on get_unmapped_area() to do that
    checking) which leads to a kernel BUG() when such areas are torn down.
    
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  8. @kimphill @gregkh

    PPC: Revert "[POWERPC] Add 'mdio' to bus scan id list for platforms w…

    kimphill authored gregkh committed
    …ith QE UEC"
    
    This reverts commit 3baee95.
    
    this was a mistake from the start; I added mdio type to the bus
    scan list early on in my ucc_geth migrate to phylib development,
    which is just pure wrong (the ucc_geth_mii driver creates the mii
    bus and the PHY layer handles PHY enumeration without translation).
    
    this accompanies commit 7792682:
    
     Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"
    
    which was basically trying to hide a symptom of the original mistake
    this revert fixes.
    
    Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  9. @paulusmack @gregkh

    PPC: Revert "[POWERPC] Don't complain if size-cells == 0 in prom_pars…

    paulusmack authored gregkh committed
    …e()"
    
    This reverts commit fd6e9d3.
    
    Having #size-cells == 0 in a node indicates that things under the
    node aren't directly accessible, and therefore we shouldn't try to
    translate addresses for devices under the node into CPU physical
    addresses.
    
    Some drivers, such as the nvram driver for powermacs, rely on
    of_address_to_resource failing if they are called for a node
    representing a device whose resources aren't directly accessible
    by the CPU.  These drivers were broken by commit fd6e9d3,
    resulting in the "Lombard" powerbook hanging early in the boot
    process.
    
    stable team, this patch is equivalent to commit
    
    7792682
    
    Signed-off-by: Paul Mackerras <paulus@samba.org>
    Cc: Kim Phillips <kim.phillips@freescale.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  10. @htejun @gregkh

    ata_piix: update map 10b for ich8m

    htejun authored gregkh committed
    Fix map entry 10b for ich8.  It's [P0 P2 IDE IDE] like ich6 / ich6m.
    
    Signed-off-by: Tejun Heo <htejun@gmail.com>
    Acked-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
    Cc: Jeff Garzik <jeff@garzik.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  11. @gregkh

    softmac: Fix deadlock of wx_set_essid with assoc work

    Michael Buesch authored gregkh committed
    The essid wireless extension does deadlock against the assoc mutex,
    as we don't unlock the assoc mutex when flushing the workqueue, which
    also holds the lock.
    
    Signed-off-by: Michael Buesch <mb@bu3sch.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  12. @gregkh

    random: fix bound check ordering (CVE-2007-3105)

    Matt Mackall authored gregkh committed
    If root raised the default wakeup threshold over the size of the
    output pool, the pool transfer function could overflow the stack with
    RNG bytes, causing a DoS or potential privilege escalation.
    
    (Bug reported by the PaX Team <pageexec@freemail.hu>)
    
    Cc: Theodore Tso <tytso@mit.edu>
    Cc: Willy Tarreau <w@1wt.eu>
    Signed-off-by: Matt Mackall <mpm@selenic.com>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Something went wrong with that request. Please try again.