1. 23 Nov, 2021 1 commit
    • Linus Torvalds's avatar
      Merge tag 'sound-5.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · b7359362
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A lot of small changes at this time.
      
        There are many ASoC fixes, and the majority of them are new machine
        quirks for Intel platforms, as well as the device-specific fixes for
        Mediatek and Qualcomm.
      
        In addition, a regression fix for USB-audio and a few more HD- and
        USB-audio quirks are found here"
      
      * tag 'sound-5.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (41 commits)
        ALSA: intel-dsp-config: add quirk for JSL devices based on ES8336 codec
        ALSA: usb-audio: Don't start stream for capture at prepare
        ALSA: usb-audio: Switch back to non-latency mode at a later point
        ALSA: ctxfi: Fix out-of-range access
        ALSA: hda/realtek: Fix LED on HP ProBook 435 G7
        ASoC: stm32: i2s: fix 32 bits channel length without mclk
        ASoC: codecs: lpass-rx-macro: fix HPHR setting CLSH mask
        ASoC: codecs: wcd934x: return error code correctly from hw_params
        ASoC: codecs: wcd938x: fix volatile register range
        ASoC: topology: Add missing rwsem around snd_ctl_remove() calls
        ASoC: qdsp6: q6routing: validate port id before setting up route
        ASoC: qdsp6: q6adm: improve error reporting
        ASoC: qdsp6: q6asm: fix q6asm_dai_prepare error handling
        ASoC: qdsp6: q6routing: Conditionally reset FrontEnd Mixer
        ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly
        ASoC: wm_adsp: wm_adsp_control_add() error: uninitialized symbol 'ret'
        ALSA: cmipci: Drop stale variable assignment
        ALSA: hda/realtek: Add quirk for ASRock NUC Box 1100
        ASoC: rsnd: fixup DMAEngine API
        ASoC: SOF: build compression interface into snd_sof.ko
        ...
      b7359362
  2. 22 Nov, 2021 3 commits
    • Linus Torvalds's avatar
      Merge tag 'media/v5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · c7756f3a
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
      
       - fix VIDIOC_DQEVENT ioctl handling for 32-bit userspace with a 64-bit
         kernel
      
       - regression fix for videobuf2 core
      
       - fix for CEC core when handling non-block transmit
      
       - hi846: fix a clang warning
      
      * tag 'media/v5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: hi846: remove the of_match_ptr macro
        media: hi846: include property.h instead of of_graph.h
        media: cec: copy sequence field for the reply
        media: videobuf2-dma-sg: Fix buf->vb NULL pointer dereference
        media: v4l2-core: fix VIDIOC_DQEVENT handling on non-x86
      c7756f3a
    • Nadav Amit's avatar
      hugetlbfs: flush before unlock on move_hugetlb_page_tables() · 13e4ad2c
      Nadav Amit authored
      We must flush the TLB before releasing i_mmap_rwsem to avoid the
      potential reuse of an unshared PMDs page.  This is not true in the case
      of move_hugetlb_page_tables().  The last reference on the page table can
      therefore be dropped before the TLB flush took place.
      
      Prevent it by reordering the operations and flushing the TLB before
      releasing i_mmap_rwsem.
      
      Fixes: 550a7d60 ("mm, hugepages: add mremap() support for hugepage backed vma")
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Reviewed-by: default avatarMike Kravetz <mike.kravetz@oracle.com>
      Cc: Mina Almasry <almasrymina@google.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      13e4ad2c
    • Nadav Amit's avatar
      hugetlbfs: flush TLBs correctly after huge_pmd_unshare · a4a118f2
      Nadav Amit authored
      When __unmap_hugepage_range() calls to huge_pmd_unshare() succeed, a TLB
      flush is missing.  This TLB flush must be performed before releasing the
      i_mmap_rwsem, in order to prevent an unshared PMDs page from being
      released and reused before the TLB flush took place.
      
      Arguably, a comprehensive solution would use mmu_gather interface to
      batch the TLB flushes and the PMDs page release, however it is not an
      easy solution: (1) try_to_unmap_one() and try_to_migrate_one() also call
      huge_pmd_unshare() and they cannot use the mmu_gather interface; and (2)
      deferring the release of the page reference for the PMDs page until
      after i_mmap_rwsem is dropeed can confuse huge_pmd_unshare() into
      thinking PMDs are shared when they are not.
      
      Fix __unmap_hugepage_range() by adding the missing TLB flush, and
      forcing a flush when unshare is successful.
      
      Fixes: 24669e58 ("hugetlb: use mmu_gather instead of a temporary linked list for accumulating pages)" # 3.6
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Reviewed-by: default avatarMike Kravetz <mike.kravetz@oracle.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a4a118f2
  3. 21 Nov, 2021 5 commits
    • Linus Torvalds's avatar
      Linux 5.16-rc2 · 13605725
      Linus Torvalds authored
      13605725
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2021-11-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 40c93d7f
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
      
       - Move the command line preparation and the early command line parsing
         earlier so that the command line parameters which affect
         early_reserve_memory(), e.g. efi=nosftreserve, are taken into
         account. This was broken when the invocation of
         early_reserve_memory() was moved recently.
      
       - Use an atomic type for the SGX page accounting, which is read and
         written locklessly, to plug various race conditions related to it.
      
      * tag 'x86-urgent-2021-11-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/sgx: Fix free page accounting
        x86/boot: Pull up cmdline preparation and early param parsing
      40c93d7f
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2021-11-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · af16bdea
      Linus Torvalds authored
      Pull x86 perf fixes from Thomas Gleixner:
      
       - Remove unneded PEBS disabling when taking LBR snapshots to prevent an
         unchecked MSR access error.
      
       - Fix IIO event constraints for Snowridge and Skylake server chips.
      
      * tag 'perf-urgent-2021-11-21' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/perf: Fix snapshot_branch_stack warning in VM
        perf/x86/intel/uncore: Fix IIO event constraints for Snowridge
        perf/x86/intel/uncore: Fix IIO event constraints for Skylake Server
        perf/x86/intel/uncore: Fix filter_tid mask for CHA events on Skylake Server
      af16bdea
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 75603b14
      Linus Torvalds authored
      Pull more powerpc fixes from Michael Ellerman:
      
       - Fix a bug in copying of sigset_t for 32-bit systems, which caused X
         to not start.
      
       - Fix handling of shared LSIs (rare) with the xive interrupt controller
         (Power9/10).
      
       - Fix missing TOC setup in some KVM code, which could result in oopses
         depending on kernel data layout.
      
       - Fix DMA mapping when we have persistent memory and only one DMA
         window available.
      
       - Fix further problems with STRICT_KERNEL_RWX on 8xx, exposed by a
         recent fix.
      
       - A couple of other minor fixes.
      
      Thanks to Alexey Kardashevskiy, Aneesh Kumar K.V, Cédric Le Goater,
      Christian Zigotzky, Christophe Leroy, Daniel Axtens, Finn Thain, Greg
      Kurz, Masahiro Yamada, Nicholas Piggin, and Uwe Kleine-König.
      
      * tag 'powerpc-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/xive: Change IRQ domain to a tree domain
        powerpc/8xx: Fix pinned TLBs with CONFIG_STRICT_KERNEL_RWX
        powerpc/signal32: Fix sigset_t copy
        powerpc/book3e: Fix TLBCAM preset at boot
        powerpc/pseries/ddw: Do not try direct mapping with persistent memory and one window
        powerpc/pseries/ddw: simplify enable_ddw()
        powerpc/pseries/ddw: Revert "Extend upper limit for huge DMA window for persistent memory"
        powerpc/pseries: Fix numa FORM2 parsing fallback code
        powerpc/pseries: rename numa_dist_table to form2_distances
        powerpc: clean vdso32 and vdso64 directories
        powerpc/83xx/mpc8349emitx: Drop unused variable
        KVM: PPC: Book3S HV: Use GLOBAL_TOC for kvmppc_h_set_dabr/xdabr()
      75603b14
    • Geert Uytterhoeven's avatar
      pstore/blk: Use "%lu" to format unsigned long · 61eb495c
      Geert Uytterhoeven authored
      On 32-bit:
      
          fs/pstore/blk.c: In function ‘__best_effort_init’:
          include/linux/kern_levels.h:5:18: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
      	5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
      	  |                  ^~~~~~
          include/linux/kern_levels.h:14:19: note: in expansion of macro ‘KERN_SOH’
             14 | #define KERN_INFO KERN_SOH "6" /* informational */
      	  |                   ^~~~~~~~
          include/linux/printk.h:373:9: note: in expansion of macro ‘KERN_INFO’
            373 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
      	  |         ^~~~~~~~~
          fs/pstore/blk.c:314:3: note: in expansion of macro ‘pr_info’
            314 |   pr_info("attached %s (%zu) (no dedicated panic_write!)\n",
      	  |   ^~~~~~~
      
      Cc: stable@vger.kernel.org
      Fixes: 7bb9557b ("pstore/blk: Use the normal block device I/O path")
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Link: https://lore.kernel.org/r/20210629103700.1935012-1-geert@linux-m68k.org
      Cc: Jens Axboe <axboe@kernel.dk>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      61eb495c
  4. 20 Nov, 2021 21 commits
  5. 19 Nov, 2021 10 commits
    • Linus Torvalds's avatar
      Merge tag 'libata-5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · a90af8f1
      Linus Torvalds authored
      Pull libata fixes from Damien Le Moal:
      
       - Prevent accesses to unsupported log pages as that causes device scan
         failures with LLDDs using libsas (from me).
      
       - A couple of fixes for AMD AHCI adapters handling of low power modes
         and resume (from Mario).
      
       - Fix a compilation warning (from me).
      
      * tag 'libata-5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: libata-sata: Declare ata_ncq_sdev_attrs static
        ata: libahci: Adjust behavior when StorageD3Enable _DSD is set
        ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile
        ata: libata: add missing ata_identify_page_supported() calls
        ata: libata: improve ata_read_log_page() error message
      a90af8f1
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.16-6' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · e4365e36
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix double free in destroy_hist_field
      
       - Harden memset() of trace_iterator structure
      
       - Do not warn in trace printk check when test buffer fills up
      
      * tag 'trace-v5.16-6' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Don't use out-of-sync va_list in event printing
        tracing: Use memset_startat() to zero struct trace_iterator
        tracing/histogram: Fix UAF in destroy_hist_field()
      e4365e36
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.16-2021-11-19' of... · 8b98436a
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.16-2021-11-19' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix the 'local_weight', 'weight' (memory access latency),
         'local_ins_lat', 'ins_lat' (instruction latency) and 'pstage_cyc'
         (pipeline stage cycles) sort key sample aggregation.
      
       - Fix 'perf test' entry for watchpoints on s/390.
      
       - Fix branch_stack entry endianness check in the 'perf test' sample
         parsing test.
      
       - Fix ARM SPE handling on 'perf inject'.
      
       - Fix memory leaks detected with ASan.
      
       - Fix build on arm64 related to reallocarray() availability.
      
       - Sync copies of kernel headers: cpufeatures, kvm, MIPS syscalltable
         (futex_waitv).
      
      * tag 'perf-tools-fixes-for-v5.16-2021-11-19' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf evsel: Fix memory leaks relating to unit
        perf report: Fix memory leaks around perf_tip()
        perf hist: Fix memory leak of a perf_hpp_fmt
        tools headers UAPI: Sync MIPS syscall table file changed by new futex_waitv syscall
        tools build: Fix removal of feature-sync-compare-and-swap feature detection
        perf inject: Fix ARM SPE handling
        perf bench: Fix two memory leaks detected with ASan
        perf test sample-parsing: Fix branch_stack entry endianness check
        tools headers UAPI: Sync x86's asm/kvm.h with the kernel sources
        perf sort: Fix the 'p_stage_cyc' sort key behavior
        perf sort: Fix the 'ins_lat' sort key behavior
        perf sort: Fix the 'weight' sort key behavior
        perf tools: Set COMPAT_NEED_REALLOCARRAY for CONFIG_AUXTRACE=1
        perf tests wp: Remove unused functions on s390
        tools headers UAPI: Sync linux/kvm.h with the kernel sources
        tools headers cpufeatures: Sync with the kernel sources
      8b98436a
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 9539ba43
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
       "I have two patches for 5.16:
      
         - allow external modules to be built against read-only source trees
      
         - turn KVM on in the defconfigs
      
        The second one isn't technically a fix, but it got tied up pending
        some defconfig cleanups that ended up finding some larger issues. I
        figured it'd be better to get the config changes some more testing,
        but didn't want to hold up turning KVM on for that"
      
      * tag 'riscv-for-linus-5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: fix building external modules
        RISC-V: Enable KVM in RV64 and RV32 defconfigs as a module
      9539ba43
    • Linus Torvalds's avatar
      Merge branch 'SA_IMMUTABLE-fixes-for-v5.16-rc2' of... · 7af959b5
      Linus Torvalds authored
      Merge branch 'SA_IMMUTABLE-fixes-for-v5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull exit-vs-signal handling fixes from Eric Biederman:
       "This is a small set of changes where debuggers were no longer able to
        intercept synchronous SIGTRAP and SIGSEGV, introduced by the exit
        cleanups.
      
        This is essentially the change you suggested with all of i's dotted
        and the t's crossed so that ptrace can intercept all of the cases it
        has been able to intercept the past, and all of the cases that made it
        to exit without giving ptrace a chance still don't give ptrace a
        chance"
      
      * 'SA_IMMUTABLE-fixes-for-v5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        signal: Replace force_fatal_sig with force_exit_sig when in doubt
        signal: Don't always set SA_IMMUTABLE for forced signals
      7af959b5
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · ecd510d2
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Six fixes, five in drivers (ufs, qla2xxx, iscsi) and one core change
        to fix a regression in user space device state setting, which is used
        by the iscsi daemons to effect device recovery"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: Fix mailbox direction flags in qla2xxx_get_adapter_id()
        scsi: ufs: core: Fix another task management completion race
        scsi: ufs: core: Fix task management completion timeout race
        scsi: core: sysfs: Fix hang when device state is set via sysfs
        scsi: iscsi: Unblock session then wake up error handler
        scsi: ufs: core: Improve SCSI abort handling
      ecd510d2
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · a8b5f8f2
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "There are a few big regression items from the merge window suggesting
        that people are testing rc1's but not testing the for-next branches:
      
         - Warnings fixes
      
         - Crash in hf1 when creating QPs and setting counters
      
         - Some old mlx4 cards fail to probe due to missing counters
      
         - Syzkaller crash in the new counters code"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        MAINTAINERS: Update for VMware PVRDMA driver
        RDMA/nldev: Check stat attribute before accessing it
        RDMA/mlx4: Do not fail the registration on port stats
        IB/hfi1: Properly allocate rdma counter desc memory
        RDMA/core: Set send and receive CQ before forwarding to the driver
        RDMA/netlink: Add __maybe_unused to static inline in C file
      a8b5f8f2
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 44791698
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - fix a coccicheck warning in gpio-virtio
      
       - fix gpio selftests build issues
      
       - fix a Kconfig issue in gpio-rockchip
      
      * tag 'gpio-fixes-for-v5.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: rockchip: needs GENERIC_IRQ_CHIP to fix build errors
        selftests: gpio: restore CFLAGS options
        selftests: gpio: fix uninitialised variable warning
        selftests: gpio: fix gpio compiling error
        gpio: virtio: remove unneeded semicolon
      44791698
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-11-19' of git://anongit.freedesktop.org/drm/drm · ad44518a
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "This week's fixes, pretty quiet, about right for rc2. amdgpu is the
        bulk of them but the scheduler ones have been reported in a few places
        I think.
      
        Otherwise just some minor i915 fixes and a few other scattered around:
      
        scheduler:
         - two refcounting fixes
      
        cma-helper:
         - use correct free path for noncoherent
      
        efifb:
         - probing fix
      
        amdgpu:
         - Better debugging info for SMU msgs
         - Better error reporting when adding IP blocks
         - Fix UVD powergating regression on CZ
         - Clock reporting fix for navi1x
         - OLED panel backlight fix
         - Fix scaling on VGA/DVI for non-DC display code
         - Fix GLFCLK handling for RGP on some APUs
         - fix potential memory leak
      
        amdkfd:
         - GPU reset fix
      
        i915:
         - return error handling fix
         - ADL-P display fix
         - TGL DSI display clocks fix
      
        nouveau:
         - infoframe corruption fix
      
        sun4i:
         - Kconfig fix"
      
      * tag 'drm-fixes-2021-11-19' of git://anongit.freedesktop.org/drm/drm:
        drm/amd/amdgpu: fix potential memleak
        drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again
        drm/amd/pm: add GFXCLK/SCLK clocks level print support for APUs
        drm/amdgpu: fix set scaling mode Full/Full aspect/Center not works on vga and dvi connectors
        drm/amd/display: Fix OLED brightness control on eDP
        drm/amd/pm: Remove artificial freq level on Navi1x
        drm/amd/pm: avoid duplicate powergate/ungate setting
        drm/amdgpu: add error print when failing to add IP block(v2)
        drm/amd/pm: Enhanced reporting also for a stuck command
        drm/i915/guc: fix NULL vs IS_ERR() checking
        drm/i915/dsi/xelpd: Fix the bit mask for wakeup GB
        Revert "drm/i915/tgl/dsi: Gate the ddi clocks after pll mapping"
        fbdev: Prevent probing generic drivers if a FB is already registered
        drm/scheduler: fix drm_sched_job_add_implicit_dependencies harder
        drm/scheduler: fix drm_sched_job_add_implicit_dependencies
        drm/sun4i: fix unmet dependency on RESET_CONTROLLER for PHY_SUN6I_MIPI_DPHY
        drm/cma-helper: Release non-coherent memory with dma_free_noncoherent()
        drm/nouveau: hdmigv100.c: fix corrupted HDMI Vendor InfoFrame
      ad44518a
    • Peter Zijlstra's avatar
      x86: Pin task-stack in __get_wchan() · 0dc636b3
      Peter Zijlstra authored
      When commit 5d1ceb39 ("x86: Fix __get_wchan() for !STACKTRACE")
      moved from stacktrace to native unwind_*() usage, the
      try_get_task_stack() got lost, leading to use-after-free issues for
      dying tasks.
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Fixes: 5d1ceb39 ("x86: Fix __get_wchan() for !STACKTRACE")
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=215031
      Link: https://lore.kernel.org/stable/YZV02RCRVHIa144u@fedora64.linuxtx.org/Reported-by: default avatarJustin Forbes <jmforbes@linuxtx.org>
      Reported-by: default avatarHolger Hoffstätte <holger@applied-asynchrony.com>
      Cc: Qi Zheng <zhengqi.arch@bytedance.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0dc636b3