1. 11 Dec, 2021 28 commits
  2. 10 Dec, 2021 12 commits
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 9e65da13
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Create the output directory for the ACPI tools during build if it has
        not been present before and prevent the compilation from failing in
        that case (Chen Yu)"
      
      * tag 'acpi-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: tools: Fix compilation when output directory is not present
      9e65da13
    • Linus Torvalds's avatar
      Merge tag 'pm-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d46bca63
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a kernedoc comment that doesn't match the behavior of the function
        documented by it"
      
      * tag 'pm-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PM: runtime: Fix pm_runtime_active() kerneldoc comment
      d46bca63
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v5.16-rc5' of... · 1e050cd5
      Linus Torvalds authored
      Merge tag 'hwmon-for-v5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - In the pwm-fan driver, ensure that the internal pwm state matches the
         state assumed by the pwm code.
      
       - Avoid EREMOTEIO errors in sht4 driver
      
       - In the nct6775 driver, make it explicit that the register value
         passed to nct6775_asuswmi_read() is an 8-bit value
      
       - Avoid WARNing in dell-smm driver removal after failing to create
         /proc/i8k
      
       - Stop using a plain integer as NULL pointer in corsair-psu driver
      
      * tag 'hwmon-for-v5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (pwm-fan) Ensure the fan going on in .probe()
        hwmon: (sht4x) Fix EREMOTEIO errors
        hwmon: (nct6775) mask out bank number in nct6775_wmi_read_value()
        hwmon: (dell-smm) Fix warning on /proc/i8k creation error
        hwmon: (corsair-psu) fix plain integer used as NULL pointer
      1e050cd5
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 257dcf29
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
       "Tracing, ftrace and tracefs fixes:
      
         - Have tracefs honor the gid mount option
      
         - Have new files in tracefs inherit the parent ownership
      
         - Have direct_ops unregister when it has no more functions
      
         - Properly clean up the ops when unregistering multi direct ops
      
         - Add a sample module to test the multiple direct ops
      
         - Fix memory leak in error path of __create_synth_event()"
      
      * tag 'trace-v5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Fix possible memory leak in __create_synth_event() error path
        ftrace/samples: Add module to test multi direct modify interface
        ftrace: Add cleanup to unregister_ftrace_direct_multi
        ftrace: Use direct_ops hash in unregister_ftrace_direct
        tracefs: Set all files to the same group ownership as the mount option
        tracefs: Have new files inherit the ownership of their parent
      257dcf29
    • Linus Torvalds's avatar
      Merge tag 'aio-poll-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux · 0d21e668
      Linus Torvalds authored
      Pull aio poll fixes from Eric Biggers:
       "Fix three bugs in aio poll, and one issue with POLLFREE more broadly:
      
         - aio poll didn't handle POLLFREE, causing a use-after-free.
      
         - aio poll could block while the file is ready.
      
         - aio poll called eventfd_signal() when it isn't allowed.
      
         - POLLFREE didn't handle multiple exclusive waiters correctly.
      
        This has been tested with the libaio test suite, as well as with test
        programs I wrote that reproduce the first two bugs. I am sending this
        pull request myself as no one seems to be maintaining this code"
      
      * tag 'aio-poll-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
        aio: Fix incorrect usage of eventfd_signal_allowed()
        aio: fix use-after-free due to missing POLLFREE handling
        aio: keep poll requests on waitqueue until completed
        signalfd: use wake_up_pollfree()
        binder: use wake_up_pollfree()
        wait: add wake_up_pollfree()
      0d21e668
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · b9172f9e
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "More x86 fixes:
      
         - Logic bugs in CR0 writes and Hyper-V hypercalls
      
         - Don't use Enlightened MSR Bitmap for L3
      
         - Remove user-triggerable WARN
      
        Plus a few selftest fixes and a regression test for the
        user-triggerable WARN"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        selftests: KVM: Add test to verify KVM doesn't explode on "bad" I/O
        KVM: x86: Don't WARN if userspace mucks with RCX during string I/O exit
        KVM: X86: Raise #GP when clearing CR0_PG in 64 bit mode
        selftests: KVM: avoid failures due to reserved HyperTransport region
        KVM: x86: Ignore sparse banks size for an "all CPUs", non-sparse IPI req
        KVM: x86: Wait for IPIs to be delivered when handling Hyper-V TLB flush hypercall
        KVM: x86: selftests: svm_int_ctl_test: fix intercept calculation
        KVM: nVMX: Don't use Enlightened MSR Bitmap for L3
      b9172f9e
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.16-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · b8a98b6b
      Linus Torvalds authored
      Pull PCI fixes from Bjorn Helgaas:
      
       - Revert emulation of Marvell Armada A3720 expansion ROM because it
         doesn't work as expected (Marek Behún)
      
       - Assert PERST# in Apple M1 driver to fix initialization when booting
         from bootloaders using PCIe, such as U-Boot (Marc Zyngier)
      
       - Describe PERST# as active low in Apple T8103 DT and update driver to
         match (Marc Zyngier)
      
      * tag 'pci-v5.16-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        PCI: apple: Fix PERST# polarity
        arm64: dts: apple: t8103: Mark PCIe PERST# polarity active low in DT
        PCI: apple: Follow the PCIe specifications when resetting the port
        Revert "PCI: aardvark: Fix support for PCI_ROM_ADDRESS1 on emulated bridge"
      b8a98b6b
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 2ca4b651
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - mtk-sd: Fix memory leak during tuning
      
       - renesas_sdhi: Initialize variable properly when tuning
      
      * tag 'mmc-v5.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: mediatek: free the ext_csd when mmc_get_ext_csd success
        mmc: renesas_sdhi: initialize variable properly when tuning
      2ca4b651
    • Linus Torvalds's avatar
      Merge tag 'libata-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · bec8cb26
      Linus Torvalds authored
      Pull libata fixes from Damien Le Moal:
      
       - Fix a sparse warning in the ahci_ceva driver (me)
      
       - Disable the ASMedia 1092 non-functional device (Hannes)
      
      * tag 'libata-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        libata: add horkage for ASMedia 1092
        ata: ahci_ceva: Fix id array access in ceva_ahci_read_id()
      bec8cb26
    • Linus Torvalds's avatar
      Merge tag 'sound-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 5b46fb03
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Another collection of small fixes. It's still not quite calm yet, but
        nothing looks scary.
      
        ALSA core got a few fixes for covering the issues detected by fuzzer
        and the 32bit compat problem of control API, while the rest are all
        device-specific small fixes, including the continued fixes for Tegra"
      
      * tag 'sound-5.16-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (23 commits)
        ALSA: hda/realtek - Add headset Mic support for Lenovo ALC897 platform
        ALSA: usb-audio: Reorder snd_djm_devices[] entries
        ALSA: hda/realtek: Fix quirk for TongFang PHxTxX1
        ALSA: ctl: Fix copy of updated id with element read/write
        ALSA: pcm: oss: Handle missing errors in snd_pcm_oss_change_params*()
        ALSA: pcm: oss: Limit the period size to 16MB
        ALSA: pcm: oss: Fix negative period/buffer sizes
        ASoC: codecs: wsa881x: fix return values from kcontrol put
        ASoC: codecs: wcd934x: return correct value from mixer put
        ASoC: codecs: wcd934x: handle channel mappping list correctly
        ASoC: qdsp6: q6routing: Fix return value from msm_routing_put_audio_mixer
        ASoC: SOF: Intel: Retry codec probing if it fails
        ASoC: amd: fix uninitialized variable in snd_acp6x_probe()
        ASoC: rockchip: i2s_tdm: Dup static DAI template
        ASoC: rt5682s: Fix crash due to out of scope stack vars
        ASoC: rt5682: Fix crash due to out of scope stack vars
        ASoC: tegra: Use normal system sleep for ADX
        ASoC: tegra: Use normal system sleep for AMX
        ASoC: tegra: Use normal system sleep for Mixer
        ASoC: tegra: Use normal system sleep for MVC
        ...
      5b46fb03
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-12-10' of git://anongit.freedesktop.org/drm/drm · 9b302ffe
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes, pretty small overall, couple of core fixes, two i915
        and two amdgpu, hopefully it stays this quiet.
      
        ttm:
         - fix ttm_bo_swapout
      
        syncobj:
         - fix fence find bug with signalled fences
      
        i915:
         - fix error pointer deref in gem execbuffer
         - fix for GT init with GuC/HuC on ICL
      
        amdgpu:
         - DPIA fix
         - eDP fix"
      
      * tag 'drm-fixes-2021-12-10' of git://anongit.freedesktop.org/drm/drm:
        drm/i915/gen11: Moving WAs to icl_gt_workarounds_init()
        drm/amd/display: prevent reading unitialized links
        drm/amd/display: Fix DPIA outbox timeout after S3/S4/reset
        drm/i915: Fix error pointer dereference in i915_gem_do_execbuffer()
        drm/syncobj: Deal with signalled fences in drm_syncobj_find_fence.
        drm/ttm: fix ttm_bo_swapout
      9b302ffe
    • J. Bruce Fields's avatar
      nfsd: fix use-after-free due to delegation race · 548ec080
      J. Bruce Fields authored
      A delegation break could arrive as soon as we've called vfs_setlease.  A
      delegation break runs a callback which immediately (in
      nfsd4_cb_recall_prepare) adds the delegation to del_recall_lru.  If we
      then exit nfs4_set_delegation without hashing the delegation, it will be
      freed as soon as the callback is done with it, without ever being
      removed from del_recall_lru.
      
      Symptoms show up later as use-after-free or list corruption warnings,
      usually in the laundromat thread.
      
      I suspect aba2072f "nfsd: grant read delegations to clients holding
      writes" made this bug easier to hit, but I looked as far back as v3.0
      and it looks to me it already had the same problem.  So I'm not sure
      where the bug was introduced; it may have been there from the beginning.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      548ec080