23 Aug, 2010

5 commits


22 Aug, 2010

11 commits


21 Aug, 2010

24 commits

  • Like the mlock() change previously, this makes the stack guard check
    code use vma->vm_prev to see what the mapping below the current stack
    is, rather than have to look it up with find_vma().

    Also, accept an abutting stack segment, since that happens naturally if
    you split the stack with mlock or mprotect.

    Tested-by: Ian Campbell
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • If we've split the stack vma, only the lowest one has the guard page.
    Now that we have a doubly linked list of vma's, checking this is trivial.

    Tested-by: Ian Campbell
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • It's a really simple list, and several of the users want to go backwards
    in it to find the previous vma. So rather than have to look up the
    previous entry with 'find_vma_prev()' or something similar, just make it
    doubly linked instead.

    Tested-by: Ian Campbell
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Apparently, the check for a 6-byte ID string introduced by commit
    426c457a3216fac74e3d44dd39729b0689f4c7ab ("mtd: nand: extend NAND flash
    detection to new MLC chips") is NOT sufficient to determine whether or
    not a Samsung chip uses their new MLC detection scheme or the old,
    standard scheme. This adds a condition to check cell type.

    Signed-off-by: Tilman Sauerbeck
    Signed-off-by: Brian Norris
    Signed-off-by: David Woodhouse
    Cc: stable@kernel.org

    Tilman Sauerbeck
     
  • …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, apic: Fix apic=debug boot crash
    x86, hotplug: Serialize CPU hotplug to avoid bringup concurrency issues
    x86-32: Fix dummy trampoline-related inline stubs
    x86-32: Separate 1:1 pagetables from swapper_pg_dir
    x86, cpu: Fix regression in AMD errata checking code

    Linus Torvalds
     
  • This list moved to lists.ozlabs.org quite some time ago.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • All these lists moved to lists.ozlabs.org quite a while ago.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • Chapter 6 is right about mutex_trylock, but chapter 10 wasn't. This error
    was introduced during semaphore-to-mutex conversion of the Unreliable
    guide. :-)

    If user context which performs mutex_lock() or mutex_trylock() is
    preempted by interrupt context which performs mutex_trylock() on the same
    mutex instance, a deadlock occurs. This is because these functions do not
    disable local IRQs when they operate on mutex->wait_lock.

    Signed-off-by: Stefan Richter
    Acked-by: Rusty Russell
    Cc: Matthew Wilcox
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Richter
     
  • gcc-4.0.2:

    drivers/scsi/qla4xxx/ql4_os.c: In function 'qla4_8xxx_error_recovery':
    drivers/scsi/qla4xxx/ql4_glbl.h:135: sorry, unimplemented: inlining failed in call to 'qla4_8xxx_set_drv_active': function body not available
    drivers/scsi/qla4xxx/ql4_os.c:2377: sorry, unimplemented: called from here
    drivers/scsi/qla4xxx/ql4_glbl.h:135: sorry, unimplemented: inlining failed in call to 'qla4_8xxx_set_drv_active': function body not available
    drivers/scsi/qla4xxx/ql4_os.c:2393: sorry, unimplemented: called from here

    Cc: Ravi Anand
    Cc: Vikas Chaudhary
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Fix uml compile error:

    include/linux/dma-mapping.h:145: error: redefinition of 'dma_get_cache_alignment'
    arch/um/include/asm/dma-mapping.h:99: note: previous definition of 'dma_get_cache_alignment' was here

    Introduced by commit 4565f0170dfc ("dma-mapping: unify
    dma_get_cache_alignment implementations")

    Signed-off-by: Miklos Szeredi
    Cc: Jeff Dike
    Cc: FUJITA Tomonori
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miklos Szeredi
     
  • dump_tasks() needs to hold the RCU read lock around its access of the
    target task's UID. To this end it should use task_uid() as it only needs
    that one thing from the creds.

    The fact that dump_tasks() holds tasklist_lock is insufficient to prevent the
    target process replacing its credentials on another CPU.

    Then, this patch change to call rcu_read_lock() explicitly.

    ===================================================
    [ INFO: suspicious rcu_dereference_check() usage. ]
    ---------------------------------------------------
    mm/oom_kill.c:410 invoked rcu_dereference_check() without protection!

    other info that might help us debug this:

    rcu_scheduler_active = 1, debug_locks = 1
    4 locks held by kworker/1:2/651:
    #0: (events){+.+.+.}, at: []
    process_one_work+0x137/0x4a0
    #1: (moom_work){+.+...}, at: []
    process_one_work+0x137/0x4a0
    #2: (tasklist_lock){.+.+..}, at: []
    out_of_memory+0x164/0x3f0
    #3: (&(&p->alloc_lock)->rlock){+.+...}, at: []
    find_lock_task_mm+0x2e/0x70

    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: David Howells
    Acked-by: Paul E. McKenney
    Acked-by: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • Commit 0aad4b3124 ("oom: fold __out_of_memory into out_of_memory")
    introduced a tasklist_lock leak. Then it caused following obvious
    danger warnings and panic.

    ================================================
    [ BUG: lock held when returning to user space! ]
    ------------------------------------------------
    rsyslogd/1422 is leaving the kernel with locks still held!
    1 lock held by rsyslogd/1422:
    #0: (tasklist_lock){.+.+.+}, at: [] out_of_memory+0x164/0x3f0
    BUG: scheduling while atomic: rsyslogd/1422/0x00000002
    INFO: lockdep is turned off.

    This patch fixes it.

    Signed-off-by: KOSAKI Motohiro
    Reviewed-by: Minchan Kim
    Acked-by: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • Commit b940fd7035 ("oom: remove unnecessary code and cleanup") added an
    unnecessary NULL pointer dereference. remove it.

    Signed-off-by: KOSAKI Motohiro
    Reviewed-by: Minchan Kim
    Acked-by: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • There's some merge problem between sdhic core and sdhci-s3c host. After
    mutex is changed to spinlock. It needs to use use spin lock functions and
    use the correct card detection function.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • Some SDHCI controllers like s5pc110 don't have an HISPD bit in the HOSTCTL
    register.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • s5pc110 (aka s5pv210) uses the same SDHCI IP.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • Each board can override the default sdhci host capabilities.
    Some board has broken features by hardwares and support 8-bit bandwidth.

    Signed-off-by: Kyungmin Park
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyungmin Park
     
  • When radix_tree_maxindex() is ~0UL, it can happen that scanning overflows
    index and tree traversal code goes astray reading memory until it hits
    unreadable memory. Check for overflow and exit in that case.

    Signed-off-by: Jan Kara
    Cc: Christoph Hellwig
    Cc: Nick Piggin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kara
     
  • Revert commit 7721fea3d0fd93fb4d000eb737b444369358d6d3 ("hwmon:
    f71882fg: add support for the Fintek F71808E").

    Hans said:

    : A second review after I've received a data sheet for this device from
    : Fintek has turned up a few bugs.
    :
    : Unfortunately Giel (nor I) have time to fix this in time for the 2.6.36
    : cycle. Therefor I would like to see this patch reverted as not having any
    : support for the hwmon function of this superio chip is better then having
    : unreliable support.

    Cc: Giel van Schijndel
    Cc: Jean Delvare
    Cc: Hans de Goede
    Cc: Jonathan Cameron
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Provide a check in all the kfifo examples to validate the correct
    execution of each testcase.

    Signed-off-by: Andrea Righi
    Acked-by: Stefani Seibold
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Righi
     
  • We use a dynamically allocated kfifo in the dma example, so we need to
    free it when unloading the module.

    Signed-off-by: Andrea Righi
    Acked-by: Stefani Seibold
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Righi
     
  • The scatterlist is used uninitialized in kfifo_dma_in_prepare(). This
    triggers the following bug if CONFIG_DEBUG_SG=y:

    ------------[ cut here ]------------
    kernel BUG at include/linux/scatterlist.h:65!
    invalid opcode: 0000 [#1] PREEMPT SMP
    ...
    Call Trace:
    [] setup_sgl+0x6b/0xe0
    [] ? example_init+0x0/0x265 [dma_example]
    [] __kfifo_dma_in_prepare+0x21/0x30
    [] example_init+0x124/0x265 [dma_example]
    [] ? trace_module_notify+0x25/0x370
    [] ? free_pages_prepare+0x11e/0x1e0
    [] ? get_parent_ip+0x11/0x50
    [] ? trace_module_notify+0x25/0x370
    [] ? trace_hardirqs_on+0xd/0x10
    [] ? mutex_unlock+0xe/0x10
    [] ? trace_module_notify+0x41/0x370
    [] ? __blocking_notifier_call_chain+0x45/0x80
    [] ? vfree+0x2a/0x30
    [] ? up_read+0x23/0x40
    [] ? __blocking_notifier_call_chain+0x65/0x80
    [] do_one_initcall+0x43/0x180
    [] sys_init_module+0xba/0x200
    [] system_call_fastpath+0x16/0x1b
    RIP [] setup_sgl_buf+0x1a1/0x1b0
    RSP
    ---[ end trace a72b979fd3c1d3a5 ]---

    Add the proper initialization to avoid the bug.

    Signed-off-by: Andrea Righi
    Acked-by: Stefani Seibold
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Righi
     
  • Provide a static array of expected items that kfifo should contain at the
    end of the test to validate it.

    Signed-off-by: Andrea Righi
    Cc: Stefani Seibold
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Righi
     
  • Add a testcase for kfifo_skip() to the byte stream fifo example.

    Signed-off-by: Andrea Righi
    Cc: Greg KH
    Acked-by: Stefani Seibold
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Righi