Skip to content
  1. Nov 02, 2019
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · e5897c7d
      Linus Torvalds authored
      Pull RISC-V fixes from Paul Walmsley:
       "One fix for PCIe users:
      
         - Fix legacy PCI I/O port access emulation
      
        One set of cleanups:
      
         - Resolve most of the warnings generated by sparse across arch/riscv.
           No functional changes
      
        And one MAINTAINERS update:
      
         - Update Palmer's E-mail address"
      
      * tag 'riscv/for-v5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        MAINTAINERS: Change to my personal email address
        RISC-V: Add PCIe I/O BAR memory mapping
        riscv: for C functions called only from assembly, mark with __visible
        riscv: fp: add missing __user pointer annotations
        riscv: add missing header file includes
        riscv: mark some code and data as file-static
        riscv: init: merge split string literals in preprocessor directive
        riscv: add prototypes for assembly language functions from head.S
      e5897c7d
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 31408fbe
      Linus Torvalds authored
      Pull parisc fix from Helge Deller:
       "Fix a parisc kernel crash with ftrace functions when compiled without
        frame pointers"
      
      * 'parisc-5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: fix frame pointer in ftrace_regs_caller()
      31408fbe
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0dbe6cb8
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Fix two scheduler topology bugs/oversights on Juno r0 2+4 big.LITTLE
        systems"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/topology: Allow sched_asym_cpucapacity to be disabled
        sched/topology: Don't try to build empty sched domains
      0dbe6cb8
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 355f83c1
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Misc fixes: an ABI fix for a reserved field, AMD IBS fixes, an Intel
        uncore PMU driver fix and a header typo fix"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/headers: Fix spelling s/EACCESS/EACCES/, s/privilidge/privilege/
        perf/x86/uncore: Fix event group support
        perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h)
        perf/x86/amd/ibs: Fix reading of the IBS OpData register and thus precise RIP validity
        perf/core: Start rejecting the syscall with attr.__reserved_2 set
      355f83c1
    • Linus Torvalds's avatar
      Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b2a18c25
      Linus Torvalds authored
      Pull EFI fixes from Ingo Molnar:
       "Various fixes all over the map: prevent boot crashes on HyperV,
        classify UEFI randomness as bootloader randomness, fix EFI boot for
        the Raspberry Pi2, fix efi_test permissions, etc"
      
      * 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/efi_test: Lock down /dev/efi_test and require CAP_SYS_ADMIN
        x86, efi: Never relocate kernel below lowest acceptable address
        efi: libstub/arm: Account for firmware reserved memory at the base of RAM
        efi/random: Treat EFI_RNG_PROTOCOL output as bootloader randomness
        efi/tpm: Return -EINVAL when determining tpm final events log size fails
        efi: Make CONFIG_EFI_RCI2_TABLE selectable on x86 only
      b2a18c25
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · d540c398
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "These are almost exclusively related to CPU errata in CPUs from
        Broadcom and Qualcomm where the workarounds were either not being
        enabled when they should have been or enabled when they shouldn't have
        been.
      
        The only "interesting" fix is ensuring that writeable, shared mappings
        are initially mapped as clean since we inadvertently broke the logic
        back in v4.14 and then noticed the problem via code inspection the
        other day.
      
        The only critical issue we have outstanding is a sporadic NULL
        dereference in the scheduler, which doesn't appear to be
        arm64-specific and PeterZ is tearing his hair out over it at the
        moment.
      
        Summary:
      
         - Enable CPU errata workarounds for Broadcom Brahma-B53
      
         - Enable CPU errata workarounds for Qualcomm Hydra/Kryo CPUs
      
         - Fix initial dirty status of writeable, shared mappings"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: apply ARM64_ERRATUM_843419 workaround for Brahma-B53 core
        arm64: Brahma-B53 is SSB and spectre v2 safe
        arm64: apply ARM64_ERRATUM_845719 workaround for Brahma-B53 core
        arm64: cpufeature: Enable Qualcomm Falkor errata 1009 for Kryo
        arm64: cpufeature: Enable Qualcomm Falkor/Kryo errata 1003
        arm64: Ensure VM_WRITE|VM_SHARED ptes are clean by default
      d540c398
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · b88866b6
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "generic:
         - fix memory leak on failure to create VM
      
        x86:
         - fix MMU corner case with AMD nested paging disabled"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active
        kvm: call kvm_arch_destroy_vm if vm creation fails
        kvm: Allocate memslots and buses before calling kvm_arch_init_vm
      b88866b6
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2019-11-01' of git://anongit.freedesktop.org/drm/drm · 14616244
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This is the regular drm fixes pull request for 5.4-rc6. It's a bit
        larger than I'd like but then last week was quieter than usual.
      
        The main fixes are amdgpu, and the two bigger area are navi fixes
        which are the newest GPU range so still getting actively fixed up, but
        also a bunch of clang stack alignment fixes (as amdgpu uses double in
        some places).
      
        Otherwise it's all fairly run of the mill fixes, i915, panfrost,
        etnaviv, v3d and radeon, along with a core scheduler fix.
      
        Summary:
      
        amdgpu:
         - clang alignment fixes
         - Updated golden settings
         - navi: gpuvm, sdma and display fixes
         - Freesync fix
         - Gamma fix for DCN
         - DP dongle detection fix
         - vega10: Fix for undervolting
      
        radeon:
         - reenable kexec fix for ppc
      
        scheduler:
         - set an error if hw job failed
      
        i915:
         - fix PCH reference clock for HSW/BDW
         - TGL display PLL doc fix
      
        panfrost:
         - warning fix
         - runtime pm fix
         - bad pointer dereference fix
      
        v3d:
         - memleak fix
      
        etnaviv:
         - memory corruption fix
         - deadlock fix
         - reintroduce lost debug message"
      
      * tag 'drm-fixes-2019-11-01' of git://anongit.freedesktop.org/drm/drm: (29 commits)
        drm/amdgpu: enable -msse2 for GCC 7.1+ users
        drm/amdgpu: fix stack alignment ABI mismatch for GCC 7.1+
        drm/amdgpu: fix stack alignment ABI mismatch for Clang
        drm/radeon: Fix EEH during kexec
        drm/amdgpu/gmc10: properly set BANK_SELECT and FRAGMENT_SIZE
        drm/amdgpu/powerplay/vega10: allow undervolting in p7
        dc.c:use kzalloc without test
        drm/amd/display: setting the DIG_MODE to the correct value.
        drm/amd/display: Passive DP->HDMI dongle detection fix
        drm/amd/display: add 50us buffer as WA for pstate switch in active
        drm/amd/display: Allow inverted gamma
        drm/amd/display: do not synchronize "drr" displays
        drm/amdgpu: If amdgpu_ib_schedule fails return back the error.
        drm/sched: Set error to s_fence if HW job submission failed.
        drm/amdgpu/gfx10: update gfx golden settings for navi12
        drm/amdgpu/gfx10: update gfx golden settings for navi14
        drm/amdgpu/gfx10: update gfx golden settings
        drm/amd/display: Change Navi14's DWB flag to 1
        drm/amdgpu/sdma5: do not execute 0-sized IBs (v2)
        drm/amdgpu: Fix SDMA hang when performing VKexample test
        ...
      14616244
    • Linus Torvalds's avatar
      Merge tag 'pm-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 65a5bf1c
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a recently introduced (mostly theoretical) issue that the requests
        to confine the maximum CPU frequency coming from the platform firmware
        may not be taken into account if multiple CPUs are covered by one
        cpufreq policy on a system with ACPI"
      
      * tag 'pm-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: processor: Add QoS requests for all CPUs
      65a5bf1c
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 4252a1a9
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "A number of bug fixes and a regression fix:
      
         - Various issues from static analysis in hfi1, uverbs, hns, and cxgb4
      
         - Fix for deadlock in a case when the new auto RDMA module loading is
           used
      
         - Missing _irq notation in a prior -rc patch found by lockdep
      
         - Fix a locking and lifetime issue in siw
      
         - Minor functional bug fixes in cxgb4, mlx5, qedr
      
         - Fix a regression where vlan interfaces no longer worked with RDMA
           CM in some cases"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/hns: Prevent memory leaks of eq->buf_list
        RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
        RDMA/mlx5: Use irq xarray locking for mkey_table
        IB/core: Avoid deadlock during netlink message handling
        RDMA/nldev: Skip counter if port doesn't match
        RDMA/uverbs: Prevent potential underflow
        IB/core: Use rdma_read_gid_l2_fields to compare GID L2 fields
        RDMA/qedr: Fix reported firmware version
        RDMA/siw: free siw_base_qp in kref release routine
        RDMA/iwcm: move iw_rem_ref() calls out of spinlock
        iw_cxgb4: fix ECN check on the passive accept
        IB/hfi1: Use a common pad buffer for 9B and 16B packets
        IB/hfi1: Avoid excessive retry for TID RDMA READ request
        RDMA/mlx5: Clear old rate limit when closing QP
      4252a1a9
    • Linus Torvalds's avatar
      Merge tag 'sound-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 28585980
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A couple of regression fixes and a fix for mutex deadlock at
        hog-unplug, as well as other device-specific fixes:
      
         - A commit to avoid the spurious unsolicited interrupt on HD-audio
           bus caused a stall at shutdown, so it's reverted now.
      
         - The recent support of AMD/Nvidia audio component binding caused a
           mutex deadlock; fixed by splitting to another mutex
      
         - The device hot-unplug and the ALSA timer close combo may lead to
           another mutex deadlock; fixed by moving put_device() calls
      
         - Usual device-specific small quirks for HD- and USB-audio drivers
      
         - An old error check fix in FireWire driver"
      
      * tag 'sound-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: timer: Fix mutex deadlock at releasing card
        ALSA: hda - Fix mutex deadlock in HDMI codec driver
        Revert "ALSA: hda: Flush interrupts on disabling"
        ALSA: bebob: Fix prototype of helper function to return negative value
        ALSA: hda/realtek - Fix 2 front mics of codec 0x623
        ALSA: hda/realtek - Add support for ALC623
        ALSA: usb-audio: Add DSD support for Gustard U16/X26 USB Interface
      28585980
  2. Nov 01, 2019
  3. Oct 31, 2019
    • Bjorn Andersson's avatar
      arm64: cpufeature: Enable Qualcomm Falkor errata 1009 for Kryo · 36c602dc
      Bjorn Andersson authored
      
      
      The Kryo cores share errata 1009 with Falkor, so add their model
      definitions and enable it for them as well.
      
      Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
      [will: Update entry in silicon-errata.rst]
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      36c602dc
    • Paolo Bonzini's avatar
      KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active · 9167ab79
      Paolo Bonzini authored
      
      
      VMX already does so if the host has SMEP, in order to support the combination of
      CR0.WP=1 and CR4.SMEP=1.  However, it is perfectly safe to always do so, and in
      fact VMX already ends up running with EFER.NXE=1 on old processors that lack the
      "load EFER" controls, because it may help avoiding a slow MSR write.  Removing
      all the conditionals simplifies the code.
      
      SVM does not have similar code, but it should since recent AMD processors do
      support SMEP.  So this patch also makes the code for the two vendors more similar
      while fixing NPT=0, CR0.WP=1 and CR4.SMEP=1 on AMD processors.
      
      Cc: stable@vger.kernel.org
      Cc: Joerg Roedel <jroedel@suse.de>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      9167ab79
    • Jim Mattson's avatar
      kvm: call kvm_arch_destroy_vm if vm creation fails · a97b0e77
      Jim Mattson authored
      In kvm_create_vm(), if we've successfully called kvm_arch_init_vm(), but
      then fail later in the function, we need to call kvm_arch_destroy_vm()
      so that it can do any necessary cleanup (like freeing memory).
      
      Fixes: 44a95dae
      
       ("KVM: x86: Detect and Initialize AVIC support")
      
      Signed-off-by: default avatarJohn Sperbeck <jsperbeck@google.com>
      Signed-off-by: default avatarJim Mattson <jmattson@google.com>
      Reviewed-by: default avatarJunaid Shahid <junaids@google.com>
      [Remove dependency on "kvm: Don't clear reference count on
       kvm_create_vm() error path" which was not committed. - Paolo]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a97b0e77
    • Javier Martinez Canillas's avatar
      efi/efi_test: Lock down /dev/efi_test and require CAP_SYS_ADMIN · 359efcc2
      Javier Martinez Canillas authored
      
      
      The driver exposes EFI runtime services to user-space through an IOCTL
      interface, calling the EFI services function pointers directly without
      using the efivar API.
      
      Disallow access to the /dev/efi_test character device when the kernel is
      locked down to prevent arbitrary user-space to call EFI runtime services.
      
      Also require CAP_SYS_ADMIN to open the chardev to prevent unprivileged
      users to call the EFI runtime services, instead of just relying on the
      chardev file mode bits for this.
      
      The main user of this driver is the fwts [0] tool that already checks if
      the effective user ID is 0 and fails otherwise. So this change shouldn't
      cause any regression to this tool.
      
      [0]: https://wiki.ubuntu.com/FirmwareTestSuite/Reference/uefivarinfo
      
      Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Acked-by: default avatarLaszlo Ersek <lersek@redhat.com>
      Acked-by: default avatarMatthew Garrett <mjg59@google.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-efi@vger.kernel.org
      Link: https://lkml.kernel.org/r/20191029173755.27149-7-ardb@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      359efcc2
    • Kairui Song's avatar
      x86, efi: Never relocate kernel below lowest acceptable address · 220dd769
      Kairui Song authored
      
      
      Currently, kernel fails to boot on some HyperV VMs when using EFI.
      And it's a potential issue on all x86 platforms.
      
      It's caused by broken kernel relocation on EFI systems, when below three
      conditions are met:
      
      1. Kernel image is not loaded to the default address (LOAD_PHYSICAL_ADDR)
         by the loader.
      2. There isn't enough room to contain the kernel, starting from the
         default load address (eg. something else occupied part the region).
      3. In the memmap provided by EFI firmware, there is a memory region
         starts below LOAD_PHYSICAL_ADDR, and suitable for containing the
         kernel.
      
      EFI stub will perform a kernel relocation when condition 1 is met. But
      due to condition 2, EFI stub can't relocate kernel to the preferred
      address, so it fallback to ask EFI firmware to alloc lowest usable memory
      region, got the low region mentioned in condition 3, and relocated
      kernel there.
      
      It's incorrect to relocate the kernel below LOAD_PHYSICAL_ADDR. This
      is the lowest acceptable kernel relocation address.
      
      The first thing goes wrong is in arch/x86/boot/compressed/head_64.S.
      Kernel decompression will force use LOAD_PHYSICAL_ADDR as the output
      address if kernel is located below it. Then the relocation before
      decompression, which move kernel to the end of the decompression buffer,
      will overwrite other memory region, as there is no enough memory there.
      
      To fix it, just don't let EFI stub relocate the kernel to any address
      lower than lowest acceptable address.
      
      [ ardb: introduce efi_low_alloc_above() to reduce the scope of the change ]
      
      Signed-off-by: default avatarKairui Song <kasong@redhat.com>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Acked-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-efi@vger.kernel.org
      Link: https://lkml.kernel.org/r/20191029173755.27149-6-ardb@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      220dd769
    • Ard Biesheuvel's avatar
      efi: libstub/arm: Account for firmware reserved memory at the base of RAM · 41cd96fa
      Ard Biesheuvel authored
      
      
      The EFI stubloader for ARM starts out by allocating a 32 MB window
      at the base of RAM, in order to ensure that the decompressor (which
      blindly copies the uncompressed kernel into that window) does not
      overwrite other allocations that are made while running in the context
      of the EFI firmware.
      
      In some cases, (e.g., U-Boot running on the Raspberry Pi 2), this is
      causing boot failures because this initial allocation conflicts with
      a page of reserved memory at the base of RAM that contains the SMP spin
      tables and other pieces of firmware data and which was put there by
      the bootloader under the assumption that the TEXT_OFFSET window right
      below the kernel is only used partially during early boot, and will be
      left alone once the memory reservations are processed and taken into
      account.
      
      So let's permit reserved memory regions to exist in the region starting
      at the base of RAM, and ending at TEXT_OFFSET - 5 * PAGE_SIZE, which is
      the window below the kernel that is not touched by the early boot code.
      
      Tested-by: default avatarGuillaume Gardet <Guillaume.Gardet@arm.com>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Acked-by: default avatarChester Lin <clin@suse.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-efi@vger.kernel.org
      Link: https://lkml.kernel.org/r/20191029173755.27149-5-ardb@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      41cd96fa
    • Dominik Brodowski's avatar
      efi/random: Treat EFI_RNG_PROTOCOL output as bootloader randomness · 18b915ac
      Dominik Brodowski authored
      Commit 428826f5
      
       ("fdt: add support for rng-seed") introduced
      add_bootloader_randomness(), permitting randomness provided by the
      bootloader or firmware to be credited as entropy. However, the fact
      that the UEFI support code was already wired into the RNG subsystem
      via a call to add_device_randomness() was overlooked, and so it was
      not converted at the same time.
      
      Note that this UEFI (v2.4 or newer) feature is currently only
      implemented for EFI stub booting on ARM, and further note that
      CONFIG_RANDOM_TRUST_BOOTLOADER must be enabled, and this should be
      done only if there indeed is sufficient trust in the bootloader
      _and_ its source of randomness.
      
      [ ardb: update commit log ]
      
      Tested-by: default avatarBhupesh Sharma <bhsharma@redhat.com>
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-efi@vger.kernel.org
      Link: https://lkml.kernel.org/r/20191029173755.27149-4-ardb@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      18b915ac
    • Jerry Snitselaar's avatar
      efi/tpm: Return -EINVAL when determining tpm final events log size fails · 2bb6a816
      Jerry Snitselaar authored
      
      
      Currently nothing checks the return value of efi_tpm_eventlog_init(),
      but in case that changes in the future make sure an error is
      returned when it fails to determine the tpm final events log
      size.
      
      Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarJerry Snitselaar <jsnitsel@redhat.com>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Reviewed-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-efi@vger.kernel.org
      Fixes: e658c82b
      
       ("efi/tpm: Only set 'efi_tpm_final_log_size' after ...")
      Link: https://lkml.kernel.org/r/20191029173755.27149-3-ardb@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      2bb6a816
    • Narendra K's avatar
      efi: Make CONFIG_EFI_RCI2_TABLE selectable on x86 only · 0b6b30c6
      Narendra K authored
      
      
      For the EFI_RCI2_TABLE Kconfig option, 'make oldconfig' asks the user
      for input on platforms where the option may not be applicable. This patch
      modifies the Kconfig option to ask the user for input only when CONFIG_X86
      or CONFIG_COMPILE_TEST is set to y.
      
      Suggested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarNarendra K <Narendra.K@dell.com>
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-efi@vger.kernel.org
      Link: https://lkml.kernel.org/r/20191029173755.27149-2-ardb@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      0b6b30c6
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-5.4-rc6' of git://git.infradead.org/users/vkoul/slave-dma · e472c64a
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
       "A few fixes to the dmaengine drivers:
      
         - fix in sprd driver for link list and potential memory leak
      
         - tegra transfer failure fix
      
         - imx size check fix for script_number
      
         - xilinx fix for 64bit AXIDMA and control reg update
      
         - qcom bam dma resource leak fix
      
         - cppi slave transfer fix when idle"
      
      * tag 'dmaengine-fix-5.4-rc6' of git://git.infradead.org/users/vkoul/slave-dma:
        dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle
        dmaengine: qcom: bam_dma: Fix resource leak
        dmaengine: sprd: Fix the possible memory leak issue
        dmaengine: xilinx_dma: Fix control reg update in vdma_channel_set_config
        dmaengine: xilinx_dma: Fix 64-bit simple AXIDMA transfer
        dmaengine: imx-sdma: fix size check for sdma script_number
        dmaengine: tegra210-adma: fix transfer failure
        dmaengine: sprd: Fix the link-list pointer register configuration issue
      e472c64a
    • Takashi Iwai's avatar
      ALSA: timer: Fix mutex deadlock at releasing card · a3933186
      Takashi Iwai authored
      
      
      When a card is disconnected while in use, the system waits until all
      opened files are closed then releases the card.  This is done via
      put_device() of the card device in each device release code.
      
      The recently reported mutex deadlock bug happens in this code path;
      snd_timer_close() for the timer device deals with the global
      register_mutex and it calls put_device() there.  When this timer
      device is the last one, the card gets freed and it eventually calls
      snd_timer_free(), which has again the protection with the global
      register_mutex -- boom.
      
      Basically put_device() call itself is race-free, so a relative simple
      workaround is to move this put_device() call out of the mutex.  For
      achieving that, in this patch, snd_timer_close_locked() got a new
      argument to store the card device pointer in return, and each caller
      invokes put_device() with the returned object after the mutex unlock.
      
      Reported-and-tested-by: default avatarKirill A. Shutemov <kirill.shutemov@linux.intel.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a3933186
    • Sven Schnelle's avatar
      parisc: fix frame pointer in ftrace_regs_caller() · 3d252454
      Sven Schnelle authored
      
      
      The current code in ftrace_regs_caller() doesn't assign
      %r3 to contain the address of the current frame. This
      is hidden if the kernel is compiled with FRAME_POINTER,
      but without it just crashes because it tries to dereference
      an arbitrary address. Fix this by always setting %r3 to the
      current stack frame.
      
      Signed-off-by: default avatarSven Schnelle <svens@stackframe.org>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      3d252454
  4. Oct 30, 2019