1. 11 Dec, 2021 30 commits
  2. 10 Dec, 2021 10 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
    • Chris Packham's avatar
      i2c: mpc: Use atomic read and fix break condition · a74c313a
      Chris Packham authored
      Maxime points out that the polling code in mpc_i2c_isr should use the
      _atomic API because it is called in an irq context and that the
      behaviour of the MCF bit is that it is 1 when the byte transfer is
      complete. All of this means the original code was effectively a
      udelay(100).
      
      Fix this by using readb_poll_timeout_atomic() and removing the negation
      of the break condition.
      
      Fixes: 4a8ac5e4 ("i2c: mpc: Poll for MCF")
      Reported-by: default avatarMaxime Bizon <mbizon@freebox.fr>
      Signed-off-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
      Tested-by: default avatarMaxime Bizon <mbizon@freebox.fr>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      a74c313a
    • Jens Axboe's avatar
      io-wq: check for wq exit after adding new worker task_work · 71a85387
      Jens Axboe authored
      We check IO_WQ_BIT_EXIT before attempting to create a new worker, and
      wq exit cancels pending work if we have any. But it's possible to have
      a race between the two, where creation checks exit finding it not set,
      but we're in the process of exiting. The exit side will cancel pending
      creation task_work, but there's a gap where we add task_work after we've
      canceled existing creations at exit time.
      
      Fix this by checking the EXIT bit post adding the creation task_work.
      If it's set, run the same cancelation that exit does.
      
      Reported-and-tested-by: syzbot+b60c982cb0efc5e05a47@syzkaller.appspotmail.com
      Reviewed-by: default avatarHao Xu <haoxu@linux.alibaba.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      71a85387
    • Jens Axboe's avatar
      io_uring: ensure task_work gets run as part of cancelations · 78a78060
      Jens Axboe authored
      If we successfully cancel a work item but that work item needs to be
      processed through task_work, then we can be sleeping uninterruptibly
      in io_uring_cancel_generic() and never process it. Hence we don't
      make forward progress and we end up with an uninterruptible sleep
      warning.
      
      While in there, correct a comment that should be IFF, not IIF.
      
      Reported-and-tested-by: syzbot+21e6887c0be14181206d@syzkaller.appspotmail.com
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      78a78060
    • 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