1. Mar 03, 2023
    • Al Viro's avatar
      openrisc: fix livelock in uaccess · caa82ae7
      Al Viro authored
      openrisc equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      caa82ae7
    • Al Viro's avatar
      nios2: fix livelock in uaccess · e902e508
      Al Viro authored
      nios2 equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      e902e508
    • Al Viro's avatar
      microblaze: fix livelock in uaccess · a1179ac7
      Al Viro authored
      microblaze equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      a1179ac7
    • Al Viro's avatar
      ia64: fix livelock in uaccess · d088af1e
      Al Viro authored
      ia64 equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      d088af1e
    • Al Viro's avatar
      sparc: fix livelock in uaccess · 79c54c97
      Al Viro authored
      sparc equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      79c54c97
    • Al Viro's avatar
      alpha: fix livelock in uaccess · dce45493
      Al Viro authored
      alpha equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      dce45493
    • Al Viro's avatar
      parisc: fix livelock in uaccess · 15261678
      Al Viro authored
      parisc equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Tested-by: default avatarHelge Deller <deller@gmx.de>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      15261678
    • Al Viro's avatar
      hexagon: fix livelock in uaccess · 0b92ed09
      Al Viro authored
      hexagon equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Acked-by: default avatarBrian Cain <bcain@quicinc.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      0b92ed09
    • Al Viro's avatar
      riscv: fix livelock in uaccess · d835eb3a
      Al Viro authored
      riscv equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Tested-by: default avatarBjörn Töpel <bjorn@kernel.org>
      Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      d835eb3a
    • Al Viro's avatar
      m68k: fix livelock in uaccess · bd75497a
      Al Viro authored
      m68k equivalent of 26178ec1
      
       "x86: mm: consolidate VM_FAULT_RETRY handling"
      If e.g. get_user() triggers a page fault and a fatal signal is caught, we might
      end up with handle_mm_fault() returning VM_FAULT_RETRY and not doing anything
      to page tables.  In such case we must *not* return to the faulting insn -
      that would repeat the entire thing without making any progress; what we need
      instead is to treat that as failed (user) memory access.
      
      Tested-by: default avatarFinn Thain <fthain@linux-m68k.org>
      Tested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      bd75497a
  2. Feb 20, 2023
  3. Feb 19, 2023
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 925cf045
      Linus Torvalds authored
      Pull x86 fix from Thomas Gleixner:
       "A single fix for x86.
      
        Revert the recent change to the MTRR code which aimed to support
        SEV-SNP guests on Hyper-V. It caused a regression on XEN Dom0 kernels.
      
        The underlying issue of MTTR (mis)handling in the x86 code needs some
        deeper investigation and is definitely not 6.2 material"
      
      * tag 'x86-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mtrr: Revert 90b926e6 ("x86/pat: Fix pat_x_mtrr_type() for MTRR disabled case")
      925cf045
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0097c18e
      Linus Torvalds authored
      Pull timer fix from Thomas Gleixner:
       "A fix for a long standing issue in the alarmtimer code.
      
        Posix-timers armed with a short interval with an ignored signal result
        in an unpriviledged DoS. Due to the ignored signal the timer switches
        into self rearm mode. This issue had been "fixed" before but a rework
        of the alarmtimer code 5 years ago lost that workaround.
      
        There is no real good solution for this issue, which is also worked
        around in the core posix-timer code in the same way, but it certainly
        moved way up on the ever growing todo list"
      
      * tag 'timers-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        alarmtimer: Prevent starvation by small intervals and SIG_IGN
      0097c18e
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a33d946c
      Linus Torvalds authored
      Pull irq fix from Thomas Gleixner:
       "A single build fix for the PCI/MSI infrastructure.
      
        The addition of the new alloc/free interfaces in this cycle forgot to
        add stub functions for pci_msix_alloc_irq_at() and pci_msix_free_irq()
        for the CONFIG_PCI_MSI=n case"
      
      * tag 'irq-urgent-2023-02-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        PCI/MSI: Provide missing stubs for CONFIG_PCI_MSI=n
      a33d946c
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 5e725d11
      Linus Torvalds authored
      Pull kvm/x86 fixes from Paolo Bonzini:
      
       - zero all padding for KVM_GET_DEBUGREGS
      
       - fix rST warning
      
       - disable vPMU support on hybrid CPUs
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        kvm: initialize all of the kvm_debugregs structure before sending it to userspace
        perf/x86: Refuse to export capabilities for hybrid PMUs
        KVM: x86/pmu: Disable vPMU support on hybrid CPUs (host PMUs)
        Documentation/hw-vuln: Fix rST warning
      5e725d11
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 0c2822b1
      Linus Torvalds authored
      Pull arm64 regression fix from Will Deacon:
       "Apologies for the _extremely_ late pull request here, but we had a
        'perf' (i.e. CPU PMU) regression on the Apple M1 reported on Wednesday
        [1] which was introduced by bd275681 ("perf: Rewrite core context
        handling") during the merge window.
      
        Mark and I looked into this and noticed an additional problem caused
        by the same patch, where the 'CHAIN' event (used to combine two
        adjacent 32-bit counters into a single 64-bit counter) was not being
        filtered correctly. Mark posted a series on Thursday [2] which
        addresses both of these regressions and I queued it the same day.
      
        The changes are small, self-contained and have been confirmed to fix
        the original regression.
      
        Summary:
      
         - Fix 'perf' regression for non-standard CPU PMU hardware (i.e. Apple
           M1)"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: perf: reject CHAIN events at creation time
        arm_pmu: fix event CPU filtering
      0c2822b1
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2023-02-17' of git://git.kernel.dk/linux · 0e9fd589
      Linus Torvalds authored
      Pull block fix from Jens Axboe:
       "I guess this is what can happen when you prep things early for going
        away, something else comes in last minute. This one fixes another
        regression in 6.2 for NVMe, from this release, and hence we should
        probably get it submitted for 6.2.
      
        Still waiting for the original reporter (see bugzilla linked in the
        commit) to test this, but Keith managed to setup and recreate the
        issue and tested the patch that way"
      
      * tag 'block-6.2-2023-02-17' of git://git.kernel.dk/linux:
        nvme-pci: refresh visible attrs for cmb attributes
      0e9fd589
  4. Feb 18, 2023
  5. Feb 17, 2023