1. 02 Jul, 2013 3 commits
  2. 20 May, 2013 1 commit
    • Tom Rini's avatar
      modpost.c: Add .text.unlikely to TEXT_SECTIONS · 06df44ee
      Tom Rini authored
      gcc's places cold functions into the .text.unlikely section and we
      need to check this section as well for section mismatches otherwise we
      may have false negatives for this test.
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-kbuild@vger.kernel.org
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (wording update)
      06df44ee
  3. 16 May, 2013 13 commits
    • Linus Torvalds's avatar
      Merge tag 'pm+acpi-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d5fe85af
      Linus Torvalds authored
      Pull power management and ACPI fixes from Rafael Wysocki:
      
       - intel_pstate driver fixes and cleanups from Dirk Brandewie and Wei
         Yongjun.
      
       - cpufreq fixes related to ARM big.LITTLE support and the cpufreq-cpu0
         driver from Viresh Kumar.
      
       - Assorted cpufreq fixes from Srivatsa S Bhat, Borislav Petkov, Wolfram
         Sang, Alexander Shiyan, and Nishanth Menon.
      
       - Assorted ACPI fixes from Catalin Marinas, Lan Tianyu, Alex Hung,
         Jan-Simon Möller, and Rafael J Wysocki.
      
       - Fix for a kfree() under spinlock in the PM core from Shuah Khan.
      
       - PM documentation updates from Borislav Petkov and Zhang Rui.
      
      * tag 'pm+acpi-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (30 commits)
        cpufreq: Preserve sysfs files across suspend/resume
        ACPI / scan: Fix memory leak on acpi_scan_init_hotplug() error path
        PM / hibernate: Correct documentation
        PM / Documentation: remove inaccurate suspend/hibernate transition lantency statement
        PM: Documentation update for freeze state
        cpufreq / intel_pstate: use vzalloc() instead of vmalloc()/memset(0)
        cpufreq, ondemand: Remove leftover debug line
        PM: Avoid calling kfree() under spinlock in dev_pm_put_subsys_data()
        cpufreq / kirkwood: don't check resource with devm_ioremap_resource
        cpufreq / intel_pstate: remove #ifdef MODULE compile fence
        cpufreq / intel_pstate: Remove idle mode PID
        cpufreq / intel_pstate: fix ffmpeg regression
        cpufreq / intel_pstate: use lowest requested max performance
        cpufreq / intel_pstate: remove idle time and duration from sample and calculations
        cpufreq: Fix incorrect dependecies for ARM SA11xx drivers
        cpufreq: ARM big LITTLE: Fix Kconfig entries
        cpufreq: cpufreq-cpu0: Free parent node for error cases
        cpufreq: cpufreq-cpu0: defer probe when regulator is not ready
        cpufreq: Issue CPUFREQ_GOV_POLICY_EXIT notifier before dropping policy refcount
        cpufreq: governors: Fix CPUFREQ_GOV_POLICY_{INIT|EXIT} notifiers
        ...
      d5fe85af
    • Linus Torvalds's avatar
      Merge tag 'ntb-bugfixes-3.10' of git://github.com/jonmason/ntb · 89682165
      Linus Torvalds authored
      Pull NTB update from Jon Mason:
       "NTB bug fixes to address Smatch/Coverity errors, link toggling bugs,
        and a few corner cases in the driver."
      
      This pull request came in during the merge window, but without any
      signage etc.  So I'm taking it late, because it wasn't _originally_
      late.
      
      * tag 'ntb-bugfixes-3.10' of git://github.com/jonmason/ntb:
        NTB: Multiple NTB client fix
        ntb_netdev: remove from list on exit
        NTB: memcpy lockup workaround
        NTB: Correctly handle receive buffers of the minimal size
        NTB: reset tx_index on link toggle
        NTB: Link toggle memory leak
        NTB: Handle 64bit BAR sizes
        NTB: fix pointer math issues
        ntb: off by one sanity checks
        NTB: variable dereferenced before check
      89682165
    • Linus Torvalds's avatar
      Merge branch 'ipmi' (minor ipmi fixes from Corey) · e2a978ec
      Linus Torvalds authored
      Merge ipmi fixes from Corey Minyard:
       "Some minor fixes I had queued up.  The last one came in recently
        (patch 4) and it and patch 2 are candidates for stable-kernel."
      
      * emailed patches from Corey Minyard <cminyard@mvista.com>:
        ipmi: ipmi_devintf: compat_ioctl method fails to take ipmi_mutex
        ipmi: Improve error messages on failed irq enable
        drivers/char/ipmi: memcpy, need additional 2 bytes to avoid memory overflow
        drivers: char: ipmi: Replaced kmalloc and strcpy with kstrdup
      e2a978ec
    • Benjamin LaHaise's avatar
      ipmi: ipmi_devintf: compat_ioctl method fails to take ipmi_mutex · 6368087e
      Benjamin LaHaise authored
      When a 32 bit version of ipmitool is used on a 64 bit kernel, the
      ipmi_devintf code fails to correctly acquire ipmi_mutex.  This results in
      incomplete data being retrieved in some cases, or other possible failures.
      Add a wrapper around compat_ipmi_ioctl() to take ipmi_mutex to fix this.
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6368087e
    • Corey Minyard's avatar
      ipmi: Improve error messages on failed irq enable · 0849bfec
      Corey Minyard authored
      When the interrupt enable message returns an error, the messages are
      not entirely accurate nor helpful.  So improve them.
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0849bfec
    • Chen Gang's avatar
      drivers/char/ipmi: memcpy, need additional 2 bytes to avoid memory overflow · a5f2b3d6
      Chen Gang authored
      When calling memcpy, read_data and write_data need additional 2 bytes.
      
        write_data:
          for checking:  "if (size > IPMI_MAX_MSG_LENGTH)"
          for operating: "memcpy(bt->write_data + 3, data + 1, size - 1)"
      
        read_data:
          for checking:  "if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH)"
          for operating: "memcpy(data + 2, bt->read_data + 4, msg_len - 2)"
      Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a5f2b3d6
    • Alexandru Gheorghiu's avatar
      drivers: char: ipmi: Replaced kmalloc and strcpy with kstrdup · 1b6b698f
      Alexandru Gheorghiu authored
      Replaced calls to kmalloc followed by strcpy with a sincle call to
      kstrdup.  Patch found using coccinelle.
      Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1b6b698f
    • Linus Torvalds's avatar
      Merge branch 'for-3.10-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 4a007ed9
      Linus Torvalds authored
      Pull workqueue fixes from Tejun Heo:
       "Three more workqueue regression fixes.
      
         - Fix unbalanced unlock in trylock failure path of manage_workers().
           This shouldn't happen often in the wild but is possible.
      
         - While making schedule_work() and friends inline, they become
           unavailable to !GPL modules.  Allow !GPL modules to access basic
           stuff - system_wq and queue_*work_on() - so that schedule_work()
           and friends can be used.
      
         - During boot, the unbound NUMA support code allocates a cpumask for
           each possible node using alloc_cpumask_var_node(), which ends up
           trying to allocate node-specific memory even for offline nodes
           triggering BUG in the memory alloc code.  Use NUMA_NO_NODE for
           offline nodes."
      
      * 'for-3.10-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: don't perform NUMA-aware allocations on offline nodes in wq_numa_init()
        workqueue: Make schedule_work() available again to non GPL modules
        workqueue: correct handling of the pool spin_lock
      4a007ed9
    • Linus Torvalds's avatar
      Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu · ff89acc5
      Linus Torvalds authored
      Pull RCU fixes from Paul McKenney:
       "A couple of fixes for RCU regressions:
      
         - A boneheaded boolean-logic bug that resulted in excessive delays on
           boot, hibernation and suspend that was reported by Borislav Petkov,
           Bjørn Mork, and Joerg Roedel.  The fix inserts a single "!".
      
         - A fix for a boot-time splat due to allocating from bootmem too late
           in boot, fix courtesy of Sasha Levin with additional help from
           Yinghai Lu."
      
      * 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
        rcu: Don't allocate bootmem from rcu_init()
        rcu: Fix comparison sense in rcu_needs_cpu()
      ff89acc5
    • Oleg Nesterov's avatar
      usermodehelper: check subprocess_info->path != NULL · 264b83c0
      Oleg Nesterov authored
      argv_split(empty_or_all_spaces) happily succeeds, it simply returns
      argc == 0 and argv[0] == NULL. Change call_usermodehelper_exec() to
      check sub_info->path != NULL to avoid the crash.
      
      This is the minimal fix, todo:
      
       - perhaps we should change argv_split() to return NULL or change the
         callers.
      
       - kill or justify ->path[0] check
      
       - narrow the scope of helper_lock()
      Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
      Acked-By: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      264b83c0
    • Linus Torvalds's avatar
      Merge branch 'queue' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 5c64e3a4
      Linus Torvalds authored
      Pull target fixes from Nicholas Bellinger:
       "A handful of fixes + minor changes this time around, along with one
        important >= v3.9 regression fix for IBLOCK backends.  The highlights
        include:
      
         - Use FD_MAX_SECTORS in FILEIO for block_device as
           well as files (agrover)
      
         - Fix processing of out-of-order CmdSNs with
           iSBD driver (shlomo)
      
         - Close long-standing target_put_sess_cmd() vs.
           core_tmr_abort_task() race with the addition of
           kref_put_spinlock_irqsave() (joern + greg-kh)
      
         - Fix IBLOCK WCE=1 + DPOFUA=1 backend WRITE
           regression in >= v3.9 (nab + bootc)
      
        Note these four patches are CC'ed to stable.
      
        Also, there is still some work left to be done on the active I/O
        shutdown path in target_wait_for_sess_cmds() used by tcm_qla2xxx +
        ib_isert fabrics that is still being discussed on the list, and will
        hopefully be resolved soon."
      
      * 'queue' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        target: close target_put_sess_cmd() vs. core_tmr_abort_task() race
        target: removed unused transport_state flag
        target/iblock: Fix WCE=1 + DPOFUA=1 backend WRITE regression
        MAINTAINERS: Update target git tree URL
        iscsi-target: Fix typos in RDMAEXTENSIONS macro usage
        target/rd: Add ramdisk bit for NULLIO operation
        iscsi-target: Fix processing of OOO commands
        iscsi-target: Make buf param of iscsit_do_crypto_hash_buf() const void *
        iscsi-target: Fix NULL pointer dereference in iscsit_send_reject
        target: Have dev/enable show if TCM device is configured
        target: Use FD_MAX_SECTORS/FD_BLOCKSIZE for blockdevs using fileio
        target: Remove unused struct members in se_dev_entry
      5c64e3a4
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-fixes' · 49a9e431
      Rafael J. Wysocki authored
      * acpi-fixes:
        ACPI / scan: Fix memory leak on acpi_scan_init_hotplug() error path
      49a9e431
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · e50caa95
      Rafael J. Wysocki authored
      * pm-cpufreq:
        cpufreq: Preserve sysfs files across suspend/resume
      e50caa95
  4. 15 May, 2013 23 commits