Skip to content
  1. Jul 12, 2012
  2. Jul 11, 2012
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-v3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · 055c9fa8
      Linus Torvalds authored
      Pull GPIO fixes from Linus Walleij:
       "Yes, this is a *LATE* GPIO pull request with fixes for v3.5.
      
        Grant moved across the planet and accidentally fell off the grid, so
        he asked me to take over the GPIO merges for a while 10 days ago.
      
        Since then I went over the archives and collected this pile of fixes,
        and pulled two of them from the TI maintainer Kevin Hilman.  Then
        waited for them to at least hit linux-next once or twice."
      
      GPIO fixes for v3.5:
       - Invalid context restore on bank 0 for OMAP driver in runtime
         suspend/resume cycle
       - Check for NULL platform data in sta-2x11 driver
       - Constrain selection of the V1 MSM GPIO driver to applicable platforms
         (Kconfig issue)
       - Make sure the correct output value is set in the wm8994 driver
       - Export devm_gpio_request_one() so it can be used in modules.
         Apparently some in-kernel modules can be configured to use this
         leading to breakage.
       - Check that the GPIO is valid in the lantiq driver
       - Fix the flag bits introduced for v3.5, so they don't overlap
       - Fix a device tree intialization bug for imx21-compatible devices
       - Carry over the OF node to the TPS65910 GPIO chip struct
      
      * tag 'fixes-for-v3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        gpio: tps65910: initialize of_node of gpio_chip
        gpio/mxc: make irqs work for fsl,imx21-gpio devices
        gpio: fix bits conflict for gpio flags
        mips: pci-lantiq: Fix check for valid gpio
        gpio: export devm_gpio_request_one
        gpiolib: wm8994: Pay attention to the value set when enabling as output
        gpio/msm_v1: CONFIG_GPIO_MSM_V1 is only available on three SoCs
        gpio-sta2x11: don't use pdata if null
        gpio/omap: fix invalid context restore of gpio bank-0
        gpio/omap: fix irq loss while in idle with debounce on
      055c9fa8
    • Linus Torvalds's avatar
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 310959e8
      Linus Torvalds authored
      Pull powerpc fixes from Benjamin Herrenschmidt:
       "It looks like my rewrite of our lazy irq scheme is still exposing
        "interesting" issues left and right.  The previous fixes are now
        causing an occasional BUG_ON to trigger (which this patch turns into a
        WARN_ON while at it), due to another issue of disconnect of the lazy
        irq state vs the processor state in the idle loop on pseries and
        cell.
      
        This should fix it properly once for all moving the nasty code to a
        common helper function.
      
        There's also couple more fixes for some debug stuff that didn't build
        (and helped resolving those problems so it's worth having), along with
        a compile fix for newer gcc's."
      
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        tty/hvc_opal: Fix debug function name
        powerpc/numa: Avoid stupid uninitialized warning from gcc
        powerpc: Fix build of some debug irq code
        powerpc: More fixes for lazy IRQ vs. idle
      310959e8
    • Linus Torvalds's avatar
      Revert "of: match by compatible property first" · bc51b0c2
      Linus Torvalds authored
      This reverts commit 107a84e6.
      
      Meelis Roos reports a regression since 3.5-rc5 that stops Sun Fire V100
      and Sun Netra X1 sparc64 machines from booting, hanging after enabling
      serial console.  He bisected it to commit 107a84e6
      
      .
      
      Rob Herring explains:
       "The problem is match combinations of compatible plus name and/or type
        fail to match correctly.  I have a fix for this, but given how late it
        is for 3.5 I think it is best to revert this for now.  There could be
        other cases that rely on the current although wrong behavior.  I will
        post an updated version for 3.6."
      
      Bisected-and-reported-by: default avatarMeelis Roos <mroos@linux.ee>
      Requested-by: default avatarRob Herring <rob.herring@calxeda.com>
      Cc: Thierry Reding <thierry.reding@avionic-design.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bc51b0c2
  3. Jul 10, 2012
    • Benjamin Herrenschmidt's avatar
      tty/hvc_opal: Fix debug function name · 50fb31cf
      Benjamin Herrenschmidt authored
      
      
      udbg_init_debug_opal() should be udbg_init_debug_opal_raw() as
      the caller in arch/powerpc/kernel/udbg.c expects
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      50fb31cf
    • Benjamin Herrenschmidt's avatar
      powerpc/numa: Avoid stupid uninitialized warning from gcc · aa709f3b
      Benjamin Herrenschmidt authored
      
      
      Newer gcc are being a bit blind here (it's pretty obvious we don't
      reach the code path using the array if we haven't initialized the
      pointer) but none of that is performance critical so let's just
      silence it.
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      aa709f3b
    • Benjamin Herrenschmidt's avatar
      powerpc: Fix build of some debug irq code · 21b2de34
      Benjamin Herrenschmidt authored
      
      
      There was a typo, checking for CONFIG_TRACE_IRQFLAG instead of
      CONFIG_TRACE_IRQFLAGS causing some useful debug code to not be
      built
      
      This in turns causes a build error on BookE 64-bit due to incorrect
      semicolons at the end of a couple of macros, so let's fix that too
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: stable@vger.kernel.org [v3.4]
      21b2de34
    • Benjamin Herrenschmidt's avatar
      powerpc: More fixes for lazy IRQ vs. idle · be2cf20a
      Benjamin Herrenschmidt authored
      
      
      Looks like we still have issues with pSeries and Cell idle code
      vs. the lazy irq state. In fact, the reset fixes that went upstream
      are exposing the problem more by causing BUG_ON() to trigger (which
      this patch turns into a WARN_ON instead).
      
      We need to be careful when using a variant of low power state that
      has the side effect of turning interrupts back on, to properly set
      all the SW & lazy state to look as if everything is enabled before
      we enter the low power state with MSR:EE off as we will return with
      MSR:EE on. If not, we have a discrepancy of state which can cause
      things to go very wrong later on.
      
      This patch moves the logic into a helper and uses it from the
      pseries and cell idle code. The power4/970 idle code already got
      things right (in assembly even !) so I'm not touching it. The power7
      "bare metal" idle code is subtly different and correct. Remains PA6T
      and some hypervisor based Cell platforms which have questionable
      code in there, but they are mostly dead platforms so I'll fix them
      when I manage to get final answers from the respective maintainers
      about how the low power state actually works on them.
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: stable@vger.kernel.org [v3.4]
      be2cf20a
    • Linus Torvalds's avatar
      Merge tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · 2437fccf
      Linus Torvalds authored
      Pull regulator fix from Mark Brown:
       "A smallish fix for a lock dependency issue which affects a bunch of
        Qualcomm boards that do unusually complicated things with their
        regulators, the API is unlikely to be called by any other system."
      
      * tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: Fix recursive mutex lockdep warning
      2437fccf
    • Hans de Goede's avatar
      gspca_sn9c20x: Fix NULL pointer dereference · 6c6ee53c
      Hans de Goede authored
      
      
      Don't call v4l2_ctrl_g_ctrl on ctrls which the model cam in question
      does not have.
      
      Reported-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      [ Taken directly, since Mauro is on vacation ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6c6ee53c
    • Linus Torvalds's avatar
      Merge tag 'virtio-for-linus' of... · c5e43b83
      Linus Torvalds authored
      Merge tag 'virtio-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
      
      Pull minor virtio-balloon fix from Rusty Russell:
       "Theoretical fix, which greatly simplifies upcoming balloon patches
        which will go in via some vm tree."
      
      * tag 'virtio-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
        virtio-balloon: fix add/get API use
      c5e43b83
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/rpmsg · 6f5410b6
      Linus Torvalds authored
      Pull rpmsg fixes from Ohad Ben-Cohen:
       "Fixing two (somewhat rare) endpoint-related race issues, both of which
        were reported by Fernando Guzman Lugo."
      
      * tag 'rpmsg-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/rpmsg:
        rpmsg: make sure inflight messages don't invoke just-removed callbacks
        rpmsg: avoid premature deallocation of endpoints
      6f5410b6
    • Linus Torvalds's avatar
      Merge tag 'remoteproc-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc · 84836bf9
      Linus Torvalds authored
      Pull remoteproc fixes from Ohad Ben-Cohen:
       "Two build-related remoteproc fixes for 3.5."
      
      * tag 'remoteproc-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc:
        remoteproc: fix missing CONFIG_FW_LOADER configurations
        remoteproc/omap: fix randconfig unmet direct dependencies
      84836bf9
    • Linus Torvalds's avatar
      Merge tag 'hwspinlock-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/hwspinlock · 17cda208
      Linus Torvalds authored
      Pull hwspinlock fix from Ohad Ben-Cohen:
       "A single hwspinlock core fix for multiple hwspinlock devices
        scenarios, from Shinya Kuribayashi."
      
      * tag 'hwspinlock-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/hwspinlock:
        hwspinlock/core: use global ID to register hwspinlocks on multiple devices
      17cda208
    • Linus Walleij's avatar
      Merge branch 'kevin' into fixes · 46bada60
      Linus Walleij authored
      46bada60
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v3.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 17fae1cd
      Linus Torvalds authored
      Pull IOMMU fixes from Joerg Roedel:
       "The patches fix several issues in the AMD IOMMU driver, the NVidia
        SMMU driver, and the DMA debug code.
      
        The most important fix for the AMD IOMMU solves a problem with SR-IOV
        devices where virtual functions did not work with IOMMU enabled.  The
        NVidia SMMU patch fixes a possible sleep while spin-lock situation
        (queued the small fix for v3.5, a better but more intrusive fix is
        coming for v3.6).  The DMA debug patches fix a possible data
        corruption issue due to bool vs u32 usage."
      
      * tag 'iommu-fixes-v3.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu/amd: fix type bug in flush code
        dma-debug: debugfs_create_bool() takes a u32 pointer
        iommu/tegra: smmu: Fix unsleepable memory allocation
        iommu/amd: Initialize dma_ops for hotplug and sriov devices
        iommu/amd: Fix missing iommu_shutdown initialization in passthrough mode
      17fae1cd
  4. Jul 09, 2012
    • Michael S. Tsirkin's avatar
      virtio-balloon: fix add/get API use · 9c378abc
      Michael S. Tsirkin authored
      Since ee7cd898
      
       'virtio: expose added
      descriptors immediately.', in virtio balloon virtqueue_get_buf might
      now run concurrently with virtqueue_kick.  I audited both and this
      seems safe in practice but this is not guaranteed by the API.
      Additionally, a spurious interrupt might in theory make
      virtqueue_get_buf run in parallel with virtqueue_add_buf, which is
      racy.
      
      While we might try to protect against spurious callbacks it's
      easier to fix the driver: balloon seems to be the only one
      (mis)using the API like this, so let's just fix balloon.
      
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (removed unused var)
      9c378abc
    • Linus Torvalds's avatar
      Merge branch 'for-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 8c84bf41
      Linus Torvalds authored
      Pull cgroup fixes from Tejun Heo:
       "The previous cgroup pull request contained a patch to fix a race
        condition during cgroup hierarchy umount.  Unfortunately, while the
        patch reduced the race window such that the test case I and Sasha were
        using didn't trigger it anymore, it wasn't complete - Shyju and Li
        could reliably trigger the race condition using a different test case.
      
        The problem wasn't the gap between dentry deletion and release which
        the previous patch tried to fix.  The window was between the last
        dput() of a root's child and the resulting dput() of the root.  For
        cgroup dentries, the deletion and release always happen synchronously.
        As this releases the s_active ref, the refcnt of the root dentry,
        which doesn't hold s_active, stays above zero without the
        corresponding s_active.  If umount was in progress, the last
        deactivate_super() proceeds to destory the superblock and triggers
        BUG() on the non-zero root dentry refcnt after shrinking.
      
        This issue surfaced because cgroup dentries are now allowed to linger
        after rmdir(2) since 3.5-rc1.  Before, rmdir synchronously drained the
        dentry refcnt and the s_active acquired by rmdir from vfs layer
        protected the whole thing.  After 3.5-rc1, cgroup may internally hold
        and put dentry refs after rmdir finishes and the delayed dput()
        doesn't have surrounding s_active ref exposing this issue.
      
        This pull request contains two patches - one reverting the previous
        incorrect fix and the other adding the surrounding s_active ref around
        the delayed dput().
      
        This is quite late in the release cycle but the change is on the safer
        side and fixes the test cases reliably, so I don't think it's too
        crazy."
      
      * 'for-3.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: fix cgroup hierarchy umount race
        Revert "cgroup: superblock can't be released with active dentries"
      8c84bf41
  5. Jul 08, 2012
    • Linus Torvalds's avatar
      Linux 3.5-rc6 · bd0a521e
      Linus Torvalds authored
      bd0a521e
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · a0127afb
      Linus Torvalds authored
      Pull security docs update from James Morris.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        security: Minor improvements to no_new_privs documentation
      a0127afb
    • Linus Torvalds's avatar
      vfs: make O_PATH file descriptors usable for 'fchdir()' · 332a2e12
      Linus Torvalds authored
      
      
      We already use them for openat() and friends, but fchdir() also wants to
      be able to use O_PATH file descriptors.  This should make it comparable
      to the O_SEARCH of Solaris.  In particular, O_PATH allows you to access
      (not-quite-open) a directory you don't have read persmission to, only
      execute permission.
      
      Noticed during development of multithread support for ksh93.
      
      Reported-by: default avatarольга крыжановская <olga.kryzhanovska@gmail.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: stable@kernel.org    # O_PATH introduced in 3.0+
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      332a2e12
    • Tejun Heo's avatar
      cgroup: fix cgroup hierarchy umount race · 5db9a4d9
      Tejun Heo authored
      48ddbe19 "cgroup: make css->refcnt clearing on cgroup removal
      optional" allowed a css to linger after the associated cgroup is
      removed.  As a css holds a reference on the cgroup's dentry, it means
      that cgroup dentries may linger for a while.
      
      Destroying a superblock which has dentries with positive refcnts is a
      critical bug and triggers BUG() in vfs code.  As each cgroup dentry
      holds an s_active reference, any lingering cgroup has both its dentry
      and the superblock pinned and thus preventing premature release of
      superblock.
      
      Unfortunately, after 48ddbe19, there's a small window while
      releasing a cgroup which is directly under the root of the hierarchy.
      When a cgroup directory is released, vfs layer first deletes the
      corresponding dentry and then invokes dput() on the parent, which may
      recurse further, so when a cgroup directly below root cgroup is
      released, the cgroup is first destroyed - which releases the s_active
      it was holding - and then the dentry for the root cgroup is dput().
      
      This creates a window where the root dentry's refcnt isn't zero but
      superblock's s_active is.  If umount happens before or during this
      window, vfs will see the root dentry with non-zero refcnt and trigger
      BUG().
      
      Before 48ddbe19, this problem didn't exist because the last dentry
      reference was guaranteed to be put synchronously from rmdir(2)
      invocation which holds s_active around the whole process.
      
      Fix it by holding an extra superblock->s_active reference across
      dput() from css release, which is the dput() path added by 48ddbe19
      
      
      and the only one which doesn't hold an extra s_active ref across the
      final cgroup dput().
      
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      LKML-Reference: <4FEEA5CB.8070809@huawei.com>
      Reported-by: default avatarshyju pv <shyju.pv@huawei.com>
      Tested-by: default avatarshyju pv <shyju.pv@huawei.com>
      Cc: Sasha Levin <levinsasha928@gmail.com>
      Acked-by: default avatarLi Zefan <lizefan@huawei.com>
      5db9a4d9
    • Tejun Heo's avatar
      Revert "cgroup: superblock can't be released with active dentries" · 7db5b3ca
      Tejun Heo authored
      This reverts commit fa980ca8
      
      .  The
      commit was an attempt to fix a race condition where a cgroup hierarchy
      may be unmounted with positive dentry reference on root cgroup.  While
      the commit made the race condition slightly more difficult to trigger,
      the race was still there and could be reliably triggered using a
      different test case.
      
      Revert the incorrect fix.  The next commit will describe the race and
      fix it correctly.
      
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      LKML-Reference: <4FEEA5CB.8070809@huawei.com>
      Reported-by: default avatarshyju pv <shyju.pv@huawei.com>
      Cc: Sasha Levin <levinsasha928@gmail.com>
      Acked-by: default avatarLi Zefan <lizefan@huawei.com>
      7db5b3ca
    • Shinya Kuribayashi's avatar
      hwspinlock/core: use global ID to register hwspinlocks on multiple devices · 476a7eeb
      Shinya Kuribayashi authored
      Commit 300bab97
      
       (hwspinlock/core: register a bank of hwspinlocks in a
      single API call, 2011-09-06) introduced 'hwspin_lock_register_single()'
      to register numerous (a bank of) hwspinlock instances in a single API,
      'hwspin_lock_register()'.
      
      At which time, 'hwspin_lock_register()' accidentally passes 'local IDs'
      to 'hwspin_lock_register_single()', despite that ..._single() requires
      'global IDs' to register hwspinlocks.
      
      We have to convert into global IDs by supplying the missing 'base_id'.
      
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
      [ohad: fix error path of hwspin_lock_register, too]
      Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
      476a7eeb
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm · cd6407fe
      Linus Torvalds authored
      Pull ARM fixes from Russell King:
       "Last merge window, we had some updates from Al cleaning up the signal
        restart handling.  These have caused some problems on ARM, and while
        Al has some fixes, we have some concerns with Al's patches but we've
        been unsuccesful with discussing this.
      
        We have got to the point where we need to do something, and we've
        decided that the best solution is to revert the appropriate commits
        until Al is able to reply to us.
      
        Also included here are four patches to fix warnings that I've noticed
        in my build system, and one fix for kprobes test code."
      
      * 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
        ARM: fix warning caused by wrongly typed arm_dma_limit
        ARM: fix warnings about atomic64_read
        ARM: 7440/1: kprobes: only test 'sub pc, pc, #1b-2b+8-2' on ARMv6
        ARM: 7441/1: perf: return -EOPNOTSUPP if requested mode exclusion is unavailable
        ARM: 7443/1: Revert "new way of handling ERESTART_RESTARTBLOCK"
        ARM: 7442/1: Revert "remove unused restart trampoline"
        ARM: fix set_domain() macro
        ARM: fix mach-versatile/pci.c warning
      cd6407fe
  6. Jul 07, 2012
    • Andy Lutomirski's avatar
      security: Minor improvements to no_new_privs documentation · c540521b
      Andy Lutomirski authored
      
      
      The documentation didn't actually mention how to enable no_new_privs.
      This also adds a note about possible interactions between
      no_new_privs and LSMs (i.e. why teaching systemd to set no_new_privs
      is not necessarily a good idea), and it references the new docs
      from include/linux/prctl.h.
      
      Suggested-by: default avatarRob Landley <rob@landley.net>
      Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
      Acked-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarJames Morris <james.l.morris@oracle.com>
      c540521b
    • Linus Torvalds's avatar
      Merge tag 'ecryptfs-3.5-rc6-fixes' of... · 26c439d4
      Linus Torvalds authored
      Merge tag 'ecryptfs-3.5-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs
      
      Pull eCryptfs fixes from Tyler Hicks:
       "Fixes an incorrect access mode check when preparing to open a file in
        the lower filesystem.  This isn't an urgent fix, but it is simple and
        the check was obviously incorrect.
      
        Also fixes a couple important bugs in the eCryptfs miscdev interface.
        These changes are low risk due to the small number of users that use
        the miscdev interface.  I was able to keep the changes minimal and I
        have some cleaner, more complete changes queued up for the next merge
        window that will build on these patches."
      
      * tag 'ecryptfs-3.5-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs:
        eCryptfs: Gracefully refuse miscdev file ops on inherited/passed files
        eCryptfs: Fix lockdep warning in miscdev operations
        eCryptfs: Properly check for O_RDONLY flag before doing privileged open
      26c439d4
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · c8912f2b
      Linus Torvalds authored
      Pull target fixes from Nicholas Bellinger:
       "Two minor target fixes.  There is really nothing exciting and/or
        controversial this time around.
      
        There's one fix from MDR for a RCU debug warning message within tcm_fc
        code (CC'ed to stable), and a small AC fix for qla_target.c based upon
        a recent Coverity static report.
      
        Also, there is one other outstanding virtio-scsi LUN scanning bugfix
        that has been uncovered with the in-flight tcm_vhost driver over the
        last days, and that needs to make it into 3.5 final too.  This patch
        has been posted to linux-scsi again here:
      
          http://marc.info/?l=linux-scsi&m=134160609212542&w=2
      
        and I've asked James to include it in his next PULL request."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        qla2xxx: print the right array elements in qlt_async_event
        tcm_fc: Resolve suspicious RCU usage warnings
      c8912f2b
    • Tyler Hicks's avatar
      eCryptfs: Gracefully refuse miscdev file ops on inherited/passed files · 8dc67805
      Tyler Hicks authored
      
      
      File operations on /dev/ecryptfs would BUG() when the operations were
      performed by processes other than the process that originally opened the
      file. This could happen with open files inherited after fork() or file
      descriptors passed through IPC mechanisms. Rather than calling BUG(), an
      error code can be safely returned in most situations.
      
      In ecryptfs_miscdev_release(), eCryptfs still needs to handle the
      release even if the last file reference is being held by a process that
      didn't originally open the file. ecryptfs_find_daemon_by_euid() will not
      be successful, so a pointer to the daemon is stored in the file's
      private_data. The private_data pointer is initialized when the miscdev
      file is opened and only used when the file is released.
      
      https://launchpad.net/bugs/994247
      
      Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
      Reported-by: default avatarSasha Levin <levinsasha928@gmail.com>
      Tested-by: default avatarSasha Levin <levinsasha928@gmail.com>
      8dc67805
    • Alan Cox's avatar
      qla2xxx: print the right array elements in qlt_async_event · 4f1d0f19
      Alan Cox authored
      
      
      Based upon Alan's patch from Coverity scan id 793583, these debug
      messages in qlt_async_event() should be starting from byte 0, which is
      always the Asynchronous Event Status Code from the parent switch statement.
      
      Also, rename reason_code -> login_code following the language used in
      2500 FW spec for Port Database Changed (0x8014) -> Port Database Changed
      Event Mailbox Register for mailbox[2].
      
      Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
      Cc: Chad Dupuis <chad.dupuis@qlogic.com>
      Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      4f1d0f19
    • Mark Rustad's avatar
      tcm_fc: Resolve suspicious RCU usage warnings · 863555be
      Mark Rustad authored
      
      
      Use rcu_dereference_protected to tell rcu that the ft_lport_lock
      is held during ft_lport_create. This resolved "suspicious RCU usage"
      warnings when debugging options are turned on.
      
      Signed-off-by: default avatarMark Rustad <mark.d.rustad@intel.com>
      Tested-by: default avatarRoss Brattain <ross.b.brattain@intel.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      863555be
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20120706' of git://git.infradead.org/linux-mtd · af9b9a53
      Linus Torvalds authored
      Pull two MTD fixes from David Woodhouse:
       - Fix a logic error in OLPC CAFÉ NAND ready() function.
       - Fix regression due to bitflip handling changes.
      
      * tag 'for-linus-20120706' of git://git.infradead.org/linux-mtd:
        mtd: cafe_nand: fix an & vs | mistake
        mtd: nand: initialize bitflip_threshold prior to BBT scanning
      af9b9a53
    • Andy Lutomirski's avatar
      mm: Hold a file reference in madvise_remove · 9ab4233d
      Andy Lutomirski authored
      Otherwise the code races with munmap (causing a use-after-free
      of the vma) or with close (causing a use-after-free of the struct
      file).
      
      The bug was introduced by commit 90ed52eb
      
       ("[PATCH] holepunch: fix
      mmap_sem i_mutex deadlock")
      
      Cc: Hugh Dickins <hugh@veritas.com>
      Cc: Miklos Szeredi <mszeredi@suse.cz>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9ab4233d
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2 · 1b7fa4c2
      Linus Torvalds authored
      Pull ocfs2 fixes from Joel Becker.
      
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2:
        aio: make kiocb->private NUll in init_sync_kiocb()
        ocfs2: Fix bogus error message from ocfs2_global_read_info
        ocfs2: for SEEK_DATA/SEEK_HOLE, return internal error unchanged if ocfs2_get_clusters_nocache() or ocfs2_inode_lock() call failed.
        ocfs2: use spinlock irqsave for downconvert lock.patch
        ocfs2: Misplaced parens in unlikley
        ocfs2: clear unaligned io flag when dio fails
      1b7fa4c2
    • Linus Torvalds's avatar
      Merge git://git.samba.org/sfrench/cifs-2.6 · 064ea1ae
      Linus Torvalds authored
      Pull cifs fixes from Steve French.
      
      * git://git.samba.org/sfrench/cifs-2.6:
        cifs: when server doesn't set CAP_LARGE_READ_X, cap default rsize at MaxBufferSize
        cifs: fix parsing of password mount option
      064ea1ae