Skip to content
  1. Jul 09, 2021
    • Mike Rapoport's avatar
      mm: introduce memfd_secret system call to create "secret" memory areas · 1507f512
      Mike Rapoport authored
      Introduce "memfd_secret" system call with the ability to create memory
      areas visible only in the context of the owning process and not mapped not
      only to other processes but in the kernel page tables as well.
      
      The secretmem feature is off by default and the user must explicitly
      enable it at the boot time.
      
      Once secretmem is enabled, the user will be able to create a file
      descriptor using the memfd_secret() system call.  The memory areas created
      by mmap() calls from this file descriptor will be unmapped from the kernel
      direct map and they will be only mapped in the page table of the processes
      that have access to the file descriptor.
      
      Secretmem is designed to provide the following protections:
      
      * Enhanced protection (in conjunction with all the other in-kernel
        attack prevention systems) against ROP attacks.  Seceretmem makes
        "simple" ROP insufficient to perform exfiltration, which increases the
        required complexity of the attack.  A...
      1507f512
    • Mike Rapoport's avatar
      set_memory: allow querying whether set_direct_map_*() is actually enabled · 6d47c23b
      Mike Rapoport authored
      On arm64, set_direct_map_*() functions may return 0 without actually
      changing the linear map.  This behaviour can be controlled using kernel
      parameters, so we need a way to determine at runtime whether calls to
      set_direct_map_invalid_noflush() and set_direct_map_default_noflush() have
      any effect.
      
      Extend set_memory API with can_set_direct_map() function that allows
      checking if calling set_direct_map_*() will actually change the page
      table, replace several occurrences of open coded checks in arm64 with the
      new function and provide a generic stub for architectures that always
      modify page tables upon calls to set_direct_map APIs.
      
      [arnd@arndb.de: arm64: kfence: fix header inclusion ]
      
      Link: https://lkml.kernel.org/r/20210518072034.31572-4-rppt@kernel.org
      
      
      Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
      Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Acked-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Christopher Lameter <cl@linux.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Elena Reshetova <elena.reshetova@intel.com>
      Cc: Hagen Paul Pfeifer <hagen@jauu.net>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Bottomley <jejb@linux.ibm.com>
      Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Palmer Dabbelt <palmerdabbelt@google.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rick Edgecombe <rick.p.edgecombe@intel.com>
      Cc: Roman Gushchin <guro@fb.com>
      Cc: Shakeel Butt <shakeelb@google.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tycho Andersen <tycho@tycho.ws>
      Cc: Will Deacon <will@kernel.org>
      Cc: kernel test robot <lkp@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6d47c23b
    • Mike Rapoport's avatar
      riscv/Kconfig: make direct map manipulation options depend on MMU · 10cc3278
      Mike Rapoport authored
      ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have
      no meaning when CONFIG_MMU is disabled and there is no point to enable
      them for the nommu case.
      
      Add an explicit dependency on MMU for these options.
      
      Link: https://lkml.kernel.org/r/20210518072034.31572-3-rppt@kernel.org
      
      
      Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Acked-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christopher Lameter <cl@linux.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: Elena Reshetova <elena.reshetova@intel.com>
      Cc: Hagen Paul Pfeifer <hagen@jauu.net>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Bottomley <jejb@linux.ibm.com>
      Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Palmer Dabbelt <palmerdabbelt@google.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rick Edgecombe <rick.p.edgecombe@intel.com>
      Cc: Roman Gushchin <guro@fb.com>
      Cc: Shakeel Butt <shakeelb@google.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tycho Andersen <tycho@tycho.ws>
      Cc: Will Deacon <will@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      10cc3278
    • Mike Rapoport's avatar
      mmap: make mlock_future_check() global · 6aeb2542
      Mike Rapoport authored
      Patch series "mm: introduce memfd_secret system call to create "secret" memory areas", v20.
      
      This is an implementation of "secret" mappings backed by a file
      descriptor.
      
      The file descriptor backing secret memory mappings is created using a
      dedicated memfd_secret system call The desired protection mode for the
      memory is configured using flags parameter of the system call.  The mmap()
      of the file descriptor created with memfd_secret() will create a "secret"
      memory mapping.  The pages in that mapping will be marked as not present
      in the direct map and will be present only in the page table of the owning
      mm.
      
      Although normally Linux userspace mappings are protected from other users,
      such secret mappings are useful for environments where a hostile tenant is
      trying to trick the kernel into giving them access to other tenants
      mappings.
      
      It's designed to provide the following protections:
      
      * Enhanced protection (in conjunction with all the other in-kernel
        attack prevention systems) against ROP attacks.  Seceretmem makes
        "simple" ROP insufficient to perform exfiltration, which increases the
        required complexity of the attack.  Along with other protections like
        the kernel stack size limit and address space layout randomization which
        make finding gadgets is really hard, absence of any in-kernel primitive
        for accessing secret memory means the one gadget ROP attack can't work.
        Since the only way to access secret memory is to reconstruct the missing
        mapping entry, the attacker has to recover the physical page and insert
        a PTE pointing to it in the kernel and then retrieve the contents.  That
        takes at least three gadgets which is a level of difficulty beyond most
        standard attacks.
      
      * Prevent cross-process secret userspace memory exposures.  Once the
        secret memory is allocated, the user can't accidentally pass it into the
        kernel to be transmitted somewhere.  The secreremem pages cannot be
        accessed via the direct map and they are disallowed in GUP.
      
      * Harden against exploited kernel flaws.  In order to access secretmem,
        a kernel-side attack would need to either walk the page tables and
        create new ones, or spawn a new privileged uiserspace process to perform
        secrets exfiltration using ptrace.
      
      In the future the secret mappings may be used as a mean to protect guest
      memory in a virtual machine host.
      
      For demonstration of secret memory usage we've created a userspace library
      
      https://git.kernel.org/pub/scm/linux/kernel/git/jejb/secret-memory-preloader.git
      
      that does two things: the first is act as a preloader for openssl to
      redirect all the OPENSSL_malloc calls to secret memory meaning any secret
      keys get automatically protected this way and the other thing it does is
      expose the API to the user who needs it.  We anticipate that a lot of the
      use cases would be like the openssl one: many toolkits that deal with
      secret keys already have special handling for the memory to try to give
      them greater protection, so this would simply be pluggable into the
      toolkits without any need for user application modification.
      
      Hiding secret memory mappings behind an anonymous file allows usage of the
      page cache for tracking pages allocated for the "secret" mappings as well
      as using address_space_operations for e.g.  page migration callbacks.
      
      The anonymous file may be also used implicitly, like hugetlb files, to
      implement mmap(MAP_SECRET) and use the secret memory areas with "native"
      mm ABIs in the future.
      
      Removing of the pages from the direct map may cause its fragmentation on
      architectures that use large pages to map the physical memory which
      affects the system performance.  However, the original Kconfig text for
      CONFIG_DIRECT_GBPAGES said that gigabyte pages in the direct map "...  can
      improve the kernel's performance a tiny bit ..." (commit 00d1c5e0
      ("x86: add gbpages switches")) and the recent report [1] showed that "...
      although 1G mappings are a good default choice, there is no compelling
      evidence that it must be the only choice".  Hence, it is sufficient to
      have secretmem disabled by default with the ability of a system
      administrator to enable it at boot time.
      
      In addition, there is also a long term goal to improve management of the
      direct map.
      
      [1] https://lore.kernel.org/linux-mm/213b4567-46ce-f116-9cdf-bbd0c884eb3c@linux.intel.com/
      
      This patch (of 7):
      
      It will be used by the upcoming secret memory implementation.
      
      Link: https://lkml.kernel.org/r/20210518072034.31572-1-rppt@kernel.org
      Link: https://lkml.kernel.org/r/20210518072034.31572-2-rppt@kernel.org
      
      
      Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Acked-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Christopher Lameter <cl@linux.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Dave Hansen <dave.hansen@linux.intel.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Elena Reshetova <elena.reshetova@intel.com>
      Cc: Hagen Paul Pfeifer <hagen@jauu.net>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Bottomley <jejb@linux.ibm.com>
      Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Palmer Dabbelt <palmer@dabbelt.com>
      Cc: Palmer Dabbelt <palmerdabbelt@google.com>
      Cc: Paul Walmsley <paul.walmsley@sifive.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rick Edgecombe <rick.p.edgecombe@intel.com>
      Cc: Roman Gushchin <guro@fb.com>
      Cc: Shakeel Butt <shakeelb@google.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tycho Andersen <tycho@tycho.ws>
      Cc: Will Deacon <will@kernel.org>
      Cc: kernel test robot <lkp@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6aeb2542
    • Oliver Glitta's avatar
      mm/slub: use stackdepot to save stack trace in objects · 78869146
      Oliver Glitta authored
      Many stack traces are similar so there are many similar arrays.
      Stackdepot saves each unique stack only once.
      
      Replace field addrs in struct track with depot_stack_handle_t handle.  Use
      stackdepot to save stack trace.
      
      The benefits are smaller memory overhead and possibility to aggregate
      per-cache statistics in the future using the stackdepot handle instead of
      matching stacks manually.
      
      [rdunlap@infradead.org: rename save_stack_trace()]
        Link: https://lkml.kernel.org/r/20210513051920.29320-1-rdunlap@infradead.org
      [vbabka@suse.cz: fix lockdep splat]
        Link: https://lkml.kernel.org/r/20210516195150.26740-1-vbabka@suse.czLink: https://lkml.kernel.org/r/20210414163434.4376-1-glittao@gmail.com
      
      
      
      Signed-off-by: default avatarOliver Glitta <glittao@gmail.com>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Reviewed-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Acked-by: default avatarDavid Rientjes <rientjes@google.com>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: Pekka Enberg <penberg@kernel.org>
      Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      78869146
    • Nathan Chancellor's avatar
      hexagon: select ARCH_WANT_LD_ORPHAN_WARN · 113616ec
      Nathan Chancellor authored
      Now that we handle all of the sections in a Hexagon defconfig, select
      ARCH_WANT_LD_ORPHAN_WARN so that unhandled sections are warned about by
      default.
      
      Link: https://lkml.kernel.org/r/20210521011239.1332345-4-nathan@kernel.org
      
      
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Acked-by: default avatarBrian Cain <bcain@codeaurora.org>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Oliver Glitta <glittao@gmail.com>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      113616ec
    • Nathan Chancellor's avatar
      hexagon: use common DISCARDS macro · 681ba73c
      Nathan Chancellor authored
      ld.lld warns that the '.modinfo' section is not currently handled:
      
      ld.lld: warning: kernel/built-in.a(workqueue.o):(.modinfo) is being placed in '.modinfo'
      ld.lld: warning: kernel/built-in.a(printk/printk.o):(.modinfo) is being placed in '.modinfo'
      ld.lld: warning: kernel/built-in.a(irq/spurious.o):(.modinfo) is being placed in '.modinfo'
      ld.lld: warning: kernel/built-in.a(rcu/update.o):(.modinfo) is being placed in '.modinfo'
      
      The '.modinfo' section was added in commit 898490c0 ("moduleparam:
      Save information about built-in modules in separate file") to the DISCARDS
      macro but Hexagon has never used that macro.  The unification of DISCARDS
      happened in commit 023bf6f1 ("linker script: unify usage of discard
      definition") in 2009, prior to Hexagon being added in 2011.
      
      Switch Hexagon over to the DISCARDS macro so that anything that is
      expected to be discarded gets discarded.
      
      Link: https://lkml.kernel.org/r/20210521011239.1332345-3-nathan@kernel.org
      Fixes: e95bf452
      
       ("Hexagon: Add configuration and makefiles for the Hexagon architecture.")
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Acked-by: default avatarBrian Cain <bcain@codeaurora.org>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Oliver Glitta <glittao@gmail.com>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      681ba73c
    • Nathan Chancellor's avatar
      hexagon: handle {,SOFT}IRQENTRY_TEXT in linker script · 6fef087d
      Nathan Chancellor authored
      Patch series "hexagon: Fix build error with CONFIG_STACKDEPOT and select CONFIG_ARCH_WANT_LD_ORPHAN_WARN".
      
      This series fixes an error with ARCH=hexagon that was pointed out by the
      patch "mm/slub: use stackdepot to save stack trace in objects".
      
      The first patch fixes that error by handling the '.irqentry.text' and
      '.softirqentry.text' sections.
      
      The second patch switches Hexagon over to the common DISCARDS macro, which
      should have been done when Hexagon was merged into the tree to match
      commit 023bf6f1 ("linker script: unify usage of discard definition").
      
      The third patch selects CONFIG_ARCH_WANT_LD_ORPHAN_WARN so that something
      like this does not happen again.
      
      This patch (of 3):
      
      Patch "mm/slub: use stackdepot to save stack trace in objects" in -mm
      selects CONFIG_STACKDEPOT when CONFIG_STACKTRACE_SUPPORT is selected and
      CONFIG_STACKDEPOT requires IRQENTRY_TEXT and SOFTIRQENTRY_TEXT to be
      handled after commit 505a0ef1 ("kasan: stackdepot: move
      filter_irq_stacks() to stackdepot.c") due to the use of the
      __{,soft}irqentry_text_{start,end} section symbols.  If those sections are
      not handled, the build is broken.
      
      $ make ARCH=hexagon CROSS_COMPILE=hexagon-linux- LLVM=1 LLVM_IAS=1 defconfig all
      ...
      ld.lld: error: undefined symbol: __irqentry_text_start
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      
      ld.lld: error: undefined symbol: __irqentry_text_end
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      
      ld.lld: error: undefined symbol: __softirqentry_text_start
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      
      ld.lld: error: undefined symbol: __softirqentry_text_end
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      >>> referenced by stackdepot.c
      >>>               stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a
      ...
      
      Add these sections to the Hexagon linker script so the build continues to
      work.  ld.lld's orphan section warning would have caught this prior to the
      -mm commit mentioned above:
      
      ld.lld: warning: kernel/built-in.a(softirq.o):(.softirqentry.text) is being placed in '.softirqentry.text'
      ld.lld: warning: kernel/built-in.a(softirq.o):(.softirqentry.text) is being placed in '.softirqentry.text'
      ld.lld: warning: kernel/built-in.a(softirq.o):(.softirqentry.text) is being placed in '.softirqentry.text'
      
      Link: https://lkml.kernel.org/r/20210521011239.1332345-1-nathan@kernel.org
      Link: https://lkml.kernel.org/r/20210521011239.1332345-2-nathan@kernel.org
      Link: https://github.com/ClangBuiltLinux/linux/issues/1381
      Fixes: 505a0ef1
      
       ("kasan: stackdepot: move filter_irq_stacks() to stackdepot.c")
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Acked-by: default avatarBrian Cain <bcain@codeaurora.org>
      Cc: Oliver Glitta <glittao@gmail.com>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Cc: David Rientjes <rientjes@google.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6fef087d
    • Zhen Lei's avatar
      lib: fix spelling mistakes in header files · c23c8082
      Zhen Lei authored
      Fix some spelling mistakes in comments found by "codespell":
      Hoever ==> However
      poiter ==> pointer
      representaion ==> representation
      uppon ==> upon
      independend ==> independent
      aquired ==> acquired
      mis-match ==> mismatch
      scrach ==> scratch
      struture ==> structure
      Analagous ==> Analogous
      interation ==> iteration
      
      And some were discovered manually by Joe Perches and Christoph Lameter:
      stroed ==> stored
      arch independent ==> an architecture independent
      A example structure for ==> Example structure for
      
      Link: https://lkml.kernel.org/r/20210609150027.14805-2-thunder.leizhen@huawei.com
      
      
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Cc: Christoph Lameter <cl@gentwo.de>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Dennis Zhou <dennis@kernel.org>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Joe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c23c8082
    • Zhen Lei's avatar
      lib: fix spelling mistakes · 9dbbc3b9
      Zhen Lei authored
      Fix some spelling mistakes in comments:
      permanentely ==> permanently
      wont ==> won't
      remaning ==> remaining
      succed ==> succeed
      shouldnt ==> shouldn't
      alpha-numeric ==> alphanumeric
      storeing ==> storing
      funtion ==> function
      documenation ==> documentation
      Determin ==> Determine
      intepreted ==> interpreted
      ammount ==> amount
      obious ==> obvious
      interupts ==> interrupts
      occured ==> occurred
      asssociated ==> associated
      taking into acount ==> taking into account
      squence ==> sequence
      stil ==> still
      contiguos ==> contiguous
      matchs ==> matches
      
      Link: https://lkml.kernel.org/r/20210607072555.12416-1-thunder.leizhen@huawei.com
      
      
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9dbbc3b9
    • Zhen Lei's avatar
      lib/test: fix spelling mistakes · 53b0fe36
      Zhen Lei authored
      Fix some spelling mistakes in comments found by "codespell":
      thats ==> that's
      unitialized ==> uninitialized
      panicing ==> panicking
      sucess ==> success
      possitive ==> positive
      intepreted ==> interpreted
      
      Link: https://lkml.kernel.org/r/20210607133036.12525-2-thunder.leizhen@huawei.com
      
      
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Acked-by: Yonghong Song <yhs@fb.com>	[test_bfp.c]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      53b0fe36
  2. Jul 08, 2021
    • 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.
         ...
      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. Jul 07, 2021
    • 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/115
      
      
      Signed-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/115
      
      
      Signed-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
    • Linus Torvalds's avatar
      Merge tag 'kgdb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux · df8ba5f1
      Linus Torvalds authored
      Pull kgdb updates from Daniel Thompson:
       "This was a extremely quiet cycle for kgdb. This consists of two
        patches that between them address spelling errors and a switch
        fallthrough warning"
      
      * tag 'kgdb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux:
        kgdb: Fix fall-through warning for Clang
        kgdb: Fix spelling mistakes
      df8ba5f1
    • Linus Torvalds's avatar
      Merge branch 'for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux · 76e2d16b
      Linus Torvalds authored
      Pull coccinelle updates from Julia Lawall:
       "There are two new semantic patches:
      
         - minmax: To use min and max instead of ? :
      
         - swap: To use swap when possible
      
        Some other semantic patches have been updated to better conform to
        Linux kernel developer expectations or to make the explanation message
        more clear.
      
        Finally, there is a fix for the coccicheck script"
      
      * 'for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
        coccinelle: api: remove kobj_to_dev.cocci script
        scripts: coccicheck: fix troubles on non-English builds
        coccinelle: misc: minmax: suppress patch generation for err returns
        drop unneeded *s
        coccinelle: irqf_oneshot: reduce the severity due to false positives
        coccinelle: misc: add swap script
        coccinelle: misc: update uninitialized_var.cocci documentation
        coccinelle: misc: restrict patch mode in flexible_array.cocci
        coccinelle: misc: add minmax script
      76e2d16b
    • Linus Torvalds's avatar
      Merge tag 'fuse-update-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · 8e4f3e15
      Linus Torvalds authored
      Pull fuse updates from Miklos Szeredi:
      
       - Fixes for virtiofs submounts
      
       - Misc fixes and cleanups
      
      * tag 'fuse-update-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        virtiofs: Fix spelling mistakes
        fuse: use DIV_ROUND_UP helper macro for calculations
        fuse: fix illegal access to inode with reused nodeid
        fuse: allow fallocate(FALLOC_FL_ZERO_RANGE)
        fuse: Make fuse_fill_super_submount() static
        fuse: Switch to fc_mount() for submounts
        fuse: Call vfs_get_tree() for submounts
        fuse: add dedicated filesystem context ops for submounts
        virtiofs: propagate sync() to file server
        fuse: reject internal errno
        fuse: check connected before queueing on fpq->io
        fuse: ignore PG_workingset after stealing
        fuse: Fix infinite loop in sget_fc()
        fuse: Fix crash if superblock of submount gets killed early
        fuse: Fix crash in fuse_dentry_automount() error path
      8e4f3e15
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.14-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux · 729437e3
      Linus Torvalds authored
      Pull orangefs updates from Mike Marshall:
       "A read-ahead adjustment and a fix.
      
        The readahead adjustment was suggested by Matthew Wilcox and looks
        like how I should have written it in the first place... the "df fix"
        was suggested by Walt Ligon, some Orangefs users have been complaining
        about whacky df output..."
      
      * tag 'for-linus-5.14-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
        orangefs: fix orangefs df output.
        orangefs: readahead adjustment
      729437e3
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · 7a5e9a17
      Linus Torvalds authored
      Pull exfat updates from Namjae Jeon:
      
       - Improved compatibility issue with exfat from some camera vendors.
      
       - Do not need to release root inode on error path.
      
      * tag 'exfat-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        exfat: handle wrong stream entry size in exfat_readdir()
        exfat: avoid incorrectly releasing for root inode
      7a5e9a17
  4. Jul 06, 2021
    • Linus Torvalds's avatar
      Merge tag 'usb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 79160a60
      Linus Torvalds authored
      Pull USB / Thunderbolt updates from Greg KH:
       "Here is the big set of USB and Thunderbolt patches for 5.14-rc1.
      
        Nothing major here just lots of little changes for new hardware and
        features. Highlights are:
      
         - more USB 4 support added to the thunderbolt core
      
         - build warning fixes all over the place
      
         - usb-serial driver updates and new device support
      
         - mtu3 driver updates
      
         - gadget driver updates
      
         - dwc3 driver updates
      
         - dwc2 driver updates
      
         - isp1760 host driver updates
      
         - musb driver updates
      
         - lots of other tiny things.
      
        Full details are in the shortlog.
      
        All of these have been in linux-next for a while now with no reported
        issues"
      
      * tag 'usb-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (223 commits)
        phy: qcom-qusb2: Add configuration for SM4250 and SM6115
        dt-bindings: phy: qcom,qusb2: document sm4250/6115 compatible
        dt-bindings: usb: qcom,dwc3:...
      79160a60
    • Linus Torvalds's avatar
      Merge tag 'tty-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · c932ed0a
      Linus Torvalds authored
      Pull tty / serial updates from Greg KH:
       "Here is the big set of tty and serial driver patches for 5.14-rc1.
      
        A bit more than normal, but nothing major, lots of cleanups.
        Highlights are:
      
         - lots of tty api cleanups and mxser driver cleanups from Jiri
      
         - build warning fixes
      
         - various serial driver updates
      
         - coding style cleanups
      
         - various tty driver minor fixes and updates
      
         - removal of broken and disable r3964 line discipline (finally!)
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'tty-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (227 commits)
        serial: mvebu-uart: remove unused member nb from struct mvebu_uart
        arm64: dts: marvell: armada-37xx: Fix reg for standard variant of UART
        dt-bindings: mvebu-uart: fix documentation
        serial: mvebu-uart: correctly calculate minimal possible baudrate
        serial: mvebu-uart: do not allow cha...
      c932ed0a
    • Linus Torvalds's avatar
      Merge tag 'staging-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · a16d8644
      Linus Torvalds authored
      Pull staging / IIO driver updates from Greg KH:
       "Here is the big set of IIO and staging driver patches for 5.14-rc1.
      
        Loads of IIO driver updates and additions in here, the shortlog has
        the full details.
      
        For the staging side, we moved a few drivers out of staging, and
        deleted the kpc2000 drivers as the original developer asked us to
        because no one was working on them anymore.
      
        Also in here are loads of coding style cleanups due to different
        intern projects focusing on the staging tree to try to get experience
        doing kernel development.
      
        All of these have been in the linux-next tree for a while with no
        reported problems"
      
      * tag 'staging-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (744 commits)
        staging: hi6421-spmi-pmic: cleanup some macros
        staging: hi6421-spmi-pmic: change identation of a table
        staging: hi6421-spmi-pmic: change a return code
        staging: hi6421-spmi-pmic: better name IRQs
        staging: hi6421-spmi-pmic: use devm_request_threaded_irq()
        staging: hisilicon,hi6421-spmi-pmic.yaml: cleanup descriptions
        spmi: hisi-spmi-controller: move driver from staging
        phy: phy-hi3670-usb3: move driver from staging into phy
        staging: rtl8188eu: remove include/rtw_debug.h header
        staging: rtl8188eu: remove GlobalDebugLevel variable
        staging: rtl8188eu: remove DRIVER_PREFIX preprocessor definition
        staging: rtl8188eu: remove RT_TRACE macro
        staging: rtl8188eu: remove all RT_TRACE calls from hal/rtl8188eu_recv.c
        staging: rtl8188eu: remove all RT_TRACE calls from hal/hal_intf.c
        staging: rtl8188eu: remove all RT_TRACE calls from hal/rtl8188eu_xmit.c
        staging: rtl8188eu: remove all RT_TRACE calls from core/rtw_xmit.c
        staging: rtl8188eu: remove all RT_TRACE calls from core/rtw_pwrctrl.c
        staging: rtl8188eu: remove all RT_TRACE calls from core/rtw_recv.c
        staging: rtl8188eu: remove all RT_TRACE calls from core/rtw_ioctl_set.c
        staging: rtl8188eu: remove all RT_TRACE calls from core/rtw_ieee80211.c
        ...
      a16d8644
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.14-rc1' of... · f5c13f1f
      Linus Torvalds authored
      Merge tag 'driver-core-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core changes from Greg KH:
       "Here is the small set of driver core and debugfs updates for 5.14-rc1.
      
        Included in here are:
      
         - debugfs api cleanups (touched some drivers)
      
         - devres updates
      
         - tiny driver core updates and tweaks
      
        Nothing major in here at all, and all have been in linux-next for a
        while with no reported issues"
      
      * tag 'driver-core-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (27 commits)
        docs: ABI: testing: sysfs-firmware-memmap: add some memmap types.
        devres: Enable trace events
        devres: No need to call remove_nodes() when there none present
        devres: Use list_for_each_safe_from() in remove_nodes()
        devres: Make locking straight forward in release_nodes()
        kernfs: move revalidate to be near lookup
        drivers/base: Constify static attribute_group structs
        firmware_loader: remove unneeded 'comma' macro
        devcoredump: remove contact information
        driver core: Drop helper devm_platform_ioremap_resource_wc()
        component: Rename 'dev' to 'parent'
        component: Drop 'dev' argument to component_match_realloc()
        device property: Don't check for NULL twice in the loops
        driver core: auxiliary bus: Fix typo in the docs
        drivers/base/node.c: make CACHE_ATTR define static DEVICE_ATTR_RO
        debugfs: remove return value of debugfs_create_ulong()
        debugfs: remove return value of debugfs_create_bool()
        scsi: snic: debugfs: remove local storage of debugfs files
        b43: don't save dentries for debugfs
        b43legacy: don't save dentries for debugfs
        ...
      f5c13f1f
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · eed0218e
      Linus Torvalds authored
      Pull char / misc driver updates from Greg KH:
       "Here is the big set of char / misc and other driver subsystem updates
        for 5.14-rc1. Included in here are:
      
         - habanalabs driver updates
      
         - fsl-mc driver updates
      
         - comedi driver updates
      
         - fpga driver updates
      
         - extcon driver updates
      
         - interconnect driver updates
      
         - mei driver updates
      
         - nvmem driver updates
      
         - phy driver updates
      
         - pnp driver updates
      
         - soundwire driver updates
      
         - lots of other tiny driver updates for char and misc drivers
      
        This is looking more and more like the "various driver subsystems
        mushed together" tree...
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (292 commits)
        mcb: Use DEFINE_RES_MEM() helper macro and fix the end address
        PNP: moved EXPORT_SYMBOL so that it immed...
      eed0218e
    • Linus Torvalds's avatar
      Merge tag 'backlight-next-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight · 3f8b8e7d
      Linus Torvalds authored
      Pull backlight updates from Lee Jones:
       "New Drivers:
         - Add support for Richtek RT4831 Backlight
      
        New Device Support:
         - Add support for Qualcomm PMI8994 WLED Backlight
      
        Fix-ups:
         - Device Tree adaptions to richtek,rt4831-backlight
         - Trivial spelling, whitespace, etc in Kconfig
         - Use Atomic PWM API in lm3630a_bl
      
        Bug Fixes:
         - Fix Firmware Node Leak in error path in lm3630a_bl
         - Fix erroneous return codes in lm3630a_bl"
      
      * tag 'backlight-next-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
        backlight: lm3630a: Convert to atomic PWM API and check for errors
        backlight: lm3630a: Fix return code of .update_status() callback
        backlight: Kconfig whitespace and indentation cleanups
        video: backlight: qcom-wled: Add PMI8994 compatible
        backlight: rt4831: Adds support for Richtek RT4831 backlight
        backlight: rt4831: Adds DT binding document for Richtek RT4831 backlight
        backlight: lm3630a_bl: Put fwnode in error case during ->probe()
      3f8b8e7d
    • Linus Torvalds's avatar
      Merge tag 'mfd-next-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · 463c09d0
      Linus Torvalds authored
      Pull mfd updates from Lee Jones:
       "Core Frameworks:
         - Fix Software Node clean-up code
      
        New Drivers:
         - Add support for MediaTek MT6359 PMIC
         - Add support for Qualcomm PM8008 PMIC
         - Add support for Richtek RT4831
      
        New Device Support:
         - Add support for Audio CODECs to Rockchip RK817
         - Add support for Alder Lake-M to Intel LPSS PCI
         - Add support for Periph Device Charge to ChromeOS EC
      
        New Functionality:
         - Provide additional IRQs for wcd934x
         - Add optional Reset functionality to lp87565
      
        Fix-ups:
         - Namespacing & visibility fixes to lp87565
         - Differentiate between Power and Home key IRQs in mt6358
         - Export I2C device tables in da9052-i2c, stmpe-i2c
         - Adapt IRQ flags in max8907, rn5t61, max8907
         - Make some functions/devices optional in axp20x, cros_ec_dev
         - Explicitly include used header files in ioc3
         - Remove superfluous lines in MAINTAINERS, sec-core, st,stm32-timers
         - Resolve Kerneldoc issues in omap-usb-host, omap-usb-tll, si476x-cmd, si476x-i2c
         - Convert arizona-core to a module
         - Copyright changes in hi655x-pmic
         - Drop support for board file initialisation in sec-core
         - Trivial spelling, whitespace etc updates in lp87565, si476x-cmd,
           mt6360-core, wm831x-core, twl-core, db8500-prcmu
         - Simplify various implementations of wcd934x, mt6360-core, max8997,
           max8998, da9052-i2c, da9062-core, sec-core,
         - Device Tree binding changes in google,cros-ec,
           richtek,rt4831-backlight, db8500-prcmu, qcom,pm8008, qcom,spmi-pmic
         - Use provided APIs to simplify t7l66xb, as3722, da9055-core,
           tps80031, 88pm800, 88pm805, asic3, sun6i-prcm, wm831x-core,
           wm831x-otp, ucb1x00-assabet, timberdale, sm501, pcf50633-core,
           kempld-core, janz-cmodio, intel_soc_pmic_bxtwc, ab8500-core
      
        Bug Fixes:
         - Fix unused variable warning in rk817_codec
         - Fix regulator voltage configuration in rohm-bd71828
         - Fix ongoing freeing of regmap_config 'name' issue in syscon
         - Fix error handling path in da9063-i2c
         - Fix Kconfig issues in MFD_MP2629
         - Fix DMA mask warnings in motorola-cpcap"
      
      * tag 'mfd-next-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (83 commits)
        mfd: cros_ec: Add peripheral device charger
        mfd: max8907: Remove IRQF_NO_AUTOEN flag
        mfd: ab8500-core: Use DEVICE_ATTR_RO/RW macro
        mfd: intel_soc_pmic_bxtwc: Use DEVICE_ATTR_ADMIN_RW macro
        mfd: janz-cmodio: Use DEVICE_ATTR_RO macro
        mfd: kempld-core: Use DEVICE_ATTR_RO macro
        mfd: pcf50633: Use DEVICE_ATTR_ADMIN_RO macro
        mfd: sm501: Use DEVICE_ATTR_RO macro
        mfd: timberdale: Use DEVICE_ATTR_RO macro
        mfd: ucb1x00-assabet: Use DEVICE_ATTR_RO macro
        mfd: wm831x: Use DEVICE_ATTR_RO macro
        mfd: wm831x: Use DEFINE_RES_IRQ_NAMED() and DEFINE_RES_IRQ() to simplify code
        dt-bindings: mfd: stm32-timers: Remove #address/size cells from required properties
        mfd: sun6i-prcm: Use DEFINE_RES_MEM() to simplify code
        mfd: asic3: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code
        mfd: 88pm805: Use DEFINE_RES_IRQ_NAMED() to simplify code
        mfd: 88pm800: Use DEFINE_RES_IRQ_NAMED() to simplify code
        mfd: tps80031: Use DEFINE_RES_IRQ() to simplify code
        mfd: da9055: Use DEFINE_RES_IRQ_NAMED() to simplify code
        mfd: as3722: Use DEFINE_RES_IRQ_NAMED() to simplify code
        ...
      463c09d0
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 18ef0827
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "This time around we have a smaller pull request than usual and this
        includes code removal, so should be good!
      
        New drivers/devices
         - Support for QCOM SM8250 GPI DMA
         - removal of shdma-of driver and binding
      
        Updates:
         - arm-pl08x yaml binding move
         - altera-msgdma gained DT support
         - removal of imx-sdma platform data support
         - idxd and xilinx driver updates"
      
      * tag 'dmaengine-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (22 commits)
        dmaengine: imx-sdma: Remove platform data header
        dmaengine: xilinx: dpdma: Fix spacing around addr[i-1]
        dmaengine: xilinx: dpdma: Use kernel type u32 over uint32_t
        dmaengine: altera-msgdma: add OF support
        MAINTAINERS: add entry for Altera mSGDMA
        dt-bindings: dma: add schema for altera-msgdma
        dmaengine: xilinx: dpdma: fix kernel-doc
        dmaengine: sf-pdma: apply proper spinlock flags in sf_pdma_prep_dma_memcpy()
        dmaengine: sh: Remove unused shdma-of driver
        dt-bindings: dmaengine: Remove SHDMA Device Tree bindings
        dmaengine: qcom: gpi: Add SM8250 compatible
        dt-bindings: dmaengine: qcom: gpi: add compatible for sm8250
        dmaengine: sun4i: Use list_move_tail instead of list_del/list_add_tail
        dmaengine: ti: omap-dma: Skip pointless cpu_pm context restore on errors
        dmaengine: hsu: Account transferred bytes
        dmaengine: Move kdoc description of struct dma_chan_percpu closer to it
        dmaengine: xilinx: dpdma: Print debug message when losing vsync race
        dmaengine: xilinx: dpdma: Print channel number in kernel log messages
        dt-bindings: dma: convert arm-pl08x to yaml
        dmaengine: idxd: remove devm allocation for idxd->int_handles
        ...
      18ef0827
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 8f3f2ccf
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson
       "MMC core:
         - Clear flags before allowing to retune
      
        MMC host:
         - sdhci: Clear unused bounce buffer at DMA mmap error path
         - sdhci: Fix warning message when accessing RPMB in HS400 mode
         - sdhci-of-arasan: Use clock-frequency property to update clk_xin
         - mtk-sd: Fixup compatible string for MT8195"
      
      * tag 'mmc-v5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sdhci: Fix warning message when accessing RPMB in HS400 mode
        dt-bindings: mmc: change compatiable string for MT8195 mmc host IP
        mmc: sdhci: Clear unused bounce buffer at DMA mmap error path
        phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP
        mmc: sdhci-of-arasan: Use clock-frequency property to update clk_xin
        mmc: core: clear flags before allowing to retune
      8f3f2ccf
    • Linus Torvalds's avatar
      Merge tag 'gpio-updates-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · b8052599
      Linus Torvalds authored
      Pull gpio updates from Bartosz Golaszewski:
       "One new driver, support for new models in existing ones, dt-bindings
        conversions for several modules and improvements all over the place.
      
        Summary:
      
         - new driver for the IDT 79RC3243x GPIO controller
      
         - device tree bindings coversion to YAML for the following drivers:
           gpio-rk3328-grf, gpio-omap, gpio-davinci, gpio-zynq, gpio-stp,
           gpio-pcf857x
      
         - cleanup of probe functions in many drivers from Alexandru Ardelean,
           mostly dropping unnecessary calls to platform_set_drvdata() and
           removing error messages where none are needed (handled by the
           subsystem already)
      
         - several improvements to the core gpiolib and the sysfs interface
           code from Andy Shevchenko
      
         - conversion of the gpio-xilinx driver to using the bitmap API +
           improvements of suspend/resume handling + minor tweaks
      
         - convert the gpio-stmpe to using devres helpers exclusively in probe
           for improved robustness
      
         - updates for the generic gpio-regmap driver
      
         - updates for the gpio-dwapb driver
      
         - support for a new model in gpio-pca953x
      
         - cleanups in gpio-tegra186, gpio-104-idio-16, gpio-mxs & gpio-xgene
      
         - slight code refactoring of the gpio-zynq driver
      
         - documentation fixes from Mauro Carvalho Chehab
      
         - a bunch of minor tweaks and improvements all over the place"
      
      * tag 'gpio-updates-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: (57 commits)
        docs: driver-api: gpio: using-gpio.rst: avoid using ReST :doc:`foo` markup
        dt-bindings: gpio: pcf857x: Convert to json-schema
        gpio: mxs: Prefer unsigned int to bare use of unsigned
        dt-bindings: gpio: stp: convert to json-schema
        dt-bindings: gpio: zynq: convert bindings to YAML
        dt-bindings: gpio: gpio-davinci: Convert to json-schema
        gpio: pca953x: Add support for the On Semi pca9655
        gpio: gpio-xilinx: update on suspend and resume calls
        gpio: zynq: Check return value of irq_get_irq_data
        gpio: zynq: Check return value of pm_runtime_get_sync
        gpio: zynq: use module_platform_driver to simplify the code
        gpio: idt3243x: Fix return value check in idt_gpio_probe()
        MAINTAINERS: update ti,omap-gpio.yaml reference
        dt-bindings: gpio: Add devicetree binding for IDT 79RC32434 GPIO controller
        gpio: Add support for IDT 79RC3243x GPIO controller
        gpio: regmap: move drvdata to config data
        gpio-dwapb: Drop unused headers and sort the rest
        gpio: gpio-regmap: Use devm_add_action_or_reset()
        gpio: dwapb: Switch to use fwnode_irq_get()
        gpio: dwapb: Drop redundant check in dwapb_irq_set_type()
        ...
      b8052599
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 1f89a590
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
      
       - a new driver for SparkFun Qwiic Joystick
      
       - pm8941-pwrkey driver now supports PMK8350
      
       - a bunch of assorted driver fixes
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (44 commits)
        Input: joydev - prevent use of not validated data in JSIOCSBTNMAP ioctl
        Input: hideep - fix the uninitialized use in hideep_nvm_unlock()
        Input: trackpoint - use kobj_to_dev()
        Input: atkbd - use kobj_to_dev()
        Input: tsc200x-core - use kobj_to_dev()
        Input: ims-pcu - use kobj_to_dev()
        Input: cros_ec_keyb - use kobj_to_dev() API
        dt-bindings: input: touchscreen: st1232: Convert to json-schema
        Input: i8042 - fix typos in comments
        Input: add SparkFun Qwiic Joystick driver
        dt-bindings: Add vendor prefix and bindings for Qwiic Joystick
        Input: cy8ctmg110_ts - switch to using gpiod API
        Input: cy8ctmg110_ts - switch to using managed resources
        Input: cy8ctmg110_ts - use endian helpers when converting data on wire
        Input: cy8ctmg110_ts - let I2C core configure wake interrupt
        Input: cy8ctmg110_ts - do not hardcode as wakeup source
        Input: cy8ctmg110_ts - do not hard code interrupt trigger
        Input: cy8ctmg110_ts - rely on platform code to supply interrupt
        Input: resistive-adc-touch - fix uninitialized variable 'press'
        Input: pm8941-pwrkey - add support for PMK8350 PON_HLOS PMIC peripheral
        ...
      1f89a590
    • Linus Torvalds's avatar
      Merge tag 'mtd/for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · da85e7ed
      Linus Torvalds authored
      Pull MTD updates from Richard Weinberger:
       "MTD core changes:
         - Convert list_for_each to entry variant
         - Use MTD_DEVICE_ATTR_RO/RW() helper macros
         - Remove unnecessary OOM messages
         - Potential NULL dereference in mtd_otp_size()
         - Fix freeing of otp_info buffer
         - Create partname and partid debug files for child MTDs
         - tests:
            - Remove redundant assignment to err
            - Fix error return code in mtd_oobtest_init()
         - Add OTP NVMEM provider support
         - Allow specifying of_node
         - Convert sysfs sprintf/snprintf family to sysfs_emit
      
        Bindings changes:
         - Convert ti,am654-hbmc.txt to YAML schema
         - spi-nor: add otp property
         - Add OTP bindings
         - add YAML schema for the generic MTD bindings
         - Add brcm,trx-magic
      
        MTD device drivers changes:
         - Add support for microchip 48l640 EERAM
         - Remove superfluous "break"
         - sm_ftl:
            - Fix alignment of block comment
         - nftl:
            - Return -ENOMEM when kmalloc failed
         - nftlcore:
            - Remove set but rewrite variables
         - phram:
            - Fix error return code in phram_setup()
         - plat-ram:
            - Remove redundant dev_err call in platram_probe()
      
        MTD parsers changes:
         - Qcom:
            - Fix leaking of partition name
         - Redboot:
            - Fix style issues
            - Seek fis-index-block in the right node
         - trx:
            - Allow to use TRX parser on Mediatek SoCs
            - Allow to specify brcm, trx-magic in DT
      
        Raw NAND core:
         - Allow SDR timings to be nacked
         - Bring support for NV-DDR timings which involved a number of small
           preparation changes to bring new helpers, properly introduce NV-DDR
           structures, fill them, differenciate them and pick the best timing
           set.
         - Add the necessary infrastructure to parse the new gpio-cs property
           which aims at enlarging the number of available CS when a hardware
           controller is too constrained.
         - Update dead URL
         - Silence static checker warning in nand_setup_interface()
         - BBT:
            - Fix corner case in bad block table handling
         - onfi:
            - Use more recent ONFI specification wording
            - Use the BIT() macro when possible
      
        Raw NAND controller drivers:
         - Atmel:
            - Ensure the data interface is supported.
         - Arasan:
            - Finer grain NV-DDR configuration
            - Rename the data interface register
            - Use the right DMA mask
            - Leverage additional GPIO CS
            - Ensure proper configuration for the asserted target
            - Add support for the NV-DDR interface
            - Fix a macro parameter
         - brcmnand:
            - Convert bindings to json-schema
         - OMAP:
            - Various fixes and style improvements
            - Add larger page NAND chips support
         - PL35X:
            - New driver
         - QCOM:
            - Avoid writing to obsolete register
            - Delete an unneeded bool conversion
            - Allow override of partition parser
         - Marvell:
            - Minor documentation correction
            - Add missing clk_disable_unprepare() on error in
              marvell_nfc_resume()
         - R852:
            - Use DEVICE_ATTR_RO() helper macro
         - MTK:
            - Remove redundant dev_err call in mtk_ecc_probe()
         - HISI504:
            - Remove redundant dev_err call in probe
      
        SPI-NAND core:
         - Light reorganisation for the introduction of a core resume handler
         - Fix double counting of ECC stats
      
        SPI-NAND manufacturer drivers:
         - Macronix:
            - Add support for serial NAND flash
      
        SPI NOR core changes:
         - Ability to dump SFDP tables via sysfs
         - Support for erasing OTP regions on Winbond and similar flashes
         - Few API doc updates and fixes
         - Locking support for MX25L12805D
      
        SPI NOR controller drivers changes:
         - Use SPI_MODE_X_MASK in nxp-spifi
         - Intel Alder Lake-M SPI serial flash support"
      
      * tag 'mtd/for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (125 commits)
        mtd: spi-nor: remove redundant continue statement
        mtd: rawnand: omap: Add larger page NAND chips support
        mtd: rawnand: omap: Various style fixes
        mtd: rawnand: omap: Check return values
        mtd: rawnand: omap: Rename a macro
        mtd: rawnand: omap: Aggregate the HW configuration of the ELM
        mtd: rawnand: pl353: Add support for the ARM PL353 SMC NAND controller
        dt-bindings: mtd: pl353-nand: Describe this hardware controller
        MAINTAINERS: Add PL353 NAND controller entry
        mtd: rawnand: qcom: avoid writing to obsolete register
        mtd: rawnand: marvell: Minor documentation correction
        mtd: rawnand: r852: use DEVICE_ATTR_RO() helper macro
        mtd: spinand: add SPI-NAND MTD resume handler
        mtd: spinand: Add spinand_init_flash() helper
        mtd: spinand: add spinand_read_cfg() helper
        mtd: rawnand: marvell: add missing clk_disable_unprepare() on error in marvell_nfc_resume()
        mtd: rawnand: arasan: Finer grain NV-DDR configuration
        mtd: rawnand: arasan: Rename the data interface register
        mtd: rawnand: onfi: Fix endianness when reading NV-DDR values
        mtd: rawnand: arasan: Use the right DMA mask
        ...
      da85e7ed
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 8fc4fb17
      Linus Torvalds authored
      Pull m68knommu update from Greg Ungerer:
       "Fix fix missing LCD splash screen data initializer"
      
      * tag 'm68knommu-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68knommu: fix missing LCD splash screen data initializer
      8fc4fb17
  5. Jul 05, 2021