1. 17 May, 2022 2 commits
    • Max Filippov's avatar
      xtensa: improve call0 ABI probing · 5cc5f19f
      Max Filippov authored
      When call0 userspace ABI support by probing is enabled instructions that
      cause illegal instruction exception when PS.WOE is clear are retried
      with PS.WOE set before calling c-level exception handler. Record user pc
      at which PS.WOE was set in the fast exception handler and clear PS.WOE
      in the c-level exception handler if we get there from the same address.
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      5cc5f19f
    • Max Filippov's avatar
      xtensa: support artificial division by 0 exception · d7486200
      Max Filippov authored
      On xtensa cores wihout hardware division option division support
      functions from libgcc react to division by 0 attempt by executing
      illegal instruction followed by the characters 'DIV0'. Recognize this
      pattern in illegal instruction exception handler and convert it to
      division by 0.
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      d7486200
  2. 13 May, 2022 1 commit
  3. 11 May, 2022 2 commits
    • Yi Yang's avatar
      xtensa/simdisk: fix proc_read_simdisk() · b011946d
      Yi Yang authored
      The commit a69755b1 ("xtensa simdisk: switch to proc_create_data()")
      split read operation into two parts, first retrieving the path when it's
      non-null and second retrieving the trailing '\n'. However when the path
      is non-null the first simple_read_from_buffer updates ppos, and the
      second simple_read_from_buffer returns 0 if ppos is greater than 1 (i.e.
      almost always). As a result reading from that proc file is almost always
      empty.
      
      Fix it by making a temporary copy of the path with the trailing '\n' and
      using simple_read_from_buffer on that copy.
      
      Cc: stable@vger.kernel.org
      Fixes: a69755b1 ("xtensa simdisk: switch to proc_create_data()")
      Signed-off-by: default avatarYi Yang <yiyang13@huawei.com>
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      b011946d
    • Jason Wang's avatar
      xtensa: no need to initialise statics to 0 · c6ab42b3
      Jason Wang authored
      Static variables do not need to be initialised to 0, because compiler
      will initialise all uninitialised statics to 0. Thus, remove the
      unneeded initializations.
      Signed-off-by: default avatarJason Wang <wangborong@cdjrlc.com>
      Message-Id: <20220508022910.98481-1-wangborong@cdjrlc.com>
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      c6ab42b3
  4. 02 May, 2022 30 commits
  5. 01 May, 2022 5 commits
    • Linus Torvalds's avatar
      Linux 5.18-rc5 · 672c0c51
      Linus Torvalds authored
      672c0c51
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · b6b26489
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM:
      
         - Take care of faults occuring between the PARange and IPA range by
           injecting an exception
      
         - Fix S2 faults taken from a host EL0 in protected mode
      
         - Work around Oops caused by a PMU access from a 32bit guest when PMU
           has been created. This is a temporary bodge until we fix it for
           good.
      
        x86:
      
         - Fix potential races when walking host page table
      
         - Fix shadow page table leak when KVM runs nested
      
         - Work around bug in userspace when KVM synthesizes leaf 0x80000021
           on older (pre-EPYC) or Intel processors
      
        Generic (but affects only RISC-V):
      
         - Fix bad user ABI for KVM_EXIT_SYSTEM_EVENT"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: x86: work around QEMU issue with synthetic CPUID leaves
        Revert "x86/mm: Introduce lookup_address_in_mm()"
        KVM: x86/mmu: fix potential races when walking host page table
        KVM: fix bad user ABI for KVM_EXIT_SYSTEM_EVENT
        KVM: x86/mmu: Do not create SPTEs for GFNs that exceed host.MAXPHYADDR
        KVM: arm64: Inject exception on out-of-IPA-range translation fault
        KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set
        KVM: arm64: Handle host stage-2 faults from 32-bit EL0
      b6b26489
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b2da7df5
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - A fix to disable PCI/MSI[-X] masking for XEN_HVM guests as that is
         solely controlled by the hypervisor
      
       - A build fix to make the function prototype (__warn()) as visible as
         the definition itself
      
       - A bunch of objtool annotation fixes which have accumulated over time
      
       - An ORC unwinder fix to handle bad input gracefully
      
       - Well, we thought the microcode gets loaded in time in order to
         restore the microcode-emulated MSRs but we thought wrong. So there's
         a fix for that to have the ordering done properly
      
       - Add new Intel model numbers
      
       - A spelling fix
      
      * tag 'x86_urgent_for_v5.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/pci/xen: Disable PCI/MSI[-X] masking for XEN_HVM guests
        bug: Have __warn() prototype defined unconditionally
        x86/Kconfig: fix the spelling of 'becoming' in X86_KERNEL_IBT config
        objtool: Use offstr() to print address of missing ENDBR
        objtool: Print data address for "!ENDBR" data warnings
        x86/xen: Add ANNOTATE_NOENDBR to startup_xen()
        x86/uaccess: Add ENDBR to __put_user_nocheck*()
        x86/retpoline: Add ANNOTATE_NOENDBR for retpolines
        x86/static_call: Add ANNOTATE_NOENDBR to static call trampoline
        objtool: Enable unreachable warnings for CLANG LTO
        x86,objtool: Explicitly mark idtentry_body()s tail REACHABLE
        x86,objtool: Mark cpu_startup_entry() __noreturn
        x86,xen,objtool: Add UNWIND hint
        lib/strn*,objtool: Enforce user_access_begin() rules
        MAINTAINERS: Add x86 unwinding entry
        x86/unwind/orc: Recheck address range after stack info was updated
        x86/cpu: Load microcode during restore_processor_state()
        x86/cpu: Add new Alderlake and Raptorlake CPU model numbers
      b2da7df5
    • Linus Torvalds's avatar
      Merge tag 'objtool_urgent_for_v5.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b70ed23c
      Linus Torvalds authored
      Pull objtool fixes from Borislav Petkov:
       "A bunch of objtool fixes to improve unwinding, sibling call detection,
        fallthrough detection and relocation handling of weak symbols when the
        toolchain strips section symbols"
      
      * tag 'objtool_urgent_for_v5.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Fix code relocs vs weak symbols
        objtool: Fix type of reloc::addend
        objtool: Fix function fallthrough detection for vmlinux
        objtool: Fix sibling call detection in alternatives
        objtool: Don't set 'jump_dest' for sibling calls
        x86/uaccess: Don't jump between functions
      b70ed23c
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v5.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d4af0c17
      Linus Torvalds authored
      Pull irq fix from Borislav Petkov:
      
       - Fix locking when accessing device MSI descriptors
      
      * tag 'irq_urgent_for_v5.18_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        bus: fsl-mc-msi: Fix MSI descriptor mutex lock for msi_first_desc()
      d4af0c17