1. 01 12月, 2017 20 次提交
    • L
      Merge tag 'afs-fixes-20171201' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · ae753ee2
      Linus Torvalds 提交于
      Pull AFS fixes from David Howells:
       "Two fix patches for the AFS filesystem:
      
         - Fix the refcounting on permit caching.
      
         - AFS inode (afs_vnode) fields need resetting after allocation
           because they're only initialised when slab pages are obtained from
           the page allocator"
      
      * tag 'afs-fixes-20171201' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        afs: Properly reset afs_vnode (inode) fields
        afs: Fix permit refcounting
      ae753ee2
    • L
      Merge tag 'mmc-v4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 3c1c4ddf
      Linus Torvalds 提交于
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - Ensure that debugfs files are removed properly
         - Fix missing blk_put_request()
         - Deal with errors from blk_get_request()
         - Rewind mmc bus suspend operations at failures
         - Prepend '0x' to ocr and pre_eol_info in sysfs to identify as hex
      
        MMC host:
         - sdhci-msm: Make it optional to wait for signal level changes
         - sdhci: Avoid swiotlb buffer being full"
      
      * tag 'mmc-v4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: prepend 0x to OCR entry in sysfs
        mmc: core: prepend 0x to pre_eol_info entry in sysfs
        mmc: sdhci: Avoid swiotlb buffer being full
        mmc: sdhci-msm: Optionally wait for signal level changes
        mmc: block: Ensure that debugfs files are removed
        mmc: core: Do not leave the block driver in a suspended state
        mmc: block: Check return value of blk_get_request()
        mmc: block: Fix missing blk_put_request()
      3c1c4ddf
    • L
      Merge tag 'drm-fixes-for-v4.15-rc2' of git://people.freedesktop.org/~airlied/linux · 5dc9cbc4
      Linus Torvalds 提交于
      Pull drm fixes and cleanups from Dave Airlie:
       "The main thing are a bunch of fixes for the new amd display code, a
        bunch of smatch fixes.
      
        core:
         - Atomic helper regression fix.
         - Deferred fbdev fallout regression fix.
      
        amdgpu:
         - New display code (dc) dpms, suspend/resume and smatch fixes, along
           with some others
         - Some regression fixes for amdkfd/radeon.
         - Fix a ttm regression for swiotlb disabled
      
        bridge:
         - A bunch of fixes for the tc358767 bridge
      
        mali-dp + hdlcd:
         - some fixes and internal API catchups.
      
        imx-drm:
         -regression fix in atomic code.
      
        omapdrm:
         - platform detection regression fixes"
      
      * tag 'drm-fixes-for-v4.15-rc2' of git://people.freedesktop.org/~airlied/linux: (76 commits)
        drm/imx: always call wait_for_flip_done in commit_tail
        omapdrm: hdmi4_cec: signedness bug in hdmi4_cec_init()
        drm: omapdrm: Fix DPI on platforms using the DSI VDDS
        omapdrm: hdmi4: Correct the SoC revision matching
        drm/omap: displays: panel-dpi: add backlight dependency
        drm/omap: Fix error handling path in 'omap_dmm_probe()'
        drm/i915: Disable THP until we have a GPU read BW W/A
        drm/bridge: tc358767: fix 1-lane behavior
        drm/bridge: tc358767: fix AUXDATAn registers access
        drm/bridge: tc358767: fix timing calculations
        drm/bridge: tc358767: fix DP0_MISC register set
        drm/bridge: tc358767: filter out too high modes
        drm/bridge: tc358767: do no fail on hi-res displays
        drm/bridge: Fix lvds-encoder since the panel_bridge rework.
        drm/bridge: synopsys/dw-hdmi: Enable cec clock
        drm/bridge: adv7511/33: Fix adv7511_cec_init() failure handling
        drm/radeon: remove init of CIK VMIDs 8-16 for amdkfd
        drm/ttm: fix populate_and_map() functions once more
        drm/fb_helper: Disable all crtc's when initial setup fails.
        drm/atomic: make drm_atomic_helper_wait_for_vblanks more agressive
        ...
      5dc9cbc4
    • L
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · 75f64f68
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
       "A selection of fixes/changes that should make it into this series.
        This contains:
      
         - NVMe, two merges, containing:
              - pci-e, rdma, and fc fixes
              - Device quirks
      
         - Fix for a badblocks leak in null_blk
      
         - bcache fix from Rui Hua for a race condition regression where
           -EINTR was returned to upper layers that didn't expect it.
      
         - Regression fix for blktrace for a bug introduced in this series.
      
         - blktrace cleanup for cgroup id.
      
         - bdi registration error handling.
      
         - Small series with cleanups for blk-wbt.
      
         - Various little fixes for typos and the like.
      
        Nothing earth shattering, most important are the NVMe and bcache fixes"
      
      * 'for-linus' of git://git.kernel.dk/linux-block: (34 commits)
        nvme-pci: fix NULL pointer dereference in nvme_free_host_mem()
        nvme-rdma: fix memory leak during queue allocation
        blktrace: fix trace mutex deadlock
        nvme-rdma: Use mr pool
        nvme-rdma: Check remotely invalidated rkey matches our expected rkey
        nvme-rdma: wait for local invalidation before completing a request
        nvme-rdma: don't complete requests before a send work request has completed
        nvme-rdma: don't suppress send completions
        bcache: check return value of register_shrinker
        bcache: recover data from backing when data is clean
        bcache: Fix building error on MIPS
        bcache: add a comment in journal bucket reading
        nvme-fc: don't use bit masks for set/test_bit() numbers
        blk-wbt: fix comments typo
        blk-wbt: move wbt_clear_stat to common place in wbt_done
        blk-sysfs: remove NULL pointer checking in queue_wb_lat_store
        blk-wbt: remove duplicated setting in wbt_init
        nvme-pci: add quirk for delay before CHK RDY for WDC SN200
        block: remove useless assignment in bio_split
        null_blk: fix dev->badblocks leak
        ...
      75f64f68
    • D
      afs: Properly reset afs_vnode (inode) fields · f8de483e
      David Howells 提交于
      When an AFS inode is allocated by afs_alloc_inode(), the allocated
      afs_vnode struct isn't necessarily reset from the last time it was used as
      an inode because the slab constructor is only invoked once when the memory
      is obtained from the page allocator.
      
      This means that information can leak from one inode to the next because
      we're not calling kmem_cache_zalloc().  Some of the information isn't
      reset, in particular the permit cache pointer.
      
      Bring the clearances up to date.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Tested-by: NMarc Dionne <marc.dionne@auristor.com>
      f8de483e
    • D
      afs: Fix permit refcounting · 1bcab125
      David Howells 提交于
      Fix four refcount bugs in afs_cache_permit():
      
       (1) When checking the result of the kzalloc(), we can't just return, but
           must put 'permits'.
      
       (2) We shouldn't put permits immediately after hashing a new permit as we
           need to keep the pointer stable so that we can check to see if
           vnode->permit_cache has changed before we decide whether to assign to
           it.
      
       (3) 'permits' is being put twice.
      
       (4) We need to put either the replacement or the thing replaced after the
           assignment to vnode->permit_cache.
      
      Without this, lots of the following are seen:
      
        Kernel BUG at ffffffffa039857b [verbose debug info unavailable]
        ------------[ cut here ]------------
        Kernel BUG at ffffffffa039858a [verbose debug info unavailable]
        ------------[ cut here ]------------
      
      The addresses are in the .text..refcount section of the kafs.ko module.
      Following the relocation records for the __ex_table section shows one to be
      due to the decrement in afs_put_permits() and the other to be key_get() in
      afs_cache_permit().
      
      Occasionally, the following is seen:
      
        refcount_t overflow at afs_cache_permit+0x57d/0x5c0 [kafs] in cc1[562], uid/euid: 0/0
        WARNING: CPU: 0 PID: 562 at kernel/panic.c:657 refcount_error_report+0x9c/0xac
        ...
      Reported-by: NMarc Dionne <marc.dionne@auristor.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Tested-by: NMarc Dionne <marc.dionne@auristor.com>
      1bcab125
    • L
      Merge tag 'apparmor-pr-2017-11-30' of... · df8ba95c
      Linus Torvalds 提交于
      Merge tag 'apparmor-pr-2017-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
      
      Pull apparmor bugfix from John Johansen:
       "Fix oops in audit_signal_cb hook marked for stable"
      
      * tag 'apparmor-pr-2017-11-30' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor:
        apparmor: fix oops in audit_signal_cb hook
      df8ba95c
    • L
      Merge tag 'acpi-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 42062b98
      Linus Torvalds 提交于
      Pull ACPI fixes from Rafael Wysocki:
       "These fix a regression related to the ACPI EC handling during system
        suspend/resume on some platforms and prevent modalias from being
        exposed to user space for ACPI device object with "not functional and
        not present" status.
      
        Specifics:
      
         - Fix an ACPI EC driver regression (from the 4.9 cycle) causing the
           driver's power management operations to be omitted during system
           suspend/resume on platforms where the EC instance from the ECDT
           table is used instead of the one from the DSDT (Lv Zheng).
      
         - Prevent modalias from being exposed to user space for ACPI device
           objects with _STA returning 0 (not present and not functional) to
           prevent driver modules from being loaded automatically for hardware
           that is not actually present on some platforms (Hans de Goede)"
      
      * tag 'acpi-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / EC: Fix regression related to PM ops support in ECDT device
        ACPI / bus: Leave modalias empty for devices which are not present
      42062b98
    • L
      Merge tag 'pm-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 0cf710f8
      Linus Torvalds 提交于
      Pull power management fixes from Rafael Wysocki:
      
       - add missing module information to the Mediatek cpufreq driver module
         (Jesse Chan)
      
       - fix config dependencies for the Loongson cpufreq driver (James Hogan)
      
       - fix two issues related to CPU offline in the cpupower utility
         (Abhishek Goel).
      
      * tag 'pm-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: mediatek: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
        cpufreq: Add Loongson machine dependencies
        cpupower : Fix cpupower working when cpu0 is offline
        cpupowerutils: bench - Fix cpu online check
      0cf710f8
    • L
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 9c41180b
      Linus Torvalds 提交于
      Pull quota & reiserfs changes from Jan Kara:
      
       - two error checking improvements for quota
      
       - remove bogus i_version increase for reiserfs
      
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        quota: Check for register_shrinker() failure.
        quota: propagate error from __dquot_initialize
        reiserfs: remove unneeded i_version bump
      9c41180b
    • D
      Merge branch 'drm-fixes-4.15' of git://people.freedesktop.org/~agd5f/linux into drm-fixes · 503505bf
      Dave Airlie 提交于
      Fixes for 4.15.  Highlights:
      - DC fixes for S3, gamma, audio, pageflipping, etc.
      - fix a regression in radeon from kfd removal
      - fix a ttm regression with swiotlb disabled
      - misc other fixes
      
      * 'drm-fixes-4.15' of git://people.freedesktop.org/~agd5f/linux: (36 commits)
        drm/radeon: remove init of CIK VMIDs 8-16 for amdkfd
        drm/ttm: fix populate_and_map() functions once more
        drm/amd/display: USB-C / thunderbolt dock specific workaround
        drm/amd/display: Switch to drm_atomic_helper_wait_for_flip_done
        drm/amd/display: fix gamma setting
        drm/amd/display: Do not put drm_atomic_state on resume
        drm/amd/display: Fix couple more inconsistent NULL checks in dc_resource
        drm/amd/display: Fix potential NULL and mem leak in create_links
        drm/amd/display: Fix hubp check in set_cursor_position
        drm/amd/display: Fix use before NULL check in validate_timing
        drm/amd/display: Bunch of smatch error and warning fixes in DC
        drm/amd/display: Fix amdgpu_dm bugs found by smatch
        drm/amd/display: try to find matching audio inst for enc inst first
        drm/amd/display: fix seq issue: turn on clock before programming afmt.
        drm/amd/display: fix memory leaks on error exit return
        drm/amd/display: check plane state before validating fbc
        drm/amd/display: Do DC mode-change check when adding CRTCs
        drm/amd/display: Revert noisy assert messages
        drm/amd/display: fix split viewport rounding error
        drm/amd/display: Check aux channel before MST resume
        ...
      503505bf
    • D
      Merge branch 'for-upstream/mali-dp' of git://linux-arm.org/linux-ld into drm-fixes · 062076e8
      Dave Airlie 提交于
      mali-dp interface cleanups.
      
      * 'for-upstream/mali-dp' of git://linux-arm.org/linux-ld:
        drm: mali-dp: Disable planes when their CRTC gets disabled.
        drm: mali-dp: Separate static internal data into a read-only structure.
        drm/arm: Replace instances of drm_dev_unref with drm_dev_put.
        drm: mali-dp: switch to drm_*_get(), drm_*_put() helpers
      062076e8
    • D
      Merge tag 'drm-amdkfd-fixes-2017-11-26' of... · 662e7040
      Dave Airlie 提交于
      Merge tag 'drm-amdkfd-fixes-2017-11-26' of git://people.freedesktop.org/~gabbayo/linux into drm-fixes
      
      This is amdkfd pull request for -rc2. It contains three small fixes to the
      CIK SDMA code, compilation error fix in kfd_ioctl.h and fix to accessing
      a pointer after it was released.
      
      * tag 'drm-amdkfd-fixes-2017-11-26' of git://people.freedesktop.org/~gabbayo/linux:
        uapi: fix linux/kfd_ioctl.h userspace compilation errors
        drm/amdkfd: fix amdkfd use-after-free GP fault
        drm/amdkfd: Fix SDMA oversubsription handling
        drm/amdkfd: Fix SDMA ring buffer size calculation
        drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode
      662e7040
    • D
      Merge branch 'for-upstream/hdlcd' of git://linux-arm.org/linux-ld into drm-fixes · a42ea78f
      Dave Airlie 提交于
      3 hdlcd fixes/cleanups
      
      * 'for-upstream/hdlcd' of git://linux-arm.org/linux-ld:
        drm/arm: Replace instances of drm_dev_unref with drm_dev_put.
        drm: Fix checkpatch issue: "WARNING: braces {} are not necessary for single statement blocks."
        drm: hdlcd: Update PM code to save/restore console.
      a42ea78f
    • D
      Merge tag 'imx-drm-fixes-2017-11-30' of git://git.pengutronix.de/git/pza/linux into drm-fixes · 8503a4c1
      Dave Airlie 提交于
      drm/imx: fix commit_tail for new drm_atomic_helper_setup_commit
      
      Since commit 080de2e5 ("drm/atomic: Check for busy planes/connectors before
      setting the commit"), drm_atomic_helper_setup_commit expects that blocking
      commits have completed flipping before the commit_tail returns. Add the missing
      wait_for_flip_done to commit_tail to ensure this.
      
      * tag 'imx-drm-fixes-2017-11-30' of git://git.pengutronix.de/git/pza/linux:
        drm/imx: always call wait_for_flip_done in commit_tail
      8503a4c1
    • D
      Merge tag 'drm-intel-fixes-2017-11-30' of... · 9f93b78c
      Dave Airlie 提交于
      Merge tag 'drm-intel-fixes-2017-11-30' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Disable transparent huge pages for now until we have a W/A
      - Building fix when CONFIG_BACKLIGHT_CLASS_DEVICE is not selected
      - GMBUS communication robustness
      - Fbdev hotplug handling fix
      
      gvt-fixes-2017-11-28
      
      - regression fix for sane request alloc (Fred)
      - locking fix (Changbin)
      - fix invalid addr mask (Xiong)
      - compression regression fix (Weinan)
      - fix default pipe enable for virtual display (Xiaolin)
      
      * tag 'drm-intel-fixes-2017-11-30' of git://anongit.freedesktop.org/drm/drm-intel:
        drm/i915: Disable THP until we have a GPU read BW W/A
        drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition
        drm/i915/gvt: enabled pipe A default on creating vgpu
        drm/i915/gvt: Move request alloc to dispatch_workload path only
        drm/i915/gvt: remove skl_misc_ctl_write handler
        drm/i915/gvt: Fix unsafe locking caused by spin_unlock_bh
        drm/i915: fix intel_backlight_device_register declaration
        drm/i915/fbdev: Serialise early hotplug events with async fbdev config
        drm/i915: Prevent zero length "index" write
        drm/i915: Don't try indexed reads to alternate slave addresses
      9f93b78c
    • D
      Merge tag 'omapdrm-4.15-fixes' of... · 4dc0f7c2
      Dave Airlie 提交于
      Merge tag 'omapdrm-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-fixes
      
      omapdrm fixes for 4.15
      
      * Fix platform detection issue causing OMAP3 DPI output to have missing color bits
      * Fix platform detection issue causing OMAP4 HDMI audio not to work
      
      * tag 'omapdrm-4.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux:
        omapdrm: hdmi4_cec: signedness bug in hdmi4_cec_init()
        drm: omapdrm: Fix DPI on platforms using the DSI VDDS
        omapdrm: hdmi4: Correct the SoC revision matching
        drm/omap: displays: panel-dpi: add backlight dependency
        drm/omap: Fix error handling path in 'omap_dmm_probe()'
      4dc0f7c2
    • D
      Merge tag 'drm-misc-fixes-2017-11-30' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · e4b2eb13
      Dave Airlie 提交于
      drm-misc-fixes for -rc2
      
      - big pile of bridge driver (mostly tc358767), all handled by Archit
        and Andrez
      - rockchip dsi fix
      - atomic helper regression fix for spurious -EBUSY (Maarten)
      - fix deferred fbdev fallout (Maarten)
      
      * tag 'drm-misc-fixes-2017-11-30' of git://anongit.freedesktop.org/drm/drm-misc:
        drm/bridge: tc358767: fix 1-lane behavior
        drm/bridge: tc358767: fix AUXDATAn registers access
        drm/bridge: tc358767: fix timing calculations
        drm/bridge: tc358767: fix DP0_MISC register set
        drm/bridge: tc358767: filter out too high modes
        drm/bridge: tc358767: do no fail on hi-res displays
        drm/bridge: Fix lvds-encoder since the panel_bridge rework.
        drm/bridge: synopsys/dw-hdmi: Enable cec clock
        drm/bridge: adv7511/33: Fix adv7511_cec_init() failure handling
        drm/fb_helper: Disable all crtc's when initial setup fails.
        drm/atomic: make drm_atomic_helper_wait_for_vblanks more agressive
        drm/rockchip: dw-mipi-dsi: fix possible un-balanced runtime PM enable
      e4b2eb13
    • L
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 9e0600f5
      Linus Torvalds 提交于
      Pull KVM fixes from Paolo Bonzini:
      
       - x86 bugfixes: APIC, nested virtualization, IOAPIC
      
       - PPC bugfix: HPT guests on a POWER9 radix host
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (26 commits)
        KVM: Let KVM_SET_SIGNAL_MASK work as advertised
        KVM: VMX: Fix vmx->nested freeing when no SMI handler
        KVM: VMX: Fix rflags cache during vCPU reset
        KVM: X86: Fix softlockup when get the current kvmclock
        KVM: lapic: Fixup LDR on load in x2apic
        KVM: lapic: Split out x2apic ldr calculation
        KVM: PPC: Book3S HV: Fix migration and HPT resizing of HPT guests on radix hosts
        KVM: vmx: use X86_CR4_UMIP and X86_FEATURE_UMIP
        KVM: x86: Fix CPUID function for word 6 (80000001_ECX)
        KVM: nVMX: Fix vmx_check_nested_events() return value in case an event was reinjected to L2
        KVM: x86: ioapic: Preserve read-only values in the redirection table
        KVM: x86: ioapic: Clear Remote IRR when entry is switched to edge-triggered
        KVM: x86: ioapic: Remove redundant check for Remote IRR in ioapic_set_irq
        KVM: x86: ioapic: Don't fire level irq when Remote IRR set
        KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race
        KVM: x86: inject exceptions produced by x86_decode_insn
        KVM: x86: Allow suppressing prints on RDMSR/WRMSR of unhandled MSRs
        KVM: x86: fix em_fxstor() sleeping while in atomic
        KVM: nVMX: Fix mmu context after VMLAUNCH/VMRESUME failure
        KVM: nVMX: Validate the IA32_BNDCFGS on nested VM-entry
        ...
      9e0600f5
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 22985bf5
      Linus Torvalds 提交于
      Pull s390 fixes from Martin Schwidefsky:
      
       - SPDX identifiers are added to more of the s390 specific files.
      
       - The ELF_ET_DYN_BASE base patch from Kees is reverted, with the change
         some old 31-bit programs crash.
      
       - Bug fixes and cleanups.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (29 commits)
        s390/gs: add compat regset for the guarded storage broadcast control block
        s390: revert ELF_ET_DYN_BASE base changes
        s390: Remove redundant license text
        s390: crypto: Remove redundant license text
        s390: include: Remove redundant license text
        s390: kernel: Remove redundant license text
        s390: add SPDX identifiers to the remaining files
        s390: appldata: add SPDX identifiers to the remaining files
        s390: pci: add SPDX identifiers to the remaining files
        s390: mm: add SPDX identifiers to the remaining files
        s390: crypto: add SPDX identifiers to the remaining files
        s390: kernel: add SPDX identifiers to the remaining files
        s390: sthyi: add SPDX identifiers to the remaining files
        s390: drivers: Remove redundant license text
        s390: crypto: Remove redundant license text
        s390: virtio: add SPDX identifiers to the remaining files
        s390: scsi: zfcp_aux: add SPDX identifier
        s390: net: add SPDX identifiers to the remaining files
        s390: char: add SPDX identifiers to the remaining files
        s390: cio: add SPDX identifiers to the remaining files
        ...
      22985bf5
  2. 30 11月, 2017 20 次提交