1. 08 Jul, 2021 30 commits
  2. 07 Jul, 2021 6 commits
    • Linus Torvalds's avatar
      Merge tag 'modules-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · a931dd33
      Linus Torvalds authored
      Pull module updates from Jessica Yu:
      
       - Fix incorrect logic in module_kallsyms_on_each_symbol()
      
       - Fix for a Coccinelle warning
      
      * tag 'modules-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        module: correctly exit module_kallsyms_on_each_symbol when fn() != 0
        kernel/module: Use BUG_ON instead of if condition followed by BUG
      a931dd33
    • Linus Torvalds's avatar
      Merge tag 'x86-fpu-2021-07-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1423e266
      Linus Torvalds authored
      Pull x86 fpu updates from Thomas Gleixner:
       "Fixes and improvements for FPU handling on x86:
      
         - Prevent sigaltstack out of bounds writes.
      
           The kernel unconditionally writes the FPU state to the alternate
           stack without checking whether the stack is large enough to
           accomodate it.
      
           Check the alternate stack size before doing so and in case it's too
           small force a SIGSEGV instead of silently corrupting user space
           data.
      
         - MINSIGSTKZ and SIGSTKSZ are constants in signal.h and have never
           been updated despite the fact that the FPU state which is stored on
           the signal stack has grown over time which causes trouble in the
           field when AVX512 is available on a CPU. The kernel does not expose
           the minimum requirements for the alternate stack size depending on
           the available and enabled CPU features.
      
           ARM already added an aux vector AT_MINSIGSTKSZ for the same reason.
           Add it to x86 as well.
      
         - A major cleanup of the x86 FPU code. The recent discoveries of
           XSTATE related issues unearthed quite some inconsistencies,
           duplicated code and other issues.
      
           The fine granular overhaul addresses this, makes the code more
           robust and maintainable, which allows to integrate upcoming XSTATE
           related features in sane ways"
      
      * tag 'x86-fpu-2021-07-07' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (74 commits)
        x86/fpu/xstate: Clear xstate header in copy_xstate_to_uabi_buf() again
        x86/fpu/signal: Let xrstor handle the features to init
        x86/fpu/signal: Handle #PF in the direct restore path
        x86/fpu: Return proper error codes from user access functions
        x86/fpu/signal: Split out the direct restore code
        x86/fpu/signal: Sanitize copy_user_to_fpregs_zeroing()
        x86/fpu/signal: Sanitize the xstate check on sigframe
        x86/fpu/signal: Remove the legacy alignment check
        x86/fpu/signal: Move initial checks into fpu__restore_sig()
        x86/fpu: Mark init_fpstate __ro_after_init
        x86/pkru: Remove xstate fiddling from write_pkru()
        x86/fpu: Don't store PKRU in xstate in fpu_reset_fpstate()
        x86/fpu: Remove PKRU handling from switch_fpu_finish()
        x86/fpu: Mask PKRU from kernel XRSTOR[S] operations
        x86/fpu: Hook up PKRU into ptrace()
        x86/fpu: Add PKRU storage outside of task XSAVE buffer
        x86/fpu: Dont restore PKRU in fpregs_restore_userspace()
        x86/fpu: Rename xfeatures_mask_user() to xfeatures_mask_uabi()
        x86/fpu: Move FXSAVE_LEAK quirk info __copy_kernel_to_fpregs()
        x86/fpu: Rename __fpregs_load_activate() to fpregs_restore_userregs()
        ...
      1423e266
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.14-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 4ea90317
      Linus Torvalds authored
      Pull xen updates from Juergen Gross:
       "Only two minor patches this time: one cleanup patch and one patch
        refreshing a Xen header"
      
      * tag 'for-linus-5.14-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: sync include/xen/interface/io/ring.h with Xen's newest version
        xen: Use DEVICE_ATTR_*() macro
      4ea90317
    • Linus Torvalds's avatar
      Merge tag 'Wimplicit-fallthrough-clang-5.14-rc1' of... · 383df634
      Linus Torvalds authored
      Merge tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull more fallthrough fixes from Gustavo Silva:
       "Fix maore fall-through warnings when building the kernel with clang
        and '-Wimplicit-fallthrough'"
      
      * tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
        Input: Fix fall-through warning for Clang
        scsi: aic94xx: Fix fall-through warning for Clang
        i3c: master: cdns: Fix fall-through warning for Clang
        net/mlx4: Fix fall-through warning for Clang
      383df634
    • Linus Torvalds's avatar
      Merge tag 'hwlock-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc · b5e6d126
      Linus Torvalds authored
      Pull hwspinlock updates from Bjorn Andersson:
       "This adds a driver for the hardware spinlock in Allwinner sun6i"
      
      * tag 'hwlock-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc:
        dt-bindings: hwlock: sun6i: Fix various warnings in binding
        hwspinlock: add sun6i hardware spinlock support
        dt-bindings: hwlock: add sun6i_hwspinlock
      b5e6d126
    • Linus Torvalds's avatar
      Merge tag 'rproc-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc · d0fe3f47
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "This adds support for controlling the PRU and R5F clusters on the TI
        AM64x, the remote processor in i.MX7ULP, i.MX8MN/P and i.MX8ULP NXP
        and the audio, compute and modem remoteprocs in the Qualcomm SC8180x
        platform.
      
        It fixes improper ordering of cdev and device creation of the
        remoteproc control interface and it fixes resource leaks in the error
        handling path of rproc_add() and the Qualcomm modem and wifi
        remoteproc drivers.
      
        Lastly it fixes a few build warnings and replace the dummy parameter
        passed in the mailbox api of the stm32 driver to something not living
        on the stack"
      
      * tag 'rproc-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc: (32 commits)
        remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss
        dt-bindings: remoteproc: qcom: pas: Add SC8180X adsp, cdsp and mpss
        remoteproc: imx_rproc: support i.MX8ULP
        dt-bindings: remoteproc: imx_rproc: support i.MX8ULP
        remoteproc: stm32: fix mbox_send_message call
        remoteproc: core: Cleanup device in case of failure
        remoteproc: core: Fix cdev remove and rproc del
        remoteproc: core: Move validate before device add
        remoteproc: core: Move cdev add before device add
        remoteproc: pru: Add support for various PRU cores on K3 AM64x SoCs
        dt-bindings: remoteproc: pru: Update bindings for K3 AM64x SoCs
        remoteproc: qcom_wcnss: Use devm_qcom_smem_state_get()
        remoteproc: qcom_q6v5: Use devm_qcom_smem_state_get() to fix missing put()
        soc: qcom: smem_state: Add devm_qcom_smem_state_get()
        dt-bindings: remoteproc: qcom: pas: Fix indentation warnings
        remoteproc: imx-rproc: Fix IMX_REMOTEPROC configuration
        remoteproc: imx_rproc: support i.MX8MN/P
        remoteproc: imx_rproc: support i.MX7ULP
        remoteproc: imx_rproc: make clk optional
        remoteproc: imx_rproc: initial support for mutilple start/stop method
        ...
      d0fe3f47
  3. 06 Jul, 2021 4 commits
    • Gustavo A. R. Silva's avatar
      Input: Fix fall-through warning for Clang · f1469e56
      Gustavo A. R. Silva authored
      In preparation to enable -Wimplicit-fallthrough for Clang, fix a
      warning by explicitly adding a fallthrough; statement.
      
      Notice that this seems to be a Duff device for performance[1]. So,
      although the code looks a bit _funny_, I didn't want to refactor
      or modify it beyond merely adding a fallthrough marking, which
      might be the least disruptive way to fix this issue.
      
      [1] https://www.drdobbs.com/a-reusable-duff-device/184406208
      
      Link: https://github.com/KSPP/linux/issues/115Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      f1469e56
    • Gustavo A. R. Silva's avatar
      scsi: aic94xx: Fix fall-through warning for Clang · 4e1c8c17
      Gustavo A. R. Silva authored
      In preparation to enable -Wimplicit-fallthrough for Clang, fix a
      warning by explicitly adding a fallthrough; statement.
      
      Notice that this seems to be a Duff device for performance[1]. So,
      although the code looks a bit _funny_, I didn't want to refactor
      or modify it beyond merely adding a fallthrough marking, which
      might be the least disruptive way to fix this issue.
      
      [1] https://www.drdobbs.com/a-reusable-duff-device/184406208
      
      Link: https://github.com/KSPP/linux/issues/115Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      4e1c8c17
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 77d34a46
      Linus Torvalds authored
      Pull ARM development updates from Russell King:
      
       - Make it clear __swp_entry_to_pte() uses PTE_TYPE_FAULT
      
       - Updates for setting vmalloc size via command line to resolve an issue
         with the 8MiB hole not properly being accounted for, and clean up the
         code.
      
       - ftrace support for module PLTs
      
       - Spelling fixes
      
       - kbuild updates for removing generated files and pattern rules for
         generating files
      
       - Clang/llvm updates
      
       - Change the way the kernel is mapped, placing it in vmalloc space
         instead.
      
       - Remove arm_pm_restart from arm and aarch64.
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: (29 commits)
        ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE
        ARM: 9097/1: mmu: Declare section start/end correctly
        ARM: 9096/1: Remove arm_pm_restart()
        ARM: 9095/1: ARM64: Remove arm_pm_restart()
        ARM: 9094/1: Register with kernel restart handler
        ARM: 9093/1: drivers: firmwapsci: Register with kernel restart handler
        ARM: 9092/1: xen: Register with kernel restart handler
        ARM: 9091/1: Revert "mm: qsd8x50: Fix incorrect permission faults"
        ARM: 9090/1: Map the lowmem and kernel separately
        ARM: 9089/1: Define kernel physical section start and end
        ARM: 9088/1: Split KERNEL_OFFSET from PAGE_OFFSET
        ARM: 9087/1: kprobes: test-thumb: fix for LLVM_IAS=1
        ARM: 9086/1: syscalls: use pattern rules to generate syscall headers
        ARM: 9085/1: remove unneeded abi parameter to syscallnr.sh
        ARM: 9084/1: simplify the build rule of mach-types.h
        ARM: 9083/1: uncompress: atags_to_fdt: Spelling s/REturn/Return/
        ARM: 9082/1: [v2] mark prepare_page_table as __init
        ARM: 9079/1: ftrace: Add MODULE_PLTS support
        ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link()
        ARM: 9077/1: PLT: Move struct plt_entries definition to header
        ...
      77d34a46
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://github.com/openrisc/linux · 4c55e2ae
      Linus Torvalds authored
      Pull OpenRISC updates from Stafford Horne:
       "One change to simplify Litex CSR (MMIO register) access by limiting
        them to 32-bit offsets.
      
        Now that this is agreed on among Litex hardware and kernel developers
        it will allow us to start upstreaming other Litex peripheral drivers"
      
      * tag 'for-linus' of git://github.com/openrisc/linux:
        drivers/soc/litex: remove 8-bit subregister option
      4c55e2ae