1. 24 Feb, 2021 1 commit
    • Nick Desaulniers's avatar
      Makefile: reuse CC_VERSION_TEXT · db07562a
      Nick Desaulniers authored
      I noticed we're invoking $(CC) via $(shell) more than once to check the
      version.  Let's reuse the first string captured in $CC_VERSION_TEXT.
      Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      [masahiro.yamada:
      CC_VERSION_TEXT is assigned by = instead of :=, so this $(shell ) is
      evaluated multiple times anyway. The number of $(CC) invocations will
      be still the same. Replacing 'grep' with the built-in $(findstring )
      will give real performance benefit.]
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      db07562a
  2. 21 Feb, 2021 6 commits
    • Masahiro Yamada's avatar
      kbuild: check the minimum linker version in Kconfig · 02aff859
      Masahiro Yamada authored
      Unify the two scripts/ld-version.sh and scripts/lld-version.sh, and
      check the minimum linker version like scripts/cc-version.sh did.
      
      I tested this script for some corner cases reported in the past:
      
       - GNU ld version 2.25-15.fc23
         as reported by commit 8083013f ("ld-version: Fix it on Fedora")
      
       - GNU ld (GNU Binutils) 2.20.1.20100303
         as reported by commit 0d61ed17 ("ld-version: Drop the 4th and
         5th version components")
      
      This script show an error message if the linker is too old:
      
        $ make LD=ld.lld-9
          SYNC    include/config/auto.conf
        ***
        *** Linker is too old.
        ***   Your LLD version:    9.0.1
        ***   Minimum LLD version: 10.0.1
        ***
        scripts/Kconfig.include:50: Sorry, this linker is not supported.
        make[2]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
        make[1]: *** [Makefile:600: syncconfig] Error 2
        make: *** [Makefile:708: include/config/auto.conf] Error 2
      
      I also moved the check for gold to this script, so gold is still rejected:
      
        $ make LD=gold
          SYNC    include/config/auto.conf
        gold linker is not supported as it is not capable of linking the kernel proper.
        scripts/Kconfig.include:50: Sorry, this linker is not supported.
        make[2]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
        make[1]: *** [Makefile:600: syncconfig] Error 2
        make: *** [Makefile:708: include/config/auto.conf] Error 2
      
      Thanks to David Laight for suggesting shell script improvements.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
      02aff859
    • Masahiro Yamada's avatar
      kbuild: remove ld-version macro · 05f6bbf2
      Masahiro Yamada authored
      There is no direct user of ld-version; you can use CONFIG_LD_VERSION
      if needed.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      05f6bbf2
    • Masahiro Yamada's avatar
      scripts: add generic syscallhdr.sh · b9da928a
      Masahiro Yamada authored
      Most of architectures generate syscall headers at the compile time
      in a similar way.
      
      As of v5.11-rc1, 12 architectures duplicate similar shell scripts:
      
        $ find arch -name syscallhdr.sh | sort
        arch/alpha/kernel/syscalls/syscallhdr.sh
        arch/arm/tools/syscallhdr.sh
        arch/ia64/kernel/syscalls/syscallhdr.sh
        arch/m68k/kernel/syscalls/syscallhdr.sh
        arch/microblaze/kernel/syscalls/syscallhdr.sh
        arch/mips/kernel/syscalls/syscallhdr.sh
        arch/parisc/kernel/syscalls/syscallhdr.sh
        arch/powerpc/kernel/syscalls/syscallhdr.sh
        arch/sh/kernel/syscalls/syscallhdr.sh
        arch/sparc/kernel/syscalls/syscallhdr.sh
        arch/x86/entry/syscalls/syscallhdr.sh
        arch/xtensa/kernel/syscalls/syscallhdr.sh
      
      My goal is to unify them into scripts/syscallhdr.sh.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      b9da928a
    • Masahiro Yamada's avatar
      scripts: add generic syscalltbl.sh · 9df526b0
      Masahiro Yamada authored
      Most of architectures generate syscall headers at the compile time
      in a similar way.
      
      The syscall table has the same format for all architectures. Each line
      has up to 5 fields; syscall number, ABI, syscall name, native entry
      point, and compat entry point. The syscall table is processed by
      syscalltbl.sh script into header files.
      
      Despite the same pattern, scripts are maintained per architecture,
      which results in code duplication and bad maintainability.
      
      As of v5.11-rc1, 12 architectures duplicate similar shell scripts:
      
        $ find arch -name syscalltbl.sh | sort
        arch/alpha/kernel/syscalls/syscalltbl.sh
        arch/arm/tools/syscalltbl.sh
        arch/ia64/kernel/syscalls/syscalltbl.sh
        arch/m68k/kernel/syscalls/syscalltbl.sh
        arch/microblaze/kernel/syscalls/syscalltbl.sh
        arch/mips/kernel/syscalls/syscalltbl.sh
        arch/parisc/kernel/syscalls/syscalltbl.sh
        arch/powerpc/kernel/syscalls/syscalltbl.sh
        arch/sh/kernel/syscalls/syscalltbl.sh
        arch/sparc/kernel/syscalls/syscalltbl.sh
        arch/x86/entry/syscalls/syscalltbl.sh
        arch/xtensa/kernel/syscalls/syscalltbl.sh
      
      My goal is to unify them into scripts/syscalltbl.sh.
      
      __SYSCALL_WITH_COMPAT should be defined as follows:
      
      32-bit kernel:
        #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
      
      64-bit kernel:
      
        #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      9df526b0
    • Masahiro Yamada's avatar
      arch: syscalls: remove $(srctree)/ prefix from syscall tables · 29c5c3ac
      Masahiro Yamada authored
      The 'syscall' variables are not directly used in the commands.
      Remove the $(srctree)/ prefix because we can rely on VPATH.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      29c5c3ac
    • Masahiro Yamada's avatar
      arch: syscalls: add missing FORCE and fix 'targets' to make if_changed work · 865fa29f
      Masahiro Yamada authored
      The rules in these Makefiles cannot detect the command line change
      because the prerequisite 'FORCE' is missing.
      
      Adding 'FORCE' will result in the headers being rebuilt every time
      because the 'targets' additions are also wrong; the file paths in
      'targets' must be relative to the current Makefile.
      
      Fix all of them so the if_changed rules work correctly.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      865fa29f
  3. 16 Feb, 2021 14 commits
  4. 11 Feb, 2021 6 commits
    • Masahiro Yamada's avatar
      kbuild: LD_VERSION redenomination · 052c805a
      Masahiro Yamada authored
      Commit ccbef167 ("Kbuild, lto: add ld-version and ld-ifversion
      macros") introduced scripts/ld-version.sh for GCC LTO.
      
      At that time, this script handled 5 version fields because GCC LTO
      needed the downstream binutils. (https://lkml.org/lkml/2014/4/8/272)
      
      The code snippet from the submitted patch was as follows:
      
          # We need HJ Lu's Linux binutils because mainline binutils does not
          # support mixing assembler and LTO code in the same ld -r object.
          # XXX check if the gcc plugin ld is the expected one too
          # XXX some Fedora binutils should also support it. How to check for that?
          ifeq ($(call ld-ifversion,-ge,22710001,y),y)
              ...
      
      However, GCC LTO was not merged into the mainline after all.
      (https://lkml.org/lkml/2014/4/8/272)
      
      So, the 4th and 5th fields were never used, and finally removed by
      commit 0d61ed17 ("ld-version: Drop the 4th and 5th version
      components").
      
      Since then, the last 4-digits returned by this script is always zeros.
      
      Remove the meaningless last 4-digits. This makes the version format
      consistent with GCC_VERSION, CLANG_VERSION, LLD_VERSION.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarWill Deacon <will@kernel.org>
      Acked-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      052c805a
    • Masahiro Yamada's avatar
      kbuild: Remove $(cc-option,-gdwarf-4) dependency from DEBUG_INFO_DWARF4 · 83272e6d
      Masahiro Yamada authored
      The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
      
      You can see it at https://godbolt.org/z/6ed1oW
      
        For gcc 4.5.3 pane,    line 37:    .value 0x4
        For clang 10.0.1 pane, line 117:   .short 4
      
      Given Documentation/process/changes.rst stating GCC 4.9 is the minimal
      version, this cc-option is unneeded.
      
      Note
      ----
      
      CONFIG_DEBUG_INFO_DWARF4 controls the DWARF version only for C files.
      
      As you can see in the top Makefile, -gdwarf-4 is only passed to CFLAGS.
      
        ifdef CONFIG_DEBUG_INFO_DWARF4
        DEBUG_CFLAGS    += -gdwarf-4
        endif
      
      This flag is used when compiling *.c files.
      
      On the other hand, the assembler is always given -gdwarf-2.
      
        KBUILD_AFLAGS   += -Wa,-gdwarf-2
      
      Hence, the debug info that comes from *.S files is always DWARF v2.
      This is simply because GAS supported only -gdwarf-2 for a long time.
      
      Recently, GAS gained the support for --gdwarf-[345] options. [1]
      And, also we have Clang integrated assembler. So, the debug info
      for *.S files might be improved in the future.
      
      In my understanding, the current code is intentional, not a bug.
      
      [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67dSigned-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      83272e6d
    • Tor Vic's avatar
      Makefile: use smaller dictionary size for xz module compression · db4632c6
      Tor Vic authored
      By default, xz without parameters uses a dictionary size of 8 MB.
      However, most modules are much smaller than that.
      The xz manpage states that 'increasing dictionary size usually improves
      compression ratio, but a dictionary bigger than the uncompressed file
      is waste of memory'.
      Use a dictionary size of 2 MB for module compression, resulting in
      slightly higher compression speed while still maintaining a good
      compression ratio.
      Signed-off-by: default avatarTor Vic <torvic9@mailbox.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      db4632c6
    • Masahiro Yamada's avatar
      ia64: remove generated/nr-irqs.h generation to fix build warning · fa1e160b
      Masahiro Yamada authored
      Randy reports the following warning when building ARCH=ia64 with
      CONFIG_IA64_PALINFO=m:
      
      ../scripts/Makefile.build:68: 'arch/ia64/kernel/palinfo.ko' will not be built even though obj-m is specified.
      ../scripts/Makefile.build:69: You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m instead.
      
      This message is actually false-positive, and you can get palinfo.ko
      correctly built. It is emitted in the archprepare stage, where Kbuild
      descends into arch/ia64/kernel to generate include/generated/nr-irqs.h
      instead of any kind of kernel objects.
      
      arch/ia64/kernel/nr-irqs.c was introduced by commit 213060a4
      ("[IA64] pvops: paravirtualize NR_IRQS") to pre-calculate:
      
         NR_IRQS = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, FOO_NR_IRQS...)
      
      Since commit d52eefb4 ("ia64/xen: Remove Xen support for ia64"), this
      union contains just one field, making NR_IRQS and IA64_NATIVE_NR_IRQS
      always match.
      
      So, the following hard-coding now works:
      
        #define NR_IRQS                IA64_NATIVE_NR_IRQS
      
      If you need to re-introduce NR_IRQS = max(...) gimmick in the future,
      please try to implement it in asm-offsets.c instead of a separate file.
      It will be possible because the header inclusion has been consolidated
      to make asm-offsets.c independent of <asm/irqs.h>.
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      fa1e160b
    • Masahiro Yamada's avatar
      ia64: remove unneeded header includes from <asm/mca.h> · a5b7c61e
      Masahiro Yamada authored
      <asm/mca.h> includes too many unneeded headers.
      
      This commit cuts off a lot of header includes.
      
      What we need to include are:
      
       - <linux/percpu.h> for DECLARE_PER_CPU(u64, ia64_mca_pal_base)
       - <linux/threads.h> for NR_CPUS
       - <linux/types.h> for u8, u64, size_t, etc.
       - <asm/ptrace.h> for KERNEL_STACK_SIZE
      
      The other header includes are actually unneeded.
      
      <asm/mca.h> previously included 436 headers, and now it includes
      only 138. I confirmed <asm/mca.h> is still self-contained.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
      a5b7c61e
    • Masahiro Yamada's avatar
      ia64: do not typedef struct pal_min_state_area_s · 2770ef7c
      Masahiro Yamada authored
      Documentation/process/coding-style.rst says:
      
        Please don't use things like ``vps_t``.
        It's a **mistake** to use typedef for structures and pointers.
      
      This commit converts as follows:
      
        struct pal_min_state_area_s  ->  struct pal_min_state_area
               pal_min_state_area_t  ->  struct pal_min_state_area
      
      My main motivation for this is to slim down the include directives
      of <asm/mca.h> in the next commit.
      
      Currently, <asm/mca.h> is required to include <asm/pal.h> directly
      or indirectly due to (pal_min_state_area_t *). Otherwise, it would
      have no idea what pal_min_state_area_t is.
      
      Replacing it with (struct pal_min_state_area *) will relax the header
      dependency since it is enough to tell it is a pointer to a structure,
      and to resolve the size of struct pal_min_state_area. It will make
      <asm/mca.h> independent of <asm/pal.h>.
      
      <asm/pal.h> typedef's a lot of structures, but it is trivial to
      convert the others in the same way.
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      2770ef7c
  5. 07 Feb, 2021 9 commits
    • Linus Torvalds's avatar
      Linux 5.11-rc7 · 92bf2261
      Linus Torvalds authored
      92bf2261
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-fixes-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · b75dba7f
      Linus Torvalds authored
      Pull libnvdimm fixes from Dan Williams:
       "A fix for a crash scenario that has been present since the initial
        merge, a minor regression in sysfs attribute visibility, and a fix for
        some flexible array warnings.
      
        The bulk of this pull is an update to the libnvdimm unit test
        infrastructure to test non-ACPI platforms. Given there is zero
        regression risk for test updates, and the tests enable validation of
        bits headed towards the next merge window, I saw no reason to hold the
        new tests back. Santosh originally submitted this before the v5.11
        window opened.
      
        Summary:
      
         - Fix a crash when sysfs accesses race 'dimm' driver probe/remove.
      
         - Fix a regression in 'resource' attribute visibility necessary for
           mapping badblocks and other physical address interrogations.
      
         - Fix some flexible array warnings
      
         - Expand the unit test infrastructure for non-ACPI platforms"
      
      * tag 'libnvdimm-fixes-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        libnvdimm/dimm: Avoid race between probe and available_slots_show()
        ndtest: Add papr health related flags
        ndtest: Add nvdimm control functions
        ndtest: Add regions and mappings to the test buses
        ndtest: Add dimm attributes
        ndtest: Add dimms to the two buses
        ndtest: Add compatability string to treat it as PAPR family
        testing/nvdimm: Add test module for non-nfit platforms
        libnvdimm/namespace: Fix visibility of namespace resource attribute
        libnvdimm/pmem: Remove unused header
        ACPI: NFIT: Fix flexible_array.cocci warnings
      b75dba7f
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.11-2' of git://git.infradead.org/users/hch/dma-mapping · ff92acb2
      Linus Torvalds authored
      Pull dma-mapping fix from Christoph Hellwig:
       "Fix a 32 vs 64-bit padding issue in the new benchmark code (Barry
        Song)"
      
      * tag 'dma-mapping-5.11-2' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: benchmark: use u8 for reserved field in uAPI structure
      ff92acb2
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · fc6c0ae5
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Prevent device managed IRQ allocation helpers from returning IRQ 0
      
       - A fix for MSI activation of PCI endpoints with multiple MSIs
      
      * tag 'irq_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        genirq: Prevent [devm_]irq_alloc_desc from returning irq 0
        genirq/msi: Activate Multi-MSI early when MSI_FLAG_ACTIVATE_EARLY is set
      fc6c0ae5
    • Linus Torvalds's avatar
      Merge tag 'core_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c6792d44
      Linus Torvalds authored
      Pull syscall entry fixes from Borislav Petkov:
      
       - For syscall user dispatch, separate prctl operation from syscall
         redirection range specification before the API has been made official
         in 5.11.
      
       - Ensure tasks using the generic syscall code do trap after returning
         from a syscall when single-stepping is requested.
      
      * tag 'core_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        entry: Use different define for selector variable in SUD
        entry: Ensure trap after single-step on system call return
      c6792d44
    • Linus Torvalds's avatar
      Merge tag 'sched_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6fed85df
      Linus Torvalds authored
      Pull scheduler fix from Borislav Petkov:
       "Revert an attempt to not spread IRQ threads on isolated CPUs which has
        a bunch of problems"
      
      * tag 'sched_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        Revert "lib: Restrict cpumask_local_spread to houskeeping CPUs"
      6fed85df
    • Linus Torvalds's avatar
      Merge tag 'timers_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 814daadb
      Linus Torvalds authored
      Pull timer fixes from Borislav Petkov:
       "Two more timers-related fixes for v5.11:
      
         - Use a freezable workqueue for RTC sync because the sync can happen
           at any time and trigger suspend assertion checks in the i2c
           subsystem.
      
         - Correct a previous RTC validation change to check only bit 6 in
           register D because some Intel machines use bits 0-5"
      
      * tag 'timers_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ntp: Use freezable workqueue for RTC synchronization
        rtc: mc146818: Dont test for bit 0-5 in Register D
      814daadb
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e24f9c5f
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
       "I hope this is the last batch of x86/urgent updates for this round:
      
         - Remove superfluous EFI PGD range checks which lead to those
           assertions failing with certain kernel configs and LLVM.
      
         - Disable setting breakpoints on facilities involved in #DB exception
           handling to avoid infinite loops.
      
         - Add extra serialization to non-serializing MSRs (IA32_TSC_DEADLINE
           and x2 APIC MSRs) to adhere to SDM's recommendation and avoid any
           theoretical issues.
      
         - Re-add the EPB MSR reading on turbostat so that it works on older
           kernels which don't have the corresponding EPB sysfs file.
      
         - Add Alder Lake to the list of CPUs which support split lock.
      
         - Fix %dr6 register handling in order to be able to set watchpoints
           with gdb again.
      
         - Disable CET instrumentation in the kernel so that gcc doesn't add
           ENDBR64 to kernel code and thus confuse tracing"
      
      * tag 'x86_urgent_for_v5.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/efi: Remove EFI PGD build time checks
        x86/debug: Prevent data breakpoints on cpu_dr7
        x86/debug: Prevent data breakpoints on __per_cpu_offset
        x86/apic: Add extra serialization for non-serializing MSRs
        tools/power/turbostat: Fallback to an MSR read for EPB
        x86/split_lock: Enable the split lock feature on another Alder Lake CPU
        x86/debug: Fix DR6 handling
        x86/build: Disable CET instrumentation in the kernel
      e24f9c5f
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.11-2' of... · 2db138bb
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Use the 'python3' command to invoke python scripts because some
         distributions do not provide the 'python' command any more.
      
       - Clean-up and update documents
      
       - Use pkg-config to search libcrypto
      
       - Fix duplicated debug flags
      
       - Ignore some more stubs in scripts/kallsyms.c
      
      * tag 'kbuild-fixes-v5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kallsyms: fix nonconverging kallsyms table with lld
        kbuild: fix duplicated flags in DEBUG_CFLAGS
        scripts/clang-tools: switch explicitly to Python 3
        kbuild: remove PYTHON variable
        Documentation/llvm: Add a section about supported architectures
        Revert "checkpatch: add check for keyword 'boolean' in Kconfig definitions"
        scripts: use pkg-config to locate libcrypto
        kconfig: mconf: fix HOSTCC call
        doc: gcc-plugins: update gcc-plugins.rst
        kbuild: simplify GCC_PLUGINS enablement in dummy-tools/gcc
        Documentation/Kbuild: Remove references to gcc-plugin.sh
        scripts: switch explicitly to Python 3
      2db138bb
  6. 06 Feb, 2021 4 commits
    • Linus Torvalds's avatar
      Merge tag '5.11-rc6-smb3' of git://git.samba.org/sfrench/cifs-2.6 · 825b5991
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Three small smb3 fixes for stable"
      
      * tag '5.11-rc6-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: report error instead of invalid when revalidating a dentry fails
        smb3: fix crediting for compounding when only one request in flight
        smb3: Fix out-of-bounds bug in SMB2_negotiate()
      825b5991
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · f7455e5d
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
       "A handful of fixes for this week:
      
         - A fix to avoid evalating the VA twice in virt_addr_valid, which
           fixes some WARNs under DEBUG_VIRTUAL.
      
         - Two fixes related to STRICT_KERNEL_RWX: one that fixes some
           permissions when strict is disabled, and one to fix some alignment
           issues when strict is enabled.
      
         - A fix to disallow the selection of MAXPHYSMEM_2GB on RV32, which
           isn't valid any more but may still show up in some oldconfigs.
      
        We still have the HiFive Unleashed ethernet phy reset regression, so
        there will likely be something coming next week"
      
      * tag 'riscv-for-linus-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        RISC-V: Define MAXPHYSMEM_1GB only for RV32
        riscv: Align on L1_CACHE_BYTES when STRICT_KERNEL_RWX
        RISC-V: Fix .init section permission update
        riscv: virt_addr_valid must check the address belongs to linear mapping
      f7455e5d
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.11-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · f06279ea
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - A fix for a change we made to __kernel_sigtramp_rt64() which confused
         glibc's backtrace logic, and also changed the semantics of that
         symbol, which was arguably an ABI break.
      
       - A fix for a stack overwrite in our VSX instruction emulation.
      
       - A couple of fixes for the Makefile logic in the new C VDSO.
      
      Thanks to Masahiro Yamada, Naveen N.  Rao, Raoni Fassina Firmino, and
      Ravi Bangoria.
      
      * tag 'powerpc-5.11-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64/signal: Fix regression in __kernel_sigtramp_rt64() semantics
        powerpc/vdso64: remove meaningless vgettimeofday.o build rule
        powerpc/vdso: fix unnecessary rebuilds of vgettimeofday.o
        powerpc/sstep: Fix array out of bound warning
      f06279ea
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 4a7859ea
      Linus Torvalds authored
      Pull ARM fixes from Russell King:
      
       - Fix latent bug with DC21285 (Footbridge PCI bridge) configuration
         accessors that affects GCC >= 4.9.2
      
       - Fix misplaced tegra_uart_config in decompressor
      
       - Ensure signal page contents are initialised
      
       - Fix kexec oops
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: kexec: fix oops after TLB are invalidated
        ARM: ensure the signal page contains defined contents
        ARM: 9043/1: tegra: Fix misplaced tegra_uart_config in decompressor
        ARM: footbridge: fix dc21285 PCI configuration accessors
      4a7859ea