Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.6.26-rc9

Jul 05, 2008

  1. Linus Torvalds

    Linux 2.6.26-rc9

    torvalds authored
  2. Fix pagemap_read() use of struct mm_walk

    Fix some issues in pagemap_read noted by Alexey:
    
    - initialize pagemap_walk.mm to "mm" , so the code starts working as
      advertised
    
    - initialize ->private to "&pm" so it wouldn't immediately oops in
      pagemap_pte_hole()
    
    - unstatic struct pagemap_walk, so two threads won't fsckup each other
      (including those started by root, including flipping ->mm when you don't
      have permissions)
    
    - pagemap_read() contains two calls to ptrace_may_attach(), second one
      looks unneeded.
    
    - avoid possible kmalloc(0) and integer wraparound.
    
    Cc: Alexey Dobriyan <adobriyan@gmail.com>
    Cc: Matt Mackall <mpm@selenic.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    [ Personally, I'd just remove the functionality entirely  - Linus ]
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Andrew Morton authored torvalds committed
  3. Eduard - Gabriel Munteanu

    Move _RET_IP_ and _THIS_IP_ to include/linux/kernel.h

    These two macros are useful beyond lock debugging. Moved definitions from
    include/linux/debug_locks.h to include/linux/kernel.h, so code that needs
    them does not have to include the former, which would have been a less
    intuitive choice of a header.
    
    Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
    Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    edgmnt authored torvalds committed
  4. Linus Torvalds

    Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/linux-2.6-tip
    
    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
      softlockup: print a module list on being stuck
    torvalds authored
  5. Linus Torvalds

    Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/tip/linux-2.6-tip
    
    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
      x86 ACPI: fix resume from suspend to RAM on uniprocessor x86-64
      x86 ACPI: normalize segment descriptor register on resume
    torvalds authored
  6. Fix clear_refs_write() use of struct mm_walk

    Don't use a static entry, so as to prevent races during concurrent use
    of this function.
    
    Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
    Cc: Matt Mackall <mpm@selenic.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Andrew Morton authored torvalds committed
  7. Linus Torvalds

    Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6

    * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
      ide: ide_unregister() locking bugfix
      ide: ide_unregister() warm-plug bugfix
      ide: fix hwif->gendev refcounting
    torvalds authored
  8. ahci: give another shot at clearing all bits in irq_stat

    Commit ea0c62f tried to clear all
    bits in irq_stat but it didn't actually achieve that as irq_stat was
    anded with port_map right after read.  This patch makes ahci driver
    always use the unmasked value to clear irq_status.
    
    While at it, add explanation on the peculiarities of ahci IRQ
    clearing.
    
    This was spotted by Linus Torvalds.
    
    Signed-off-by: Tejun Heo <tj@kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Tejun Heo authored torvalds committed
  9. bzolnier

    ide: ide_unregister() locking bugfix

    Holding ide_lock for ide_release_dma_engine() call is unnecessary
    and triggers WARN_ON(irqs_disabled()) in dma_free_coherent().
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    bzolnier authored
  10. bzolnier

    ide: ide_unregister() warm-plug bugfix

    Fix ide_unregister() to work for ports with no devices attached to them.
    
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    bzolnier authored
  11. bzolnier

    ide: fix hwif->gendev refcounting

    class->dev_release is called by device_release() iff dev->release
    is not present so ide_port_class_release() is never called and the
    last hwif->gendev reference is not dropped.
    
    Fix it by removing ide_port_class_release() and get_device() call
    from ide_register_port() (device_create_drvdata() takes a hwif->gendev
    reference anyway).
    
    This patch fixes hang on wait_for_completion(&hwif->gendev_rel_comp)
    in ide_unregister() reported by Pavel Machek.
    
    Cc: Pavel Machek <pavel@suse.cz>
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    bzolnier authored
  12. fenrus75

    softlockup: print a module list on being stuck

    Most places in the kernel that go BUG: print a module list
    (which is very useful for doing statistics and finding patterns),
    however the softlockup detector does not do this yet.
    
    This patch adds the one line change to fix this gap.
    
    Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    fenrus75 authored Ingo Molnar committed
  13. Merge branch 'x86/s2ram-fix' into x86/urgent

    Ingo Molnar authored
  14. Rafael J. Wysocki

    x86 ACPI: fix resume from suspend to RAM on uniprocessor x86-64

    Since the trampoline code is now used for ACPI resume from suspend to RAM,
    the trampoline page tables have to be fixed up during boot not only on SMP
    systems, but also on UP systems that use the trampoline.
    
    Reference: http://bugzilla.kernel.org/show_bug.cgi?id=10923
    
    Reported-by: Dionisus Torimens <djtm@gmx.net>
    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: pm list <linux-pm@lists.linux-foundation.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    rjwysocki authored Ingo Molnar committed
  15. x86 ACPI: normalize segment descriptor register on resume

    Some Dell laptops enter resume with apparent garbage in the segment
    descriptor registers (almost certainly the result of a botched
    transition from protected to real mode.)  The only way to clean that
    up is to enter protected mode ourselves and clean out the descriptor
    registers.
    
    This fixes resume on Dell XPS M1210 and Dell D620.
    
    Reference: http://bugzilla.kernel.org/show_bug.cgi?id=10927
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Pavel Machek <pavel@ucw.cz>
    Cc: pm list <linux-pm@lists.linux-foundation.org>
    Cc: Len Brown <lenb@kernel.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    Tested-by: Kirill A. Shutemov <kirill@shutemov.name>
    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    H. Peter Anvin authored Ingo Molnar committed

Jul 04, 2008

  1. mempolicy: mask off internal flags for userspace API

    Flags considered internal to the mempolicy kernel code are stored as part
    of the "flags" member of struct mempolicy.
    
    Before exposing a policy type to userspace via get_mempolicy(), these
    internal flags must be masked.  Flags exposed to userspace, however,
    should still be returned to the user.
    
    Signed-off-by: David Rientjes <rientjes@google.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    David Rientjes authored torvalds committed
  2. Linus Torvalds

    Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/tip/linux-2.6-tip
    
    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
      xen: fix address truncation in pte mfn<->pfn conversion
      arch/x86/mm/init_64.c: early_memtest(): fix types
      x86: fix Intel Mac booting with EFI
    torvalds authored
  3. mmc: don't use DMA on newer ENE controllers

    Even the newer ENE controllers have bugs in their DMA engine that make
    it too dangerous to use. Disable it until someone has figured out under
    which conditions it corrupts data.
    
    This has caused problems at least once, and can be found as bug report
    10925 in the kernel bugzilla.
    
    Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Pierre Ossman authored torvalds committed
  4. doc: document the relax_domain_level kernel boot argument

    Document the kernel boot parameter: relax_domain_level=.
    
    Signed-off-by: Paul Jackson <pj@sgi.com>
    Cc: Michael Kerrisk <mtk.manpages@googlemail.com>
    Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Paul Jackson authored torvalds committed
  5. devcgroup: fix odd behaviour when writing 'a' to devices.allow

     # cat /devcg/devices.list
     a *:* rwm
     # echo a > devices.allow
     # cat /devcg/devices.list
     a *:* rwm
     a 0:0 rwm
    
    This is odd and maybe confusing.  With this patch, writing 'a' to
    devices.allow will add 'a *:* rwm' to the whitelist.
    
    Also a few fixes and updates to the document.
    
    Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
    Cc: Pavel Emelyanov <xemul@openvz.org>
    Cc: Serge E. Hallyn <serue@us.ibm.com>
    Cc: Paul Menage <menage@google.com>
    Cc: Balbir Singh <balbir@in.ibm.com>
    Cc: James Morris <jmorris@namei.org>
    Cc: Chris Wright <chrisw@sous-sol.org>
    Cc: Stephen Smalley <sds@tycho.nsa.gov>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Li Zefan authored torvalds committed
  6. srajiv

    Update MAINTAINERS file for the TPM device driver

    Acked-By: Debora Velarde <debora@linux.vnet.ibm.com>
    Cc: <zohar@linux.vnet.ibm.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    srajiv authored torvalds committed
  7. mm: switch node meminfo Active & Inactive pages to Kbytes

    There is a bug in the output of /sys/devices/system/node/node[n]/meminfo
    where the Active and Inactive values are in pages instead of Kbytes.
    
    Looks like this occurred back in 2.6.20 when the code was changed
    over to use node_page_state().
    
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    John Blackwood authored torvalds committed
  8. cpumask: introduce new APIs

    In linux-next there is a commit ("x86: Add performance variants of cpumask
    operators") which, as part of the 4096 cpu support work adds some new APIs
    for dealing with cpu masks.  Add trivial versions of these now so that
    subsystems can update in a timely manner and avoid conflicts in linux-next
    and the next merge window.
    
    Cc: Mike Travis <travis@sgi.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Stephen Rothwell authored torvalds committed
  9. olpc: sdhci: add quirk for the Marvell CaFe's interrupt timeout

    The CaFe chip has a hardware bug that ends up with us getting a timeout
    value that's too small, causing the following sorts of problems:
    
    [   60.525138] mmcblk0: error -110 transferring data
    [   60.531477] end_request: I/O error, dev mmcblk0, sector 1484353
    [   60.533371] Buffer I/O error on device mmcblk0p2, logical block 181632
    [   60.533371] lost page write due to I/O error on mmcblk0p2
    
    Presumably this is an off-by-one error in the hardware.  Incrementing
    the timeout count value that we stuff into the TIMEOUT_CONTROL register
    gets us a value that works.  This bug was originally discovered by
    Pierre Ossman, I believe.
    
    [thanks to Robert Millan for proving that this was still a problem]
    
    Signed-off-by: Andres Salomon <dilinger@debian.org>
    Cc: Pierre Ossman <drzeus-list@drzeus.cx>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Andres Salomon authored torvalds committed
  10. olpc: sdhci: add quirk for the Marvell CaFe's vdd/powerup issue

    This has been sitting around unloved for way too long..
    
    The Marvell CaFe chip's SD implementation chokes during card insertion
    if one attempts to set the voltage and power up in the same
    SDHCI_POWER_CONTROL register write.  This adds a quirk that does
    that particular dance in two steps.
    
    It also adds an entry to pci_ids.h for the CaFe chip's SD device.
    
    Signed-off-by: Andres Salomon <dilinger@debian.org>
    Cc: Pierre Ossman <drzeus-list@drzeus.cx>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Andres Salomon authored torvalds committed
  11. Mike Miller

    cciss: read config to obtain max outstanding commands per controller

    This patch changes the way we determine the maximum number of outstanding
    commands for each controller.
    
    Most Smart Array controllers can support up to 1024 commands, the notable
    exceptions are the E200 and E200i.
    
    The next generation of controllers which were just added support a mode of
    operation called Zero Memory Raid (ZMR).  In this mode they only support
    64 outstanding commands.  In Full Function Raid (FFR) mode they support
    1024.
    
    We have been setting the queue depth by arbitrarily assigning some value
    for each controller.  We needed a better way to set the queue depth to
    avoid lots of annoying "fifo full" messages.  So we made the driver a
    little smarter.  We now read the config table and subtract 4 from the
    returned value.  The -4 is to allow some room for ioctl calls which are
    not tracked the same way as io commands are tracked.
    
    Please consider this for inclusion.
    
    Signed-off-by: Mike Miller <mike.miller@hp.com>
    Cc: Jens Axboe <jens.axboe@oracle.com>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    mikem13 authored torvalds committed
  12. Geert Uytterhoeven

    MAINTAINERS: update the email address of Andreas Dilger

    The old one bounces.
    
    Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Andreas Dilger <adilger@sun.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    geertu authored torvalds committed
  13. cpusets: document proc status cpus and mems allowed lists

    Provide a little documentation for the two new fields, Cpus_allowed_list
    and Mems_allowed_list, that were added to each /proc/<pid>/status file a
    while back.
    
    Signed-off-by: Paul Jackson <pj@sgi.com>
    Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
    Cc: Randy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Paul Jackson authored torvalds committed
  14. Alpha Linux kernel fails with inconsistent kallsyms data

    The build of the Alpha Linux kernel currently fails[1] with inconsistent
    kallsyms data.  As I never saw that before, I thought about hardware
    problems.  But in fact it is a bug in the Linux kernel.
    
    The end of the rodata section is marked with the "__end_rodata" symbol.
    This symbol have different aligning constraints than the inittext parts
    and therefor the start marked "_sinittext".  Because of that the
    __end_rodata symbol shifts between < _sinittext and == _sinittext.  The
    later variant is seen as a code symbol and recorded in the kallsyms data.
    
    On fix would be to move the exception table a little bit and get some
    space between that two areas.
    
    [1]: http://buildd.debian.org/fetch.cgi?pkg=linux-2.6&arch=alpha&ver=2.6.25-5&stamp=1213919009&file=log&as=raw
    
    Cc: maximilian attems <max@stro.at>
    Cc: Richard Henderson <rth@twiddle.net>
    Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Bastian Blank authored torvalds committed
  15. security: filesystem capabilities: fix CAP_SETPCAP handling

    The filesystem capability support meaning for CAP_SETPCAP is less powerful
    than the non-filesystem capability support.  As such, when filesystem
    capabilities are configured, we should not permit CAP_SETPCAP to 'enhance'
    the current process through strace manipulation of a child process.
    
    Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
    Acked-by: Serge Hallyn <serue@us.ibm.com>
    Cc: David Howells <dhowells@redhat.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Andrew G. Morgan authored torvalds committed
  16. security: filesystem capabilities: fix fragile setuid fixup code

    This commit includes a bugfix for the fragile setuid fixup code in the
    case that filesystem capabilities are supported (in access()).  The effect
    of this fix is gated on filesystem capability support because changing
    securebits is only supported when filesystem capabilities support is
    configured.)
    
    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
    Acked-by: Serge Hallyn <serue@us.ibm.com>
    Acked-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Andrew G. Morgan authored torvalds committed
  17. doc: doc maintainers

    Maintain the kernel's Documentation/ tree.
    
    This includes tree layout and contents, although not much in terms of new
    content production.  That will usually have to be done by someone familiar
    with the software, at least in some rough form.
    
    Includes review and editorial assistance for people contributing changes
    to /Documentation.
    
    Also includes prodding people for content if something is in need of
    documentation.
    
    Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
    Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Randy Dunlap authored torvalds committed
  18. spi: fix the read path in spidev

    This got broken by the recent "fix rmmod $spi_driver while spidev-user is
    active".  I tested the rmmod & write path but didn't check the read path.
    I am sorry.  The read logic changed and spidev_sync_read() +
    spidev_sync_write() do not return zero on success anymore but the number
    of bytes that has been transfered over the bus.  This patch changes the
    logic and copy_to_user() gets called again.
    
    The write path returns the number of bytes which are written to the
    underlying device what may be less than the requested size.  This patch
    makes the same change to the read path or else we request a read of 20
    bytes, get 10, don't call copy to user and report to the user that we read
    10 bytes.
    
    [akpm@linux-foundation.org: remove test of known-to-be-zero local]
    Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
    Acked-by: David Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Sebastian Siewior authored torvalds committed
  19. cgroups: document the effect of attaching PID 0 to a cgroup

    Document that a pid of zero(0) can be used to refer to the current task
    when attaching a task to a cgroup, as in the following usage:
    
    	# echo 0 > /dev/cgroup/tasks
    
    This is consistent with existing cpuset behavior.
    
    Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
    Acked-by: Paul Jackson <pj@sgi.com>
    Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
    Cc: Paul Menage <menage@google.com>
    Cc: Balbir Singh <balbir@in.ibm.com>
    Cc: Andrea Righi <righi.andrea@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Li Zefan authored torvalds committed
  20. MFD maintainer

    We probably need someone to look after the few drivers/mfd patches coming
    every now and then.  As agreed with Andrew, I'm ok to do so and my
    employer is fine with me spending a few working hours on it, if needed.
    Ben, Philipp, feel free to add your names there too if you wish.
    
    Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
    Cc: "pHilipp Zabel" <philipp.zabel@gmail.com>
    Cc: Ian Molton <spyro@f2s.com>
    Cc: Ben Dooks <ben-linux@fluff.org>
    Cc: Dmitry Baryshkov <dbaryshkov@gmail.com>
    Cc: Russell King <rmk@arm.linux.org.uk>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Samuel Ortiz authored torvalds committed
Something went wrong with that request. Please try again.