1. 03 3月, 2014 1 次提交
  2. 27 2月, 2014 2 次提交
  3. 10 2月, 2014 6 次提交
    • O
      lockdep: Change lockdep_set_novalidate_class() to use _and_name · 47be1c1a
      Oleg Nesterov 提交于
      Cosmetic. This doesn't really matter because a) device->mutex is
      the only user of __lockdep_no_validate__ and b) this class should
      be never reported as the source of problem, but if something goes
      wrong "&dev->mutex" looks better than "&__lockdep_no_validate__"
      as the name of the lock.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Sasha Levin <sasha.levin@oracle.com>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20140120182016.GA26512@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      47be1c1a
    • O
      lockdep: Change mark_held_locks() to check hlock->check instead of lockdep_no_validate · 34d0ed5e
      Oleg Nesterov 提交于
      The __lockdep_no_validate check in mark_held_locks() adds the subtle
      and (afaics) unnecessary difference between no-validate and check==0.
      And this looks even more inconsistent because __lock_acquire() skips
      mark_irqflags()->mark_lock() if !check.
      
      Change mark_held_locks() to check hlock->check instead.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Sasha Levin <sasha.levin@oracle.com>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20140120182013.GA26505@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      34d0ed5e
    • O
      lockdep: Don't create the wrong dependency on hlock->check == 0 · 1b5ff816
      Oleg Nesterov 提交于
      Test-case:
      
      	DEFINE_MUTEX(m1);
      	DEFINE_MUTEX(m2);
      	DEFINE_MUTEX(mx);
      
      	void lockdep_should_complain(void)
      	{
      		lockdep_set_novalidate_class(&mx);
      
      		// m1 -> mx -> m2
      		mutex_lock(&m1);
      		mutex_lock(&mx);
      		mutex_lock(&m2);
      		mutex_unlock(&m2);
      		mutex_unlock(&mx);
      		mutex_unlock(&m1);
      
      		// m2 -> m1 ; should trigger the warning
      		mutex_lock(&m2);
      		mutex_lock(&m1);
      		mutex_unlock(&m1);
      		mutex_unlock(&m2);
      	}
      
      this doesn't trigger any warning, lockdep can't detect the trivial
      deadlock.
      
      This is because lock(&mx) correctly avoids m1 -> mx dependency, it
      skips validate_chain() due to mx->check == 0. But lock(&m2) wrongly
      adds mx -> m2 and thus m1 -> m2 is not created.
      
      rcu_lock_acquire()->lock_acquire(check => 0) is fine due to read == 2,
      so currently only __lockdep_no_validate__ can trigger this problem.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Sasha Levin <sasha.levin@oracle.com>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20140120182010.GA26498@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      1b5ff816
    • O
      lockdep: Make held_lock->check and "int check" argument bool · fb9edbe9
      Oleg Nesterov 提交于
      The "int check" argument of lock_acquire() and held_lock->check are
      misleading. This is actually a boolean: 2 means "true", everything
      else is "false".
      
      And there is no need to pass 1 or 0 to lock_acquire() depending on
      CONFIG_PROVE_LOCKING, __lock_acquire() checks prove_locking at the
      start and clears "check" if !CONFIG_PROVE_LOCKING.
      
      Note: probably we can simply kill this member/arg. The only explicit
      user of check => 0 is rcu_lock_acquire(), perhaps we can change it to
      use lock_acquire(trylock =>, read => 2). __lockdep_no_validate means
      check => 0 implicitly, but we can change validate_chain() to check
      hlock->instance->key instead. Not to mention it would be nice to get
      rid of lockdep_set_novalidate_class().
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Sasha Levin <sasha.levin@oracle.com>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20140120182006.GA26495@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      fb9edbe9
    • T
      locking/mcs: Allow architecture specific asm files to be used for contended case · ddf1d169
      Tim Chen 提交于
      This patch allows each architecture to add its specific assembly optimized
      arch_mcs_spin_lock_contended and arch_mcs_spinlock_uncontended for
      MCS lock and unlock functions.
      Signed-off-by: NTim Chen <tim.c.chen@linux.intel.com>
      Cc: Scott J Norton <scott.norton@hp.com>
      Cc: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
      Cc: AswinChandramouleeswaran <aswin@hp.com>
      Cc: George Spelvin <linux@horizon.com>
      Cc: Rik vanRiel <riel@redhat.com>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: MichelLespinasse <walken@google.com>
      Cc: Peter Hurley <peter@hurleysoftware.com>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Alex Shi <alex.shi@linaro.org>
      Cc: Dave Hansen <dave.hansen@intel.com>
      Cc: Tim Chen <tim.c.chen@linux.intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: "Figo.zhang" <figo1802@gmail.com>
      Cc: "Paul E.McKenney" <paulmck@linux.vnet.ibm.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
      Cc: Waiman Long <waiman.long@hp.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Matthew R Wilcox <matthew.r.wilcox@intel.com>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1390347382.3138.67.camel@schen9-DESKSigned-off-by: NIngo Molnar <mingo@kernel.org>
      ddf1d169
    • T
      locking/mcs: Order the header files in Kbuild of each architecture in alphabetical order · b119fa61
      Tim Chen 提交于
      We perform a clean up of the Kbuid files in each architecture.
      We order the files in each Kbuild in alphabetical order
      by running the below script.
      
      for i in arch/*/include/asm/Kbuild
      do
              cat $i | gawk '/^generic-y/ {
                      i = 3;
                      do {
                              for (; i <= NF; i++) {
                                      if ($i == "\\") {
                                              getline;
                                              i = 1;
                                              continue;
                                      }
                                      if ($i != "")
                                              hdr[$i] = $i;
                              }
                              break;
                      } while (1);
                      next;
              }
              // {
                      print $0;
              }
              END {
                      n = asort(hdr);
                      for (i = 1; i <= n; i++)
                              print "generic-y += " hdr[i];
              }' > ${i}.sorted;
              mv ${i}.sorted $i;
      done
      Signed-off-by: NTim Chen <tim.c.chen@linux.intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Matthew R Wilcox <matthew.r.wilcox@intel.com>
      Cc: AswinChandramouleeswaran <aswin@hp.com>
      Cc: Dave Hansen <dave.hansen@intel.com>
      Cc: "Paul E.McKenney" <paulmck@linux.vnet.ibm.com>
      Cc: Scott J Norton <scott.norton@hp.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: "Figo.zhang" <figo1802@gmail.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Rik van Riel <riel@redhat.com>
      Cc: Waiman Long <waiman.long@hp.com>
      Cc: Peter Hurley <peter@hurleysoftware.com>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: Tim Chen <tim.c.chen@linux.intel.com>
      Cc: Alex Shi <alex.shi@linaro.org>
      Cc: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: George Spelvin <linux@horizon.com>
      Cc: MichelLespinasse <walken@google.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Davidlohr Bueso <davidlohr.bueso@hp.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      [ Fixed build bug. ]
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      b119fa61
  4. 09 2月, 2014 1 次提交
  5. 02 2月, 2014 8 次提交
  6. 01 2月, 2014 22 次提交
    • L
      Merge tag 'nfs-for-3.14-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 8a1f006a
      Linus Torvalds 提交于
      Pull NFS client bugfixes from Trond Myklebust:
       "Highlights:
      
         - Fix several races in nfs_revalidate_mapping
         - NFSv4.1 slot leakage in the pNFS files driver
         - Stable fix for a slot leak in nfs40_sequence_done
         - Don't reject NFSv4 servers that support ACLs with only ALLOW aces"
      
      * tag 'nfs-for-3.14-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        nfs: initialize the ACL support bits to zero.
        NFSv4.1: Cleanup
        NFSv4.1: Clean up nfs41_sequence_done
        NFSv4: Fix a slot leak in nfs40_sequence_done
        NFSv4.1 free slot before resending I/O to MDS
        nfs: add memory barriers around NFS_INO_INVALID_DATA and NFS_INO_INVALIDATING
        NFS: Fix races in nfs_revalidate_mapping
        sunrpc: turn warn_gssd() log message into a dprintk()
        NFS: fix the handling of NFS_INO_INVALID_DATA flag in nfs_revalidate_mapping
        nfs: handle servers that support only ALLOW ACE type.
      8a1f006a
    • L
      Merge tag 'sound-fix-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 14864a52
      Linus Torvalds 提交于
      Pull sound fixes from Takashi Iwai:
       "The big chunks here are the updates for oxygen driver for Xonar DG
        devices, which were slipped from the previous pull request.  They are
        device-specific and thus not too dangerous.
      
        Other than that, all patches are small bug fixes, mainly for Samsung
        build fixes, a few HD-audio enhancements, and other misc ASoC fixes.
        (And this time ASoC merge is less than Octopus, lucky seven :)"
      
      * tag 'sound-fix-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (42 commits)
        ALSA: hda/hdmi - allow PIN_OUT to be dynamically enabled
        ALSA: hda - add headset mic detect quirks for another Dell laptop
        ALSA: oxygen: Xonar DG(X): cleanup and minor changes
        ALSA: oxygen: Xonar DG(X): modify high-pass filter control
        ALSA: oxygen: Xonar DG(X): modify input select functions
        ALSA: oxygen: Xonar DG(X): modify capture volume functions
        ALSA: oxygen: Xonar DG(X): use headphone volume control
        ALSA: oxygen: Xonar DG(X): modify playback output select
        ALSA: oxygen: Xonar DG(X): capture from I2S channel 1, not 2
        ALSA: oxygen: Xonar DG(X): move the mixer code into another file
        ALSA: oxygen: modify CS4245 register dumping function
        ALSA: oxygen: modify adjust_dg_dac_routing function
        ALSA: oxygen: Xonar DG(X): modify DAC/ADC parameters function
        ALSA: oxygen: Xonar DG(X): modify initialization functions
        ALSA: oxygen: Xonar DG(X): add new CS4245 SPI functions
        ALSA: oxygen: additional definitions for the Xonar DG/DGX card
        ALSA: oxygen: change description of the xonar_dg.c file
        ALSA: oxygen: export oxygen_update_dac_routing symbol
        ALSA: oxygen: add mute mask for the OXYGEN_PLAY_ROUTING register
        ALSA: oxygen: modify the SPI writing function
        ...
      14864a52
    • L
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 4e13c5d0
      Linus Torvalds 提交于
      Pull SCSI target updates from Nicholas Bellinger:
       "The highlights this round include:
      
        - add support for SCSI Referrals (Hannes)
        - add support for T10 DIF into target core (nab + mkp)
        - add support for T10 DIF emulation in FILEIO + RAMDISK backends (Sagi + nab)
        - add support for T10 DIF -> bio_integrity passthrough in IBLOCK backend (nab)
        - prep changes to iser-target for >= v3.15 T10 DIF support (Sagi)
        - add support for qla2xxx N_Port ID Virtualization - NPIV (Saurav + Quinn)
        - allow percpu_ida_alloc() to receive task state bitmask (Kent)
        - fix >= v3.12 iscsi-target session reset hung task regression (nab)
        - fix >= v3.13 percpu_ref se_lun->lun_ref_active race (nab)
        - fix a long-standing network portal creation race (Andy)"
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (51 commits)
        target: Fix percpu_ref_put race in transport_lun_remove_cmd
        target/iscsi: Fix network portal creation race
        target: Report bad sector in sense data for DIF errors
        iscsi-target: Convert gfp_t parameter to task state bitmask
        iscsi-target: Fix connection reset hang with percpu_ida_alloc
        percpu_ida: Make percpu_ida_alloc + callers accept task state bitmask
        iscsi-target: Pre-allocate more tags to avoid ack starvation
        qla2xxx: Configure NPIV fc_vport via tcm_qla2xxx_npiv_make_lport
        qla2xxx: Enhancements to enable NPIV support for QLOGIC ISPs with TCM/LIO.
        qla2xxx: Fix scsi_host leak on qlt_lport_register callback failure
        IB/isert: pass scatterlist instead of cmd to fast_reg_mr routine
        IB/isert: Move fastreg descriptor creation to a function
        IB/isert: Avoid frwr notation, user fastreg
        IB/isert: seperate connection protection domains and dma MRs
        tcm_loop: Enable DIF/DIX modes in SCSI host LLD
        target/rd: Add DIF protection into rd_execute_rw
        target/rd: Add support for protection SGL setup + release
        target/rd: Refactor rd_build_device_space + rd_release_device_space
        target/file: Add DIF protection support to fd_execute_rw
        target/file: Add DIF protection init/format support
        ...
      4e13c5d0
    • O
      Fix mountpoint reference leakage in linkat · d22e6338
      Oleg Drokin 提交于
      Recent changes to retry on ESTALE in linkat
      (commit 442e31ca)
      introduced a mountpoint reference leak and a small memory
      leak in case a filesystem link operation returns ESTALE
      which is pretty normal for distributed filesystems like
      lustre, nfs and so on.
      Free old_path in such a case.
      
      [AV: there was another missing path_put() nearby - on the previous
      goto retry]
      Signed-off-by: NOleg Drokin: <green@linuxhacker.ru>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d22e6338
    • L
      Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · deb2a1d2
      Linus Torvalds 提交于
      Pyll ARM64 patches from Catalin Marinas:
       - Build fix with DMA_CMA enabled
       - Introduction of PTE_WRITE to distinguish between writable but clean
         and truly read-only pages
       - FIQs enabling/disabling clean-up (they aren't used on arm64)
       - CPU resume fix for the per-cpu offset restoring
       - Code comment typos
      
      * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mm: Introduce PTE_WRITE
        arm64: mm: Remove PTE_BIT_FUNC macro
        arm64: FIQs are unused
        arm64: mm: fix the function name in comment of cpu_do_switch_mm
        arm64: fix build error if DMA_CMA is enabled
        arm64: kernel: fix per-cpu offset restore on resume
        arm64: mm: fix the function name in comment of __flush_dcache_area
        arm64: mm: use ubfm for dcache_line_size
      deb2a1d2
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha · bcc9f966
      Linus Torvalds 提交于
      Pull alpha updates from Matt Turner:
       "A pair of changes for alpha.  One fixes a networking regression, and
        the second adds audit syscall support which will help in supporting
        systemd"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha:
        alpha: fix broken network checksum
        alpha: Enable system-call auditing support.
      bcc9f966
    • C
      hfsplus: use xattr handlers for removexattr · b168fff7
      Christoph Hellwig 提交于
      hfsplus was already using the handlers for get and set operations,
      and with the removal of can_set_xattr we've now allow operations that
      wouldn't otherwise be allowed.
      
      With this we can also centralize the special-casing of the osx.
      attrs that don't have prefixes on disk in the osx xattr handlers.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      b168fff7
    • S
      Typo in compat_sys_lseek() declaration · e5fbf67d
      Stephan Springl 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      e5fbf67d
    • A
      fs/super.c: sync ro remount after blocking writers · 807612db
      Andrew Ruder 提交于
      Move sync_filesystem() after sb_prepare_remount_readonly().  If writers
      sneak in anywhere from sync_filesystem() to sb_prepare_remount_readonly()
      it can cause inodes to be dirtied and writeback to occur well after
      sys_mount() has completely successfully.
      
      This was spotted by corrupted ubifs filesystems on reboot, but appears
      that it can cause issues with any filesystem using writeback.
      
      Cc: Artem Bityutskiy <dedekind1@gmail.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      CC: Richard Weinberger <richard@nod.at>
      Co-authored-by: NRichard Weinberger <richard@nod.at>
      Signed-off-by: NAndrew Ruder <andrew.ruder@elecsyscorp.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      807612db
    • J
      vfs: unexport the getname() symbol · 9115eac2
      Jeff Layton 提交于
      Leaving getname() exported when putname() isn't is a bad idea.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      9115eac2
    • L
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · b399c46e
      Linus Torvalds 提交于
      Pull media updates from Mauro Carvalho Chehab:
       - a new jpeg codec driver for Samsung Exynos (jpeg-hw-exynos4)
       - a new dvb frontend for ds2103 chipset (m88ds2103)
       - a new sensor driver for Samsung S5K5BAF UXGA (s5k5baf)
       - new drivers for R-Car VSP1
       - a new radio driver: radio-raremono
       - a new tuner driver for ts2022 chipset (m88ts2022)
       - the analog part of em28xx is now a separate module that only
         load/runs if the device is not a pure digital TV device
       - added a staging driver for bcm2048 radio devices
       - the omap 2 video driver (omap24xx) was moved to staging.  This driver
         is for an old hardware and uses a deprecated Kernel internal API.  If
         nobody cares enough to fix it, it would be removed on a couple Kernel
         releases
       - the sn9c102 driver was moved to staging.  This driver was replaced by
         gspca, and disabled on some distros, as almost all devices are known
         to work properly with gspca.  It should be removed from kernel on a
         couple Kernel releases
       - lots of driver fixes, improvements and cleanups
      
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (421 commits)
        [media] media: v4l2-dev: fix video device index assignment
        [media] rc-core: reuse device numbers
        [media] em28xx-cards: properly initialize the device bitmap
        [media] Staging: media: Fix line length exceeding 80 characters in as102_drv.c
        [media] Staging: media: Fix line length exceeding 80 characters in as102_fe.c
        [media] Staging: media: Fix quoted string split across line in as102_fe.c
        [media] media: st-rc: Add reset support
        [media] m2m-deinterlace: fix allocated struct type
        [media] radio-usb-si4713: fix sparse non static symbol warnings
        [media] em28xx-audio: remove needless check before usb_free_coherent()
        [media] au0828: Fix sparse non static symbol warning
        Revert "[media] go7007-usb: only use go->dev after allocated"
        [media] em28xx-audio: provide an error code when URB submit fails
        [media] em28xx: fix check for audio only usb interfaces when changing the usb alternate setting
        [media] em28xx: fix usb alternate setting for analog and digital video endpoints > 0
        [media] em28xx: make 'em28xx_ctrl_ops' static
        em28xx-alsa: Fix error patch for init/fini
        [media] em28xx-audio: flush work at .fini
        [media] drxk: remove the option to load firmware asynchronously
        [media] em28xx: adjust period size at runtime
        ...
      b399c46e
    • L
      Merge tag 'pm+acpi-3.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · b890eb4e
      Linus Torvalds 提交于
      Pull ACPI and power management fixes and cleanups from Rafael Wysocki:
      
       - ACPI device hotplug fix preventing ACPI drivers from binding to device
         objects that acpi_bus_trim() has been called for and the devices
         represented by them may not be operational.
      
       - Recent cpufreq changes related to the "boost" (turbo) feature broke
         the acpi-cpufreq error code path causing a NULL pointer dereference
         to occur on some systems.  Fix from Konrad Rzeszutek Wilk.
      
       - The log level of a CPU initialization error message added recently
         needs to be reduced, because the particular BIOS issue indicated by
         it turns out to be widespread and doesn't really matter for the
         majority of systems having it.  From Jiang Liu.
      
       - The regulator API needs to be told to stay away from things on systems
         with ACPI BIOSes or it may conflict with the BIOS' own handling of
         voltage regulators.  Fix from Mark Brown that works around a 3.13
         regression in lm90 on PCs occuring if the regulator API is enabled.
      
       - Prevent the Exynos4 devfreq driver from being built on multiplatform,
         because it depends on things that aren't available during such builds.
         From Sachin Kamat.
      
       - Upstream ACPICA doesn't use the bool type as defined in the kernel,
         so modify the kernel's ACPICA code to follow the upstream in that
         respect (only one variable definition is affected) to reduce
         divergences between the two.  From Lv Zheng.
      
       - Make the ACPI device PM code use ACPI_COMPANION() instead of its own
         routine doing the same thing (and invokng ACPI_COMPANION() in the
         process).
      
       - Modify some routines in the ACPI processor driver to follow the
         common convention and return negative integers on errors.  From
         Hanjun Guo.
      
      * tag 'pm+acpi-3.14-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / scan: Clear match_driver flag in acpi_bus_trim()
        ACPI / init: Flag use of ACPI and ACPI idioms for power supplies to regulator API
        acpi-cpufreq: De-register CPU notifier and free struct msr on error.
        ACPICA: Remove bool usage from ACPICA.
        PM / devfreq: Disable Exynos4 driver build on multiplatform
        ACPI / PM: Use ACPI_COMPANION() to get ACPI companions of devices
        ACPI / scan: reduce log level of "ACPI: \_PR_.CPU4: failed to get CPU APIC ID"
        ACPI / processor: Return specific error value when mapping lapic id
      b890eb4e
    • M
      alpha: fix broken network checksum · 0ef38d70
      Mikulas Patocka 提交于
      The patch 3ddc5b46 breaks networking on
      alpha (there is a follow-up fix 5cfe8f1b,
      but networking is still broken even with the second patch).
      
      The patch 3ddc5b46 makes
      csum_partial_copy_from_user check the pointer with access_ok. However,
      csum_partial_copy_from_user is called also from csum_partial_copy_nocheck
      and csum_partial_copy_nocheck is called on kernel pointers and it is
      supposed not to check pointer validity.
      
      This bug results in ssh session hangs if the system is loaded and bulk
      data are printed to ssh terminal.
      
      This patch fixes csum_partial_copy_nocheck to call set_fs(KERNEL_DS), so
      that access_ok in csum_partial_copy_from_user accepts kernel-space
      addresses.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: NMatt Turner <mattst88@gmail.com>
      0ef38d70
    • alpha: Enable system-call auditing support. · a9302e84
      蔡正龙 提交于
      Signed-off-by: NZhenglong.cai <zhenglong.cai@cs2c.com.cn>
      Signed-off-by: NMatt Turner <mattst88@gmail.com>
      a9302e84
    • L
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · aafd9d6a
      Linus Torvalds 提交于
      Pull timer/dynticks updates from Ingo Molnar:
       "This tree contains misc dynticks updates: a fix and three cleanups"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/nohz: Fix overflow error in scheduler_tick_max_deferment()
        nohz_full: fix code style issue of tick_nohz_full_stop_tick
        nohz: Get timekeeping max deferment outside jiffies_lock
        tick: Rename tick_check_idle() to tick_irq_enter()
      aafd9d6a
    • L
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 595bf999
      Linus Torvalds 提交于
      Pull scheduler fixes from Ingo Molnar:
       "A crash fix and documentation updates"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched: Make sched_class::get_rr_interval() optional
        sched/deadline: Add sched_dl documentation
        sched: Fix docbook parameter annotation error in wait.h
      595bf999
    • L
      Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ab531878
      Linus Torvalds 提交于
      Pull core debug changes from Ingo Molnar:
       "This contains mostly kernel debugging related updates:
      
         - make hung_task detection more configurable to distros
         - add final bits for x86 UV NMI debugging, with related KGDB changes
         - update the mailing-list of MAINTAINERS entries I'm involved with"
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        hung_task: Display every hung task warning
        sysctl: Add neg_one as a standard constraint
        x86/uv/nmi, kgdb/kdb: Fix UV NMI handler when KDB not configured
        x86/uv/nmi: Fix Sparse warnings
        kgdb/kdb: Fix no KDB config problem
        MAINTAINERS: Restore "L: linux-kernel@vger.kernel.org" entries
      ab531878
    • S
      ALSA: hda/hdmi - allow PIN_OUT to be dynamically enabled · 75fae117
      Stephen Warren 提交于
      Commit 384a48d7 "ALSA: hda: HDMI: Support codecs with fewer cvts
      than pins" dynamically enabled each pin widget's PIN_OUT only when the
      pin was actively in use. This was required on certain NVIDIA CODECs for
      correct operation. Specifically, if multiple pin widgets each had their
      mux input select the same audio converter widget and each pin widget had
      PIN_OUT enabled, then only one of the pin widgets would actually receive
      the audio, and often not the one the user wanted!
      
      However, this apparently broke some Intel systems, and commit
      6169b673 "ALSA: hda - Always turn on pins for HDMI/DP" reverted the
      dynamic setting of PIN_OUT. This in turn broke the afore-mentioned NVIDIA
      CODECs.
      
      This change supports either dynamic or static handling of PIN_OUT,
      selected by a flag set up during CODEC initialization. This flag is
      enabled for all recent NVIDIA GPUs.
      Reported-by: NUosis <uosisl@gmail.com>
      Cc: <stable@vger.kernel.org> # v3.13
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      75fae117
    • L
      Merge tag 'stable/for-linus-3.14-rc0-late-tag' of... · 14164b46
      Linus Torvalds 提交于
      Merge tag 'stable/for-linus-3.14-rc0-late-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
      
      Pull Xen bugfixes from Konrad Rzeszutek Wilk:
       "Bug-fixes for the new features that were added during this cycle.
      
        There are also two fixes for long-standing issues for which we have a
        solution: grant-table operations extra work that was not needed
        causing performance issues and the self balloon code was too
        aggressive causing OOMs.
      
        Details:
         - Xen ARM couldn't use the new FIFO events
         - Xen ARM couldn't use the SWIOTLB if compiled as 32-bit with 64-bit PCIe devices.
         - Grant table were doing needless M2P operations.
         - Ratchet down the self-balloon code so it won't OOM.
         - Fix misplaced kfree in Xen PVH error code paths"
      
      * tag 'stable/for-linus-3.14-rc0-late-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/pvh: Fix misplaced kfree from xlated_setup_gnttab_pages
        drivers: xen: deaggressive selfballoon driver
        xen/grant-table: Avoid m2p_override during mapping
        xen/gnttab: Use phys_addr_t to describe the grant frame base address
        xen: swiotlb: handle sizeof(dma_addr_t) != sizeof(phys_addr_t)
        arm/xen: Initialize event channels earlier
      14164b46
    • L
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · e2a0f813
      Linus Torvalds 提交于
      Pull more KVM updates from Paolo Bonzini:
       "Second batch of KVM updates.  Some minor x86 fixes, two s390 guest
        features that need some handling in the host, and all the PPC changes.
      
        The PPC changes include support for little-endian guests and
        enablement for new POWER8 features"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (45 commits)
        x86, kvm: correctly access the KVM_CPUID_FEATURES leaf at 0x40000101
        x86, kvm: cache the base of the KVM cpuid leaves
        kvm: x86: move KVM_CAP_HYPERV_TIME outside #ifdef
        KVM: PPC: Book3S PR: Cope with doorbell interrupts
        KVM: PPC: Book3S HV: Add software abort codes for transactional memory
        KVM: PPC: Book3S HV: Add new state for transactional memory
        powerpc/Kconfig: Make TM select VSX and VMX
        KVM: PPC: Book3S HV: Basic little-endian guest support
        KVM: PPC: Book3S HV: Add support for DABRX register on POWER7
        KVM: PPC: Book3S HV: Prepare for host using hypervisor doorbells
        KVM: PPC: Book3S HV: Handle new LPCR bits on POWER8
        KVM: PPC: Book3S HV: Handle guest using doorbells for IPIs
        KVM: PPC: Book3S HV: Consolidate code that checks reason for wake from nap
        KVM: PPC: Book3S HV: Implement architecture compatibility modes for POWER8
        KVM: PPC: Book3S HV: Add handler for HV facility unavailable
        KVM: PPC: Book3S HV: Flush the correct number of TLB sets on POWER8
        KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs
        KVM: PPC: Book3S HV: Align physical and virtual CPU thread numbers
        KVM: PPC: Book3S HV: Don't set DABR on POWER8
        kvm/ppc: IRQ disabling cleanup
        ...
      e2a0f813
    • L
      Merge tag 'jfs-3.14' of git://github.com/kleikamp/linux-shaggy · e30b82bb
      Linus Torvalds 提交于
      Pull jfs fix from David Kleikamp:
       "Minor bug fix for linux-3.14"
      
      * tag 'jfs-3.14' of git://github.com/kleikamp/linux-shaggy:
        jfs: fix xattr value size overflow in __jfs_setxattr
      e30b82bb
    • S
      ceph: fix missing dput in ceph_set_acl · 77516dc9
      Sage Weil 提交于
      Add matching dput() for d_find_alias().  Move d_find_alias() down a bit
      at Julia's suggestion.
      
      [ Introduced by commit 72466d0b: "ceph: fix posix ACL hooks" ]
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Reported-by: NJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: NSage Weil <sage@inktank.com>
      Reviewed-by: NIlya Dryomov <ilya.dryomov@inktank.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      77516dc9