18 Dec, 2007

40 commits

  • Since sparse_index_alloc() can return NULL on memory allocation failure,
    we must deal with the failure condition when calling it.

    Signed-off-by: WANG Cong
    Cc: Christoph Lameter
    Cc: Rik van Riel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong
     
  • Ingo hit some BUG_ONs that were probably caused by these missing unlocks
    causing an unbalance. He couldn't reproduce the bug reliably, so it's
    unknown that it's definitly fixing the problem he hit, but it's a fairly
    good chance, and this fixes an obvious bug.

    [ Dave: "Ingo followed up that he hit some lockdep related output with
    this applied, so it may not be right. I'll look at it after
    xmas if no-one has it figured out before then."
    Akpm: "It looks pretty correct to me though." ]

    Signed-off-by: Dave Jones
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • This fixes some of the alpha-specific build problems, except a) modpost
    warning about COMMON symbol "saved_config" and b) nasty final link
    failure with gcc-4.x, -Os and scsi-disk driver configured built-in
    (due to jump table in .rodata referencing discarded .exit.text).

    - build failure with gcc-4.2.x: fix up casts in cia_io* routines to avoid
    warnings ('discards qualifiers from pointer target type'), which are
    failures, thanks to -Werror;
    - modpost warnings: add missing __init qualifier for titan and marvel;
    for non-generic build, move machine vectors from .data to .data.init.refok
    section;
    - unbreak CPU-specific optimization: rearrange cpuflags-y assignments
    so that extended -mcpu value (ev56, pca56, ev67) overrides basic
    one (ev5, ev6) and not vice versa.

    Signed-off-by: Ivan Kokshaysky
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ivan Kokshaysky
     
  • As it turns out, the kernel divides by EXT3_INODES_PER_GROUP(s) when
    mounting an ext3 filesystem. If that number is zero, a crash follows.
    Below a patch.

    This crash was reported by Joeri de Ruiter, Carst Tankink and Pim Vullers.

    Cc:
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andries E. Brouwer
     
  • This was introduced in 4af8e944c22d8af92a7548354a9567250cc1a782

    Signed-off-by: Uwe Kleine-König
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • SPARSEMEM_VMEMMAP needs to be a selectable config option to support
    building the kernel both with and without sparsemem vmemmap support. This
    selection is desirable for platforms which could be configured one way for
    platform specific builds and the other for multi-platform builds.

    Signed-off-by: Miguel Botón
    Signed-off-by: Geoff Levand
    Acked-by: Yasunori Goto
    Cc: Christoph Lameter
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geoff Levand
     
  • Share net is not supported, Rusty is an "idiot" .

    Signed-off-by: Sheela Sequeira
    Reviewed-by: James Morris
    Acked-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sheela
     
  • ecryptfs_destroy_mount_crypt_stat() checks whether each
    auth_tok->global_auth_tok_key is nonzero and if so puts that key. However,
    in some early mount error paths nothing has initialized the pointer, and we
    try to key_put() garbage. Running the bad cipher tests in the testsuite
    exposes this, and it's happy with the following change.

    Signed-off-by: Eric Sandeen
    Cc: Michael Halcrow
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sandeen
     
  • While auditing proc_doulongvec_ms_jiffies_minmax() usage in kernel, I found
    a bug in drivers/parport/procfs.c, incorrectly using sizeof(int) instead of
    sizeof(unsigned long)

    Only 64bit arches are affected by this old bug.

    Signed-off-by: Eric Dumazet
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Dumazet
     
  • Reorder at32_rtc_probe() so that it's safe (no oopsing) to fire the
    IRQ handler the instant that it's registered. (Bug noted via "Debug
    shared IRQ handlers" kernel debug option.)

    Signed-off-by: David Brownell
    Cc: Alessandro Zummo
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • First of all, thanks to Bob Tracy and
    Michael Cree for testing.
    Especially to Bob, as he has done titanic multi-day git-bisect
    work that finally helped to reproduce and nail down the bug
    (http://bugzilla.kernel.org/show_bug.cgi?id=9457).

    [ev6-]stxncpy.S: it's t12, not t2 register that is supposed to contain
    the last byte offset upon return. As a result of wrong register use
    (which was my fault back in 2003, IIRC), under some circumstances extra
    terminating zero bytes were added to destination string. This particularly
    led to incorrect DEVPATH strings generated in uevent and therefore to udev
    problems.

    strncpy.S: unrelated bug I found while testing the above fix - destination
    is not properly zero-padded then a byte count exceeds source length.
    Actually this is addition to strncpy fix from last year.

    Signed-off-by: Ivan Kokshaysky
    Cc: Richard Henderson
    Cc: Bob Tracy
    Cc: Michael Cree
    Cc: Kay Sievers
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ivan Kokshaysky
     
  • Sometimes when UML is debugged gdb miss breakpoints.

    When process traced by gdb do fork, debugger remove breakpoints from
    child address space. There is possibility to trace more than one fork,
    but this not work with UML, I guess (only guess) there is a deadlock -
    gdb waits for UML and UML waits for gdb.

    When clone() is called with SIGCHLD and CLONE_VM flags, gdb see this
    as PTRACE_EVENT_FORK not as PTRACE_EVENT_CLONE and remove breakpoints
    from child and at the same time from traced process, because either
    have the same address space.

    Maybe it is possible to do fix in gdb, but I'm not sure if there is
    easy way to find out if traced and child processes share memory. So I
    do fix for UML, it simply do not call clone() with both SIGCHLD and
    CLONE_VM flags together. Additionally __WALL flag is used for
    waitpid() to assure not miss clone and normal process events.

    [ jdike - checkpatch fixes ]

    Signed-off-by: Stanislaw Gruszka
    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stanislaw Gruszka
     
  • Revert commit efa4d2fb047b25a6be67fe92178a2a78da6b3f6a ("Hibernation:
    Use temporary page tables for kernel text mapping on x86_64") because it
    causes my t61p to reboot right at the end of resume-from-disk. For
    reasons unknown at this time.

    Cc: Pavel Machek
    Cc: Andi Kleen
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Acked-by: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • make[3]: *** No rule to make target `/usr/src/devel/include/linux/ticable.h', needed by `/usr/src/devel/usr/include/linux/ticable.h'. Stop.

    Signed-off-by: Andrew Morton
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • * git://git.linux-nfs.org/pub/linux/nfs-2.6:
    MAINTAINERS: update the NFS CLIENT entry
    NFS: Fix an Oops in NFS unmount
    Revert "NFS: Ensure we return zero if applications attempt to write zero bytes"
    SUNRPC xprtrdma: fix XDR tail buf marshalling for all ops
    NFSv2/v3: Fix a memory leak when using -onolock
    NFS: Fix NFS mountpoint crossing...

    Linus Torvalds
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
    ocfs2: Re-journal buffers after transaction extend
    ocfs2: Allow for debugging of transaction extends
    ocfs2: Don't panic when truncating an empty extent
    ocfs2: fix exit-while-locked bug in ocfs2_queue_orphans()

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6:
    PCI: Restore PCI expansion ROM P2P prefetch window creation

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
    HOWTO: update misspelling and word incorrected
    add stable_api_nonsense.txt in korean
    HOWTO: change addresses of maintainer and lxr url for Korean HOWTO
    Add Documentation for FAIR_USER_SCHED sysfs files
    HOWTO: Change man-page maintainer address for Japanese HOWTO
    tipar: remove obsolete module
    kobject: fix the documentation of how kobject_set_name works

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: revert portions of "UNUSUAL_DEV: Sync up some reported devices from Ubuntu"
    usb: Remove broken optimisation in OHCI IRQ handler
    USB: at91_udc: correct hanging while disconnecting usb cable
    USB: use IRQF_DISABLED for HCD interrupt handlers
    USB: fix locking loop by avoiding flush_scheduled_work
    usb.h: fix kernel-doc warning
    USB: option: Bind to the correct interface of the Huawei E220
    USB: cp2101: new device id
    usb-storage: Fix devices that cannot handle 32k transfers
    USB: sierra: fix product id

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    ide: fix ->io_32bit race in set_io_32bit()
    ide: remove stale changelog from ide-probe.c
    ide: remove stale changelog from ide-disk.c
    ide: remove dead code from __ide_dma_test_irq()
    hpt366: fix HPT37x PIO mode timings (take 2)
    pdc202xx_new: fix Promise TX4 support
    ide-cd: remove dead post_transform_command()
    ide: DMA reporting and validity checking fixes (take 3)
    ide: add /sys/bus/ide/devices/*/{model,firmware,serial} sysfs entries
    ide: coding style fixes for drivers/ide/setup-pci.c
    ide: fix ide_scan_pcibus() error message
    ide: deprecate CONFIG_BLK_DEV_OFFBOARD
    ide: add missing checks for control register existence
    ide-scsi: add ide_scsi_hex_dump() helper

    Linus Torvalds
     
  • ocfs2_extend_trans() might call journal_restart() which will commit dirty
    buffers and then restart the transaction. This means that any buffers which
    still need changes should be passed to journal_access() again. Some paths
    during extend weren't doing this right.

    Signed-off-by: Mark Fasheh

    Mark Fasheh
     
  • The nastiest cases of transaction extends are also the rarest. We can expose
    them more quickly at the expense of performance by going straight to the
    journal_restart() in ocfs2_extend_trans(). Wrap things in OCFS2_DEBUG_FS so
    that we only do this when "expensive debugging" is turned on.

    Signed-off-by: Mark Fasheh

    Mark Fasheh
     
  • This BUG_ON() was unintentionally left in after the sparse file support was
    written.

    Signed-off-by: Mark Fasheh

    Mark Fasheh
     
  • We're holding the cluster lock when a failure might happen in
    ocfs2_dir_foreach() so it needs to be released.

    Signed-off-by: Mark Fasheh

    Mark Fasheh
     
  • This reverts one change from 67fa10627ec0d8aa16f1cf38cf527e67d8097d3c
    that prevented userspace from seing the "driver disk" lun in a san disk
    device. The kernel shouldn't do this, it's up to userspace to handle
    this properly, if it somehow wants to filter this away.

    Cc: Ben Collins
    Cc: Alan Stern
    Cc: Phil Dibowitz
    Cc: Kyle McMartin
    Cc: Matthew Dharm
    Cc: Hans de Goede
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • The OHCI IRQ handler has an optimisation that avoids reading some
    chip registers when the controller reports that the interrupt was
    triggered *only* because completed requests were written into the
    controller's "done list" and handed to the host.

    This mechanism can't be used on some controllers. Among others, it
    fails for the SA1111 and the AMCC 440EP PowerPC processor.

    This patch removes the optimisation and makes the code clearer.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Benjamin Herrenschmidt
     
  • Correct hanging while disconnecting the USB device cable. Prevent a race
    between vbus and UDP interrupts. This bug was tracked on at91sam9260ek
    boards.

    A usb resume interrupt was firing after the vbus interrupt : the IP was
    then already stoped and not able to deal with it (no more clock). A simple
    interrupt disabling is ok as the "end of bus reset" irq is non maskable and
    ok to resume the USB device IP.

    Signed-off-by: Nicolas Ferre
    Acked-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Nicolas Ferre
     
  • Host controller IRQs are supposed to be serviced with interrupts
    disabled. This patch (as1026) adds an IRQF_DISABLED flag to all the
    controller drivers that lack it. It also replaces the
    spin_lock_irqsave() and spin_unlock_irqrestore() calls in uhci_irq()
    with simple spin_lock() and spin_unlock().

    This fixes Bugzilla #9335.

    Signed-off-by: Alan Stern
    Acked-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1027) replaces a call to flush_scheduled_work() -- a
    dangerous routine to invoke, especially while holding any sort of lock
    -- with calls to cancel_work_sync() and cancel_delayed_work_sync().

    This fixes Bugzilla #9532.

    Signed-off-by: Alan Stern
    CC: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Fix kernel-doc warning in usb.h:
    Warning(linux-2.6.24-rc3-git7//include/linux/usb.h:166): No description found for parameter 'sysfs_files_created'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • This fixes a bunch of problems we are having with the Huawei devices...

    Signed-off-by: Oliver Neukum
    Signed-off-by: Jaime Velasco Juan
    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Jaime Velasco Juan
     
  • This adds a device ID for the Aerocomm Radio Modem, which uses the
    cp2102. I'm sure changing num_bulk_in/num_bulk_out to NUM_DONT_CARE
    is the wrong fix, but this is the only device I have with a cp2102,
    so I have no idea what a good global value would be, if there is one.
    Zero didn't work with this device.

    From: Jeff Long
    Signed-off-by: Greg Kroah-Hartman

    Jeff Long
     
  • When a device cannot handle the smallest previously limited transfer
    size (64 blocks) without stalling, limit the device to the amount of
    packets that fit in a platform native page.

    The lowest possible limit is PAGE_CACHE_SIZE, so if the device is ever
    used on a platform that has larger than 8K pages, you lose unless you
    can convince the device firmware folks to fix the issue.

    Cc: Mathew Dharm
    Cc: Alan Stern
    Cc: Pete Zaitcev
    Signed-off-by: Doug Maxey
    Signed-off-by: Greg Kroah-Hartman

    Doug Maxey
     
  • Attached is a patch to fix the addition of the new product ids I sent.

    It is against 2.6.24-rc4, as Linus included the broken version of the
    patch I sent you in that tree. :(

    Not sure if this is the right method to go about this, but hopefully I got
    it right this time.

    Signed-off-by: Andrew Gilmore
    CC: Kevin Lloyd
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    agilmore@wirelessbeehive.com
     
  • Restore PCI expansion ROM P2P prefetch window creation.

    This patch reverts previous "Avoid creating P2P prefetch
    window for expansion ROMs" change due to regressions that
    were spotted on some systems.

    Signed-off-by: Gary Hade
    Signed-off-by: Greg Kroah-Hartman

    Gary Hade
     
  • Signed-off-by: barrios
    Signed-off-by: Greg Kroah-Hartman

    barrios
     
  • Signed-off-by: barrios
    Signed-off-by: Greg Kroah-Hartman

    barrios
     
  • So sorry. again My mail is set with EUC-kR.
    I'll resend with UTF-8.

    Signed-off-by: barrios
    Signed-off-by: Greg Kroah-Hartman

    minchan kim
     
  • This patch adds documentation about /sys/kernel/uids//cpu_share
    to Documentation/ABI.

    Signed-off-by: Dhaval Giani
    Cc: Ingo Molnar
    Signed-off-by: Greg Kroah-Hartman

    Dhaval Giani
     
  • Below is a patch to change email address of man-page maintainer for
    Japanese HOWTO document (Documentation/ja_JP/HOWTO).
    This is for sync to Documentation/HOWTO that Michael Kerrisk mentioned
    to me.

    From: Tsugikazu Shibata
    Signed-off-by: Greg Kroah-Hartman

    Tsugikazu Shibata