1. 17 Jan, 2024 14 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.8-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 82fd5ee9
      Linus Torvalds authored
      Pull xen updates from Juergen Gross:
      
       - update some Xen PV interface related headers
      
       - fix some kernel-doc comments in the xenbus driver
      
       - fix the Xen gntdev driver to not access the struct page of pages
         imported from a DMA-buf
      
      * tag 'for-linus-6.8-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import
        xen/xenbus: client: fix kernel-doc comments
        xen: update PV-device interface headers
      82fd5ee9
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 09d1c6a8
      Linus Torvalds authored
      Pull kvm updates from Paolo Bonzini:
       "Generic:
      
         - Use memdup_array_user() to harden against overflow.
      
         - Unconditionally advertise KVM_CAP_DEVICE_CTRL for all
           architectures.
      
         - Clean up Kconfigs that all KVM architectures were selecting
      
         - New functionality around "guest_memfd", a new userspace API that
           creates an anonymous file and returns a file descriptor that refers
           to it. guest_memfd files are bound to their owning virtual machine,
           cannot be mapped, read, or written by userspace, and cannot be
           resized. guest_memfd files do however support PUNCH_HOLE, which can
           be used to switch a memory area between guest_memfd and regular
           anonymous memory.
      
         - New ioctl KVM_SET_MEMORY_ATTRIBUTES allowing userspace to specify
           per-page attributes for a given page of guest memory; right now the
           only attribute is whether the guest expects to access memory via
           guest_memfd or not, which in Confidential SVMs backed by SEV-SNP,
           TDX or ARM64 pKVM is checked by firmware or hypervisor that
           guarantees confidentiality (AMD PSP, Intel TDX module, or EL2 in
           the case of pKVM).
      
        x86:
      
         - Support for "software-protected VMs" that can use the new
           guest_memfd and page attributes infrastructure. This is mostly
           useful for testing, since there is no pKVM-like infrastructure to
           provide a meaningfully reduced TCB.
      
         - Fix a relatively benign off-by-one error when splitting huge pages
           during CLEAR_DIRTY_LOG.
      
         - Fix a bug where KVM could incorrectly test-and-clear dirty bits in
           non-leaf TDP MMU SPTEs if a racing thread replaces a huge SPTE with
           a non-huge SPTE.
      
         - Use more generic lockdep assertions in paths that don't actually
           care about whether the caller is a reader or a writer.
      
         - let Xen guests opt out of having PV clock reported as "based on a
           stable TSC", because some of them don't expect the "TSC stable" bit
           (added to the pvclock ABI by KVM, but never set by Xen) to be set.
      
         - Revert a bogus, made-up nested SVM consistency check for
           TLB_CONTROL.
      
         - Advertise flush-by-ASID support for nSVM unconditionally, as KVM
           always flushes on nested transitions, i.e. always satisfies flush
           requests. This allows running bleeding edge versions of VMware
           Workstation on top of KVM.
      
         - Sanity check that the CPU supports flush-by-ASID when enabling SEV
           support.
      
         - On AMD machines with vNMI, always rely on hardware instead of
           intercepting IRET in some cases to detect unmasking of NMIs
      
         - Support for virtualizing Linear Address Masking (LAM)
      
         - Fix a variety of vPMU bugs where KVM fail to stop/reset counters
           and other state prior to refreshing the vPMU model.
      
         - Fix a double-overflow PMU bug by tracking emulated counter events
           using a dedicated field instead of snapshotting the "previous"
           counter. If the hardware PMC count triggers overflow that is
           recognized in the same VM-Exit that KVM manually bumps an event
           count, KVM would pend PMIs for both the hardware-triggered overflow
           and for KVM-triggered overflow.
      
         - Turn off KVM_WERROR by default for all configs so that it's not
           inadvertantly enabled by non-KVM developers, which can be
           problematic for subsystems that require no regressions for W=1
           builds.
      
         - Advertise all of the host-supported CPUID bits that enumerate
           IA32_SPEC_CTRL "features".
      
         - Don't force a masterclock update when a vCPU synchronizes to the
           current TSC generation, as updating the masterclock can cause
           kvmclock's time to "jump" unexpectedly, e.g. when userspace
           hotplugs a pre-created vCPU.
      
         - Use RIP-relative address to read kvm_rebooting in the VM-Enter
           fault paths, partly as a super minor optimization, but mostly to
           make KVM play nice with position independent executable builds.
      
         - Guard KVM-on-HyperV's range-based TLB flush hooks with an #ifdef on
           CONFIG_HYPERV as a minor optimization, and to self-document the
           code.
      
         - Add CONFIG_KVM_HYPERV to allow disabling KVM support for HyperV
           "emulation" at build time.
      
        ARM64:
      
         - LPA2 support, adding 52bit IPA/PA capability for 4kB and 16kB base
           granule sizes. Branch shared with the arm64 tree.
      
         - Large Fine-Grained Trap rework, bringing some sanity to the
           feature, although there is more to come. This comes with a prefix
           branch shared with the arm64 tree.
      
         - Some additional Nested Virtualization groundwork, mostly
           introducing the NV2 VNCR support and retargetting the NV support to
           that version of the architecture.
      
         - A small set of vgic fixes and associated cleanups.
      
        Loongarch:
      
         - Optimization for memslot hugepage checking
      
         - Cleanup and fix some HW/SW timer issues
      
         - Add LSX/LASX (128bit/256bit SIMD) support
      
        RISC-V:
      
         - KVM_GET_REG_LIST improvement for vector registers
      
         - Generate ISA extension reg_list using macros in get-reg-list
           selftest
      
         - Support for reporting steal time along with selftest
      
        s390:
      
         - Bugfixes
      
        Selftests:
      
         - Fix an annoying goof where the NX hugepage test prints out garbage
           instead of the magic token needed to run the test.
      
         - Fix build errors when a header is delete/moved due to a missing
           flag in the Makefile.
      
         - Detect if KVM bugged/killed a selftest's VM and print out a helpful
           message instead of complaining that a random ioctl() failed.
      
         - Annotate the guest printf/assert helpers with __printf(), and fix
           the various bugs that were lurking due to lack of said annotation"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (185 commits)
        x86/kvm: Do not try to disable kvmclock if it was not enabled
        KVM: x86: add missing "depends on KVM"
        KVM: fix direction of dependency on MMU notifiers
        KVM: introduce CONFIG_KVM_COMMON
        KVM: arm64: Add missing memory barriers when switching to pKVM's hyp pgd
        KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
        RISC-V: KVM: selftests: Add get-reg-list test for STA registers
        RISC-V: KVM: selftests: Add steal_time test support
        RISC-V: KVM: selftests: Add guest_sbi_probe_extension
        RISC-V: KVM: selftests: Move sbi_ecall to processor.c
        RISC-V: KVM: Implement SBI STA extension
        RISC-V: KVM: Add support for SBI STA registers
        RISC-V: KVM: Add support for SBI extension registers
        RISC-V: KVM: Add SBI STA info to vcpu_arch
        RISC-V: KVM: Add steal-update vcpu request
        RISC-V: KVM: Add SBI STA extension skeleton
        RISC-V: paravirt: Implement steal-time support
        RISC-V: Add SBI STA extension definitions
        RISC-V: paravirt: Add skeleton for pv-time support
        RISC-V: KVM: Fix indentation in kvm_riscv_vcpu_set_reg_csr()
        ...
      09d1c6a8
    • Linus Torvalds's avatar
      Merge tag 'docs-6.8-2' of git://git.lwn.net/linux · 1b1934db
      Linus Torvalds authored
      Pull documentation fixes from Jonathan Corbet:
       "A handful of late-arriving documentation fixes"
      
      * tag 'docs-6.8-2' of git://git.lwn.net/linux:
        docs, kprobes: Add loongarch as supported architecture
        docs, kprobes: Update email address of Masami Hiramatsu
        docs: admin-guide: hw_random: update rng-tools website
        Documentation/core-api: fix spelling mistake in workqueue
        docs: kernel_feat.py: fix potential command injection
        Documentation: constrain alabaster package to older versions
      1b1934db
    • Linus Torvalds's avatar
      Merge tag 'parisc-for-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · bce3b5d6
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
       "Two small fixes for the parisc architecture:
      
         - Fix PDC address calculation with narrow firmware (64-bit kernel on
           32-bit firmware)
      
         - Fix kthread which checks power button get started on qemu too"
      
      * tag 'parisc-for-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc/power: Fix power soft-off button emulation on qemu
        parisc/firmware: Fix F-extend for PDC addresses
      bce3b5d6
    • Linus Torvalds's avatar
      Merge tag 'xtensa-20240117' of https://github.com/jcmvbkbc/linux-xtensa · 47ce834f
      Linus Torvalds authored
      Pull Xtensa updates from Max Filippov:
      
       - small cleanups in the xtensa PCI and asmmacro code
      
       - fix kernel build with FDPIC toolchain
      
      * tag 'xtensa-20240117' of https://github.com/jcmvbkbc/linux-xtensa:
        xtensa: don't produce FDPIC output with fdpic toolchain
        xtensa: Use PCI_HEADER_TYPE_MFD instead of literal
        xtensa: replace <asm-generic/export.h> with <linux/export.h>
        xtensa: fix variants path in the Kconfig help
      47ce834f
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · c4c6044d
      Linus Torvalds authored
      Pull ARM updates from Russell King:
      
       - add missing neon instructions for the neon support hook
      
       - arrange for davinci to select PINCTRL
      
       - try VMA lock-base page fault handling first
      
       - use memblock_alloc_try_nid_raw() for kasan shadow page
      
       - dma: use kvzalloc() rather than kzalloc()/vzalloc()
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: 9331/1: ARM/dma-mapping: replace kzalloc() and vzalloc() with kvzalloc()
        ARM: 9329/1: kasan: Use memblock_alloc_try_nid_raw for shadow page
        ARM: 9328/1: mm: try VMA lock-based page fault handling first
        ARM: 9330/1: davinci: also select PINCTRL
        ARM: 9327/1: vfp: Add missing VFP instructions to neon_support_hook
      c4c6044d
    • Linus Torvalds's avatar
      Merge tag 'microblaze-v6.8' of git://git.monstr.eu/linux-2.6-microblaze · 284a4dde
      Linus Torvalds authored
      Pull microblaze updates from Michal Simek:
       "Just defconfig updates:
      
         - enable NFS, Marvell phy
      
         - sync defconfig with the latest Kconfig layout"
      
      * tag 'microblaze-v6.8' of git://git.monstr.eu/linux-2.6-microblaze:
        microblaze: defconfig: Enable the Marvell phy driver
        microblaze: Enable options to mount a rootfs via NFS
        microblaze: Align defconfig with latest Kconfig layout
      284a4dde
    • Linus Torvalds's avatar
      Merge tag 'mips_6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 096f286e
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
       "Just cleanups and fixes"
      
      * tag 'mips_6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
        MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
        MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
        MIPS: Fix typos
        MIPS: Remove unused shadow GPR support from vector irq setup
        MIPS: Allow vectored interrupt handler to reside everywhere for 64bit
        mips: Set dump-stack arch description
        mips: mm: add slab availability checking in ioremap_prot
        mips: Optimize max_mapnr init procedure
        mips: Fix max_mapnr being uninitialized on early stages
        mips: Fix incorrect max_low_pfn adjustment
        mips: dmi: Fix early remap on MIPS32
        MIPS: compressed: Use correct instruction for 64 bit code
        MIPS: SGI-IP27: hubio: fix nasid kernel-doc warning
        MAINTAINERS: Add myself as maintainer of the Ralink architecture
      096f286e
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.8-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 4331f070
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Support for many new extensions in hwprobe, along with a handful of
         cleanups
      
       - Various cleanups to our page table handling code, so we alwayse use
         {READ,WRITE}_ONCE
      
       - Support for the which-cpus flavor of hwprobe
      
       - Support for XIP kernels has been resurrected
      
      * tag 'riscv-for-linus-6.8-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (52 commits)
        riscv: hwprobe: export Zicond extension
        riscv: hwprobe: export Zacas ISA extension
        riscv: add ISA extension parsing for Zacas
        dt-bindings: riscv: add Zacas ISA extension description
        riscv: hwprobe: export Ztso ISA extension
        riscv: add ISA extension parsing for Ztso
        use linux/export.h rather than asm-generic/export.h
        riscv: Remove SHADOW_OVERFLOW_STACK_SIZE macro
        riscv; fix __user annotation in save_v_state()
        riscv: fix __user annotation in traps_misaligned.c
        riscv: Select ARCH_WANTS_NO_INSTR
        riscv: Remove obsolete rv32_defconfig file
        riscv: Allow disabling of BUILTIN_DTB for XIP
        riscv: Fixed wrong register in XIP_FIXUP_FLASH_OFFSET macro
        riscv: Make XIP bootable again
        riscv: Fix set_direct_map_default_noflush() to reset _PAGE_EXEC
        riscv: Fix module_alloc() that did not reset the linear mapping permissions
        riscv: Fix wrong usage of lm_alias() when splitting a huge linear mapping
        riscv: Check if the code to patch lies in the exit section
        riscv: Use the same CPU operations for all CPUs
        ...
      4331f070
    • Linus Torvalds's avatar
      Merge tag 'uml-for-linus-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux · 6cff79f4
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - Clang coverage support
      
       - Many cleanups from Benjamin Berg
      
       - Various minor fixes
      
      * tag 'uml-for-linus-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux:
        um: Mark 32bit syscall helpers as clobbering memory
        um: Remove unused register save/restore functions
        um: Rely on PTRACE_SETREGSET to set FS/GS base registers
        Documentation: kunit: Add clang UML coverage example
        arch: um: Add Clang coverage support
        um: time-travel: fix time corruption
        um: net: Fix return type of uml_net_start_xmit()
        um: Always inline stub functions
        um: Do not use printk in userspace trampoline
        um: Reap winch thread if it fails
        um: Do not use printk in SIGWINCH helper thread
        um: Don't use vfprintf() for os_info()
        um: Make errors to stop ptraced child fatal during startup
        um: Drop NULL check from start_userspace
        um: Drop support for hosts without SYSEMU_SINGLESTEP support
        um: document arch_futex_atomic_op_inuser
        um: mmu: remove stub_pages
        um: Fix naming clash between UML and scheduler
        um: virt-pci: fix platform map offset
      6cff79f4
    • Linus Torvalds's avatar
      Merge tag 'ubifs-for-linus-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · 0c6bc372
      Linus Torvalds authored
      Pull UBI and UBIFS updates from Richard Weinberger:
       "UBI:
         - Use in-tree fault injection framework and add new injection types
         - Fix for a memory leak in the block driver
      
        UBIFS:
         - kernel-doc fixes
         - Various minor fixes"
      
      * tag 'ubifs-for-linus-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
        ubi: block: fix memleak in ubiblock_create()
        ubifs: fix kernel-doc warnings
        mtd: Add several functions to the fail_function list
        ubi: Reserve sufficient buffer length for the input mask
        ubi: Add six fault injection type for testing
        ubi: Split io_failures into write_failure and erase_failure
        ubi: Use the fault injection framework to enhance the fault injection capability
        ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
        ubifs: Check @c->dirty_[n|p]n_cnt and @c->nroot state under @c->lp_mutex
        ubifs: describe function parameters
        ubifs: auth.c: fix kernel-doc function prototype warning
        ubifs: use crypto_shash_tfm_digest() in ubifs_hmac_wkm()
      0c6bc372
    • Linus Torvalds's avatar
      Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/linux · eebe7582
      Linus Torvalds authored
      Pull fscrypt fix from Eric Biggers:
       "Fix a bug in my change to how f2fs frees its superblock info (which
        was part of changing the timing of fscrypt keyring destruction)"
      
      * tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/linux:
        f2fs: fix double free of f2fs_sb_info
      eebe7582
    • Linus Torvalds's avatar
      Merge tag 'vfs-6.8-rc1.fixes' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs · c2459ce0
      Linus Torvalds authored
      Pull vfs fixes from Christian Brauner:
       "This contains two fixes for the current merge window. The listmount
        changes that you requested and a fix for a fsnotify performance
        regression:
      
         - The proposed listmount changes are currently under my authorship. I
           wasn't sure whether you'd wanted to be author as the patch wasn't
           signed off. If you do I'm happy if you just apply your own patch.
      
           I've tested the patch with my sh4 cross-build setup. And confirmed
           that a) the build failure with sh on current upstream is
           reproducible and that b) the proposed patch fixes the build
           failure. That should only leave the task of fixing put_user on sh.
      
         - The fsnotify regression was caused by moving one of the hooks out
           of the security hook in preparation for other fsnotify work. This
           meant that CONFIG_SECURITY would have compiled out the fsnotify
           hook before but didn't do so now.
      
           That lead to up to 6% performance regression in some io_uring
           workloads that compile all fsnotify and security checks out. Fix
           this by making sure that the relevant hooks are covered by the
           already existing CONFIG_FANOTIFY_ACCESS_PERMISSIONS where the
           relevant hook belongs"
      
      * tag 'vfs-6.8-rc1.fixes' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs:
        fs: rework listmount() implementation
        fsnotify: compile out fsnotify permission hooks if !FANOTIFY_ACCESS_PERMISSIONS
      c2459ce0
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-01-12-16-52' of... · 7f5e47f7
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-01-12-16-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc hotfixes from Andrew Morton:
       "For once not mostly MM-related.
      
        17 hotfixes. 10 address post-6.7 issues and the other 7 are cc:stable"
      
      * tag 'mm-hotfixes-stable-2024-01-12-16-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        userfaultfd: avoid huge_zero_page in UFFDIO_MOVE
        MAINTAINERS: add entry for shrinker
        selftests: mm: hugepage-vmemmap fails on 64K page size systems
        mm/memory_hotplug: fix memmap_on_memory sysfs value retrieval
        mailmap: switch email for Tanzir Hasan
        mailmap: add old address mappings for Randy
        kernel/crash_core.c: make __crash_hotplug_lock static
        efi: disable mirror feature during crashkernel
        kexec: do syscore_shutdown() in kernel_kexec
        mailmap: update entry for Manivannan Sadhasivam
        fs/proc/task_mmu: move mmu notification mechanism inside mm lock
        mm: zswap: switch maintainers to recently active developers and reviewers
        scripts/decode_stacktrace.sh: optionally use LLVM utilities
        kasan: avoid resetting aux_lock
        lib/Kconfig.debug: disable CONFIG_DEBUG_INFO_BTF for Hexagon
        MAINTAINERS: update LTP maintainers
        kdump: defer the insertion of crashkernel resources
      7f5e47f7
  2. 13 Jan, 2024 6 commits
  3. 12 Jan, 2024 20 commits
    • Suren Baghdasaryan's avatar
      userfaultfd: avoid huge_zero_page in UFFDIO_MOVE · 5d4747a6
      Suren Baghdasaryan authored
      While testing UFFDIO_MOVE ioctl, syzbot triggered VM_BUG_ON_PAGE caused by
      a call to PageAnonExclusive() with a huge_zero_page as a parameter. 
      UFFDIO_MOVE does not yet handle zeropages and returns EBUSY when one is
      encountered.  Add an early huge_zero_page check in the PMD move path to
      avoid this situation.
      
      Link: https://lkml.kernel.org/r/20240112013935.1474648-1-surenb@google.com
      Fixes: adef4406 ("userfaultfd: UFFDIO_MOVE uABI")
      Reported-by: syzbot+705209281e36404998f6@syzkaller.appspotmail.com
      Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
      Acked-by: default avatarDavid Hildenbrand <david@redhat.com>
      Cc: Andrea Arcangeli <aarcange@redhat.com>
      Cc: Peter Xu <peterx@redhat.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      5d4747a6
    • Qi Zheng's avatar
      MAINTAINERS: add entry for shrinker · aa8f9191
      Qi Zheng authored
      Since the shrinker-related code has been moved to a separate shrinker.c
      file, it's time to add a MAINTAINERS entry for it.
      
      Dave, Roman, Muchun and I have all worked on shrinker (development,
      review, etc) in the past period of time, and all of us are willing to
      continue working on shrinker in the future, so I'd like to add all of us
      as maintainer/reviewer.
      
      Link: https://lkml.kernel.org/r/20240111075219.34221-1-zhengqi.arch@bytedance.comSigned-off-by: default avatarQi Zheng <zhengqi.arch@bytedance.com>
      Cc: Dave Chinner <david@fromorbit.com>
      Cc: Muchun Song <muchun.song@linux.dev>
      Cc: Roman Gushchin <roman.gushchin@linux.dev>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      aa8f9191
    • Donet Tom's avatar
      selftests: mm: hugepage-vmemmap fails on 64K page size systems · 00bcfcd4
      Donet Tom authored
      The kernel sefltest mm/hugepage-vmemmap fails on architectures which has
      different page size other than 4K.  In hugepage-vmemmap page size used is
      4k so the pfn calculation will go wrong on systems which has different
      page size .The length of MAP_HUGETLB memory must be hugepage aligned but
      in hugepage-vmemmap map length is 2M so this will not get aligned if the
      system has differnet hugepage size.
      
      Added  psize() to get the page size and default_huge_page_size() to
      get the default hugepage size at run time, hugepage-vmemmap test pass
      on powerpc with 64K page size and x86 with 4K page size.
      
      Result on powerpc without patch (page size 64K)
      *# ./hugepage-vmemmap
      Returned address is 0x7effff000000 whose pfn is 0
      Head page flags (100000000) is invalid
      check_page_flags: Invalid argument
      *#
      
      Result on powerpc with patch (page size 64K)
      *# ./hugepage-vmemmap
      Returned address is 0x7effff000000 whose pfn is 600
      *#
      
      Result on x86 with patch (page size 4K)
      *# ./hugepage-vmemmap
      Returned address is 0x7fc7c2c00000 whose pfn is 1dac00
      *#
      
      Link: https://lkml.kernel.org/r/3b3a3ae37ba21218481c482a872bbf7526031600.1704865754.git.donettom@linux.vnet.ibm.com
      Fixes: b147c89c ("selftests: vm: add a hugetlb test case")
      Signed-off-by: default avatarDonet Tom <donettom@linux.vnet.ibm.com>
      Reported-by: default avatarGeetika Moolchandani <geetika@linux.ibm.com>
      Tested-by: default avatarGeetika Moolchandani <geetika@linux.ibm.com>
      Acked-by: default avatarMuchun Song <muchun.song@linux.dev>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      00bcfcd4
    • Sumanth Korikkar's avatar
      mm/memory_hotplug: fix memmap_on_memory sysfs value retrieval · 11684134
      Sumanth Korikkar authored
      set_memmap_mode() stores the kernel parameter memmap mode as an integer. 
      However, the get_memmap_mode() function utilizes param_get_bool() to fetch
      the value as a boolean, leading to potential endianness issue.  On
      Big-endian architectures, the memmap_on_memory is consistently displayed
      as 'N' regardless of its actual status.
      
      To address this endianness problem, the solution involves obtaining the
      mode as an integer.  This adjustment ensures the proper display of the
      memmap_on_memory parameter, presenting it as one of the following options:
      Force, Y, or N.
      
      Link: https://lkml.kernel.org/r/20240110140127.241451-1-sumanthk@linux.ibm.com
      Fixes: 2d1f649c ("mm/memory_hotplug: support memmap_on_memory when memmap is not aligned to pageblocks")
      Signed-off-by: default avatarSumanth Korikkar <sumanthk@linux.ibm.com>
      Suggested-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
      Acked-by: default avatarDavid Hildenbrand <david@redhat.com>
      Cc: Alexander Gordeev <agordeev@linux.ibm.com>
      Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: <stable@vger.kernel.org>	[6.6+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      11684134
    • Tanzir Hasan's avatar
      mailmap: switch email for Tanzir Hasan · 55f958c5
      Tanzir Hasan authored
      Access to the tanzirh@google.com email will be revoked upon the end of the
      internship.
      
      Link: https://lkml.kernel.org/r/20240105-newemail-v3-1-3dc8ae035b54@google.comSigned-off-by: default avatarTanzir Hasan <tanzirh@google.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: default avatarJustin Stitt <justinstitt@google.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      55f958c5
    • Randy Dunlap's avatar
      mailmap: add old address mappings for Randy · 0b8f128d
      Randy Dunlap authored
      Add my old email addresses so that git send-email will map them
      to my current email address.
      
      Link: https://lkml.kernel.org/r/20240106063051.13623-1-rdunlap@infradead.orgSigned-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      0b8f128d
    • Andrew Morton's avatar
      kernel/crash_core.c: make __crash_hotplug_lock static · 4e87ff59
      Andrew Morton authored
      sparse warnings:
      kernel/crash_core.c:749:1: sparse: sparse: symbol '__crash_hotplug_lock' was not declared. Should it be static?
      
      Fixes: e2a8f20d ("Crash: add lock to serialize crash hotplug handling")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Closes: https://lore.kernel.org/oe-kbuild-all/202401080654.IjjU5oK7-lkp@intel.com/
      Cc: Baoquan He <bhe@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4e87ff59
    • Ma Wupeng's avatar
      efi: disable mirror feature during crashkernel · 7ea6ec4c
      Ma Wupeng authored
      If the system has no mirrored memory or uses crashkernel.high while
      kernelcore=mirror is enabled on the command line then during crashkernel,
      there will be limited mirrored memory and this usually leads to OOM.
      
      To solve this problem, disable the mirror feature during crashkernel.
      
      Link: https://lkml.kernel.org/r/20240109041536.3903042-1-mawupeng1@huawei.comSigned-off-by: default avatarMa Wupeng <mawupeng1@huawei.com>
      Acked-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7ea6ec4c
    • James Gowans's avatar
      kexec: do syscore_shutdown() in kernel_kexec · 7bb94380
      James Gowans authored
      syscore_shutdown() runs driver and module callbacks to get the system into
      a state where it can be correctly shut down.  In commit 6f389a8f ("PM
      / reboot: call syscore_shutdown() after disable_nonboot_cpus()")
      syscore_shutdown() was removed from kernel_restart_prepare() and hence got
      (incorrectly?) removed from the kexec flow.  This was innocuous until
      commit 6735150b ("KVM: Use syscore_ops instead of reboot_notifier to
      hook restart/shutdown") changed the way that KVM registered its shutdown
      callbacks, switching from reboot notifiers to syscore_ops.shutdown.  As
      syscore_shutdown() is missing from kexec, KVM's shutdown hook is not run
      and virtualisation is left enabled on the boot CPU which results in triple
      faults when switching to the new kernel on Intel x86 VT-x with VMXE
      enabled.
      
      Fix this by adding syscore_shutdown() to the kexec sequence.  In terms of
      where to add it, it is being added after migrating the kexec task to the
      boot CPU, but before APs are shut down.  It is not totally clear if this
      is the best place: in commit 6f389a8f ("PM / reboot: call
      syscore_shutdown() after disable_nonboot_cpus()") it is stated that
      "syscore_ops operations should be carried with one CPU on-line and
      interrupts disabled." APs are only offlined later in machine_shutdown(),
      so this syscore_shutdown() is being run while APs are still online.  This
      seems to be the correct place as it matches where syscore_shutdown() is
      run in the reboot and halt flows - they also run it before APs are shut
      down.  The assumption is that the commit message in commit 6f389a8f
      ("PM / reboot: call syscore_shutdown() after disable_nonboot_cpus()") is
      no longer valid.
      
      KVM has been discussed here as it is what broke loudly by not having
      syscore_shutdown() in kexec, but this change impacts more than just KVM;
      all drivers/modules which register a syscore_ops.shutdown callback will
      now be invoked in the kexec flow.  Looking at some of them like x86 MCE it
      is probably more correct to also shut these down during kexec. 
      Maintainers of all drivers which use syscore_ops.shutdown are added on CC
      for visibility.  They are:
      
      arch/powerpc/platforms/cell/spu_base.c  .shutdown = spu_shutdown,
      arch/x86/kernel/cpu/mce/core.c	        .shutdown = mce_syscore_shutdown,
      arch/x86/kernel/i8259.c                 .shutdown = i8259A_shutdown,
      drivers/irqchip/irq-i8259.c	        .shutdown = i8259A_shutdown,
      drivers/irqchip/irq-sun6i-r.c	        .shutdown = sun6i_r_intc_shutdown,
      drivers/leds/trigger/ledtrig-cpu.c	.shutdown = ledtrig_cpu_syscore_shutdown,
      drivers/power/reset/sc27xx-poweroff.c	.shutdown = sc27xx_poweroff_shutdown,
      kernel/irq/generic-chip.c	        .shutdown = irq_gc_shutdown,
      virt/kvm/kvm_main.c	                .shutdown = kvm_shutdown,
      
      This has been tested by doing a kexec on x86_64 and aarch64.
      
      Link: https://lkml.kernel.org/r/20231213064004.2419447-1-jgowans@amazon.com
      Fixes: 6735150b ("KVM: Use syscore_ops instead of reboot_notifier to hook restart/shutdown")
      Signed-off-by: default avatarJames Gowans <jgowans@amazon.com>
      Cc: Baoquan He <bhe@redhat.com>
      Cc: Eric Biederman <ebiederm@xmission.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
      Cc: Samuel Holland <samuel@sholland.org>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Sebastian Reichel <sre@kernel.org>
      Cc: Orson Zhai <orsonzhai@gmail.com>
      Cc: Alexander Graf <graf@amazon.de>
      Cc: Jan H. Schoenherr <jschoenh@amazon.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7bb94380
    • Manivannan Sadhasivam's avatar
      mailmap: update entry for Manivannan Sadhasivam · 327b4603
      Manivannan Sadhasivam authored
      Remove the map for Linaro id as it is still in use and I want to use it
      for submitting patches.  Otherwise, git uses kernel.org as the author id
      for patches created using Linaro id.
      
      Link: https://lkml.kernel.org/r/20240109-update-mailmap-v1-1-bf7a39f15fb7@linaro.orgSigned-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      327b4603
    • Muhammad Usama Anjum's avatar
      fs/proc/task_mmu: move mmu notification mechanism inside mm lock · 4cccb622
      Muhammad Usama Anjum authored
      Move mmu notification mechanism inside mm lock to prevent race condition
      in other components which depend on it.  The notifier will invalidate
      memory range.  Depending upon the number of iterations, different memory
      ranges would be invalidated.
      
      The following warning would be removed by this patch:
      WARNING: CPU: 0 PID: 5067 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:734 kvm_mmu_notifier_change_pte+0x860/0x960 arch/x86/kvm/../../../virt/kvm/kvm_main.c:734
      
      There is no behavioural and performance change with this patch when
      there is no component registered with the mmu notifier.
      
      [akpm@linux-foundation.org: narrow the scope of `range', per Sean]
      Link: https://lkml.kernel.org/r/20240109112445.590736-1-usama.anjum@collabora.com
      Fixes: 52526ca7 ("fs/proc/task_mmu: implement IOCTL to get and optionally clear info about PTEs")
      Signed-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
      Reported-by: syzbot+81227d2bd69e9dedb802@syzkaller.appspotmail.com
      Link: https://lore.kernel.org/all/000000000000f6d051060c6785bc@google.com/Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
      Cc: Andrei Vagin <avagin@google.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
      Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
      Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
      Cc: Peter Xu <peterx@redhat.com>
      Cc: Ryan Roberts <ryan.roberts@arm.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Suren Baghdasaryan <surenb@google.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4cccb622
    • Johannes Weiner's avatar
      mm: zswap: switch maintainers to recently active developers and reviewers · ea52f715
      Johannes Weiner authored
      Yosry, Nhat and I have been doing most of the recent development and
      reviewing of changes in this space.  
      Signed-off-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
      Acked-by: default avatarNhat Pham <nphamcs@gmail.com>
      Acked-by: default avatarYosry Ahmed <yosryahmed@google.com>
      Acked-by: default avatarDan Streetman <ddstreet@ieee.org>
      Acked-by: default avatarSeth Jennings <sjenning@redhat.com>
      Cc: Vitaly Wool <vitaly.wool@konsulko.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      ea52f715
    • Carlos Llamas's avatar
      scripts/decode_stacktrace.sh: optionally use LLVM utilities · efbd6398
      Carlos Llamas authored
      GNU's addr2line can have problems parsing a vmlinux built with LLVM,
      particularly when LTO was used.  In order to decode the traces correctly
      this patch adds the ability to switch to LLVM's utilities readelf and
      addr2line.  The same approach is followed by Will in [1].
      
      Before:
        $ scripts/decode_stacktrace.sh vmlinux < kernel.log
        [17716.240635] Call trace:
        [17716.240646] skb_cow_data (??:?)
        [17716.240654] esp6_input (ld-temp.o:?)
        [17716.240666] xfrm_input (ld-temp.o:?)
        [17716.240674] xfrm6_rcv (??:?)
        [...]
      
      After:
        $ LLVM=1 scripts/decode_stacktrace.sh vmlinux < kernel.log
        [17716.240635] Call trace:
        [17716.240646] skb_cow_data (include/linux/skbuff.h:2172 net/core/skbuff.c:4503)
        [17716.240654] esp6_input (net/ipv6/esp6.c:977)
        [17716.240666] xfrm_input (net/xfrm/xfrm_input.c:659)
        [17716.240674] xfrm6_rcv (net/ipv6/xfrm6_input.c:172)
        [...]
      
      Note that one could set CROSS_COMPILE=llvm- instead to hack around this
      issue.  However, doing so can break the decodecode routine as it will
      force the selection of other LLVM utilities down the line e.g.  llvm-as.
      
      [1] https://lore.kernel.org/all/20230914131225.13415-3-will@kernel.org/
      
      Link: https://lkml.kernel.org/r/20230929034836.403735-1-cmllamas@google.comSigned-off-by: default avatarCarlos Llamas <cmllamas@google.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Reviewed-by: default avatarElliot Berman <quic_eberman@quicinc.com>
      Tested-by: default avatarJustin Stitt <justinstitt@google.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: John Stultz <jstultz@google.com>
      Cc: Masahiro Yamada <masahiroy@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Tom Rix <trix@redhat.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      efbd6398
    • Andrey Konovalov's avatar
      kasan: avoid resetting aux_lock · cc478e0b
      Andrey Konovalov authored
      With commit 63b85ac5 ("kasan: stop leaking stack trace handles"),
      KASAN zeroes out alloc meta when an object is freed.  The zeroed out data
      purposefully includes alloc and auxiliary stack traces but also
      accidentally includes aux_lock.
      
      As aux_lock is only initialized for each object slot during slab creation,
      when the freed slot is reallocated, saving auxiliary stack traces for the
      new object leads to lockdep reports when taking the zeroed out aux_lock.
      
      Arguably, we could reinitialize aux_lock when the object is reallocated,
      but a simpler solution is to avoid zeroing out aux_lock when an object
      gets freed.
      
      Link: https://lkml.kernel.org/r/20240109221234.90929-1-andrey.konovalov@linux.dev
      Fixes: 63b85ac5 ("kasan: stop leaking stack trace handles")
      Signed-off-by: default avatarAndrey Konovalov <andreyknvl@gmail.com>
      Reported-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Closes: https://lore.kernel.org/linux-next/5cc0f83c-e1d6-45c5-be89-9b86746fe731@paulmck-laptop/Reviewed-by: default avatarMarco Elver <elver@google.com>
      Tested-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Cc: Alexander Potapenko <glider@google.com>
      Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
      Cc: Dmitry Vyukov <dvyukov@google.com>
      Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      cc478e0b
    • Nathan Chancellor's avatar
      lib/Kconfig.debug: disable CONFIG_DEBUG_INFO_BTF for Hexagon · aaa2c9a9
      Nathan Chancellor authored
      pahole, which generates BTF, relies on elfutils to process DWARF debug
      info.  Because kernel modules are relocatable files, elfutils needs to
      resolve relocations when processing the DWARF .debug sections.
      
      Hexagon is not supported in binutils or elfutils, so elfutils is unable to
      process relocations in kernel modules, causing pahole to crash during BTF
      generation.
      
      Do not allow CONFIG_DEBUG_INFO_BTF to be selected for Hexagon until it is
      supported in elfutils, so that there are no more cryptic build failures
      during BTF generation.
      
      Link: https://lkml.kernel.org/r/20240105-hexagon-disable-btf-v1-1-ddab073e7f74@kernel.orgSigned-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Closes: https://lore.kernel.org/oe-kbuild-all/202312192107.wMIKiZWw-lkp@intel.com/Suggested-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Acked-by: default avatarBrian Cain <bcain@quicinc.com>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      aaa2c9a9
    • Petr Vorel's avatar
      MAINTAINERS: update LTP maintainers · 65cc8680
      Petr Vorel authored
      There are more people with git push permissions, but we keep only people
      who actually did review and merge patches last year.
      
      Link: https://lkml.kernel.org/r/20240104154953.1193634-1-pvorel@suse.czSigned-off-by: default avatarPetr Vorel <pvorel@suse.cz>
      Reviewed-by: default avatarLi Wang <liwang@redhat.com>
      Cc: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
      Cc: Jan Stancek <jstancek@redhat.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Wanlong Gao <wanlong.gao@gmail.com>
      Cc: Yang Xu <xuyang2018.jy@fujitsu.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      65cc8680
    • Huacai Chen's avatar
      kdump: defer the insertion of crashkernel resources · 4a693ce6
      Huacai Chen authored
      In /proc/iomem, sub-regions should be inserted after their parent,
      otherwise the insertion of parent resource fails.  But after generic
      crashkernel reservation applied, in both RISC-V and ARM64 (LoongArch will
      also use generic reservation later on), crashkernel resources are inserted
      before their parent, which causes the parent disappear in /proc/iomem.  So
      we defer the insertion of crashkernel resources to an early_initcall().
      
      1, Without 'crashkernel' parameter:
      
       100d0100-100d01ff : LOON0001:00
         100d0100-100d01ff : LOON0001:00 LOON0001:00
       100e0000-100e0bff : LOON0002:00
         100e0000-100e0bff : LOON0002:00 LOON0002:00
       1fe001e0-1fe001e7 : serial
       90400000-fa17ffff : System RAM
         f6220000-f622ffff : Reserved
         f9ee0000-f9ee3fff : Reserved
         fa120000-fa17ffff : Reserved
       fa190000-fe0bffff : System RAM
         fa190000-fa1bffff : Reserved
       fe4e0000-47fffffff : System RAM
         43c000000-441ffffff : Reserved
         47ff98000-47ffa3fff : Reserved
         47ffa4000-47ffa7fff : Reserved
         47ffa8000-47ffabfff : Reserved
         47ffac000-47ffaffff : Reserved
         47ffb0000-47ffb3fff : Reserved
      
      2, With 'crashkernel' parameter, before this patch:
      
       100d0100-100d01ff : LOON0001:00
         100d0100-100d01ff : LOON0001:00 LOON0001:00
       100e0000-100e0bff : LOON0002:00
         100e0000-100e0bff : LOON0002:00 LOON0002:00
       1fe001e0-1fe001e7 : serial
       e6200000-f61fffff : Crash kernel
       fa190000-fe0bffff : System RAM
         fa190000-fa1bffff : Reserved
       fe4e0000-47fffffff : System RAM
         43c000000-441ffffff : Reserved
         47ff98000-47ffa3fff : Reserved
         47ffa4000-47ffa7fff : Reserved
         47ffa8000-47ffabfff : Reserved
         47ffac000-47ffaffff : Reserved
         47ffb0000-47ffb3fff : Reserved
      
      3, With 'crashkernel' parameter, after this patch:
      
       100d0100-100d01ff : LOON0001:00
         100d0100-100d01ff : LOON0001:00 LOON0001:00
       100e0000-100e0bff : LOON0002:00
         100e0000-100e0bff : LOON0002:00 LOON0002:00
       1fe001e0-1fe001e7 : serial
       90400000-fa17ffff : System RAM
         e6200000-f61fffff : Crash kernel
         f6220000-f622ffff : Reserved
         f9ee0000-f9ee3fff : Reserved
         fa120000-fa17ffff : Reserved
       fa190000-fe0bffff : System RAM
         fa190000-fa1bffff : Reserved
       fe4e0000-47fffffff : System RAM
         43c000000-441ffffff : Reserved
         47ff98000-47ffa3fff : Reserved
         47ffa4000-47ffa7fff : Reserved
         47ffa8000-47ffabfff : Reserved
         47ffac000-47ffaffff : Reserved
         47ffb0000-47ffb3fff : Reserved
      
      Link: https://lkml.kernel.org/r/20231229080213.2622204-1-chenhuacai@loongson.cnSigned-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      Fixes: 0ab97169 ("crash_core: add generic function to do reservation")
      Cc: Baoquan He <bhe@redhat.com>
      Cc: Zhen Lei <thunder.leizhen@huawei.com>
      Cc: <stable@vger.kernel.org>	[6.6+]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4a693ce6
    • Linus Torvalds's avatar
      Merge tag 'devicetree-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 38814330
      Linus Torvalds authored
      Pull devicetree updates from Rob Herring:
      
       - Convert FPGA bridge, all TPMs (finally), and Rockchip HDMI bindings
         to schemas
      
       - Improvements in Samsung GPU schemas
      
       - A few more cases of dropping unneeded quotes in schemas
      
       - Merge QCom idle-states txt binding into common idle-states schema
      
       - Add X1E80100, SM8650, SM8650, and SDX75 SoCs to QCom Power Domain
         Controller
      
       - Add NXP i.mx8dl to SCU PD
      
       - Add synaptics r63353 panel controller
      
       - Clarify the wording around the use of 'wakeup-source' property
      
       - Add a DTS coding style doc
      
       - Add smi vendor prefix
      
       - Fix DT_SCHEMA_FILES incorrect matching of paths outside the kernel
         tree
      
       - Disable sysfb (e.g. EFI FB) when simple-framebuffer node is present
      
       - Fix double free in of_parse_phandle_with_args_map()
      
       - A couple of kerneldoc fixes
      
      * tag 'devicetree-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (37 commits)
        of: unittest: Fix of_count_phandle_with_args() expected value message
        dt-bindings: fpga: altera: Convert bridge bindings to yaml
        dt-bindings: fpga: Convert bridge binding to yaml
        dt-bindings: vendor-prefixes: Add smi
        dt-bindings: power: Clarify wording for wakeup-source property
        of: Fix double free in of_parse_phandle_with_args_map
        dt-bindings: ignore paths outside kernel for DT_SCHEMA_FILES
        drivers: of: Fixed kernel doc warning
        dt-bindings: tpm: Document Microsoft fTPM bindings
        dt-bindings: tpm: Convert IBM vTPM bindings to DT schema
        dt-bindings: tpm: Convert Google Cr50 bindings to DT schema
        dt-bindings: tpm: Consolidate TCG TIS bindings
        dt-bindings: display: rockchip,inno-hdmi: Document RK3128 compatible
        dt-bindings: arm: Add remote etm dt-binding
        dt-bindings: mmc: sdhci-pxa: Fix 'regs' typo
        media: dt-bindings: samsung,s5p-mfc: Fix iommu properties schemas
        dt-bindings: display: panel: Add synaptics r63353 panel controller
        dt-bindings: arm: merge qcom,idle-state with idle-state
        dt-bindings: drm: rockchip: convert inno_hdmi-rockchip.txt to yaml
        dt-bindings: cache: qcom,llcc: correct QDU1000 reg entries
        ...
      38814330
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-6.8-rc1' of... · 42bff4d0
      Linus Torvalds authored
      Merge tag 'pwm/for-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm updates from Thierry Reding:
       "This contains a bunch of cleanups and simplifications across the
        board, as well as a number of small fixes.
      
        Perhaps the most notable change here is the addition of an API that
        allows PWMs to be used in atomic contexts, which is useful when time-
        critical operations are involved, such as using a PWM to generate IR
        signals.
      
        Finally, I have decided to step down as PWM subsystem maintainer. Due
        to other responsibilities I have lately not been able to find the time
        that the subsystem deserves and Uwe, who has been helping out a lot
        for the past few years and has many things planned for the future, has
        kindly volunteered to take over. I have no doubt that he will be a
        suitable replacement"
      
      * tag 'pwm/for-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (44 commits)
        MAINTAINERS: pwm: Thierry steps down, Uwe takes over
        pwm: linux/pwm.h: fix Excess kernel-doc description warning
        pwm: Add pwm_apply_state() compatibility stub
        pwm: cros-ec: Drop documentation for dropped struct member
        pwm: Drop two unused API functions
        pwm: lpc18xx-sct: Don't modify the cached period of other PWM outputs
        pwm: meson: Simplify using dev_err_probe()
        pwm: stmpe: Silence duplicate error messages
        pwm: Reduce number of pointer dereferences in pwm_device_request()
        pwm: crc: Use consistent variable naming for driver data
        pwm: omap-dmtimer: Drop locking
        dt-bindings: pwm: ti,pwm-omap-dmtimer: Update binding for yaml
        media: pwm-ir-tx: Trigger edges from hrtimer interrupt context
        pwm: bcm2835: Allow PWM driver to be used in atomic context
        pwm: Make it possible to apply PWM changes in atomic context
        pwm: renesas: Remove unused include
        pwm: Replace ENOTSUPP with EOPNOTSUPP
        pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()
        pwm: Stop referencing pwm->chip
        pwm: Update kernel doc for struct pwm_chip
        ...
      42bff4d0
    • Linus Torvalds's avatar
      Merge tag 'hid-for-linus-2024010801' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · fef018d8
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
      
       - assorted functional fixes for hid-steam ported from SteamOS betas
         (Vicki Pfau)
      
       - fix for custom sensor-hub sensors (hinge angle sensor and LISS
         sensors) not working (Yauhen Kharuzhy)
      
       - functional fix for handling Confidence in Wacom driver (Jason
         Gerecke)
      
       - support for Ilitek ili2901 touchscreen (Zhengqiao Xia)
      
       - power management fix for Wacom userspace battery exporting
         (Tatsunosuke Tobita)
      
       - rework of wait-for-reset in order to reduce the need for
         I2C_HID_QUIRK_NO_IRQ_AFTER_RESET qurk; the success rate is now 50%
         better, but there are still further improvements to be made (Hans de
         Goede)
      
       - greatly improved coverage of Tablets in hid-selftests (Benjamin
         Tissoires)
      
       - support for Nintendo NSO controllers -- SNES, Genesis and N64 (Ryan
         McClelland)
      
       - support for controlling mcp2200 GPIOs (Johannes Roith)
      
       - power management improvement for EHL OOB wakeup in intel-ish
         (Kai-Heng Feng)
      
       - other assorted device-specific fixes and code cleanups
      
      * tag 'hid-for-linus-2024010801' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: (53 commits)
        HID: amd_sfh: Add a new interface for exporting ALS data
        HID: amd_sfh: Add a new interface for exporting HPD data
        HID: amd_sfh: rename float_to_int() to amd_sfh_float_to_int()
        HID: i2c-hid: elan: Add ili2901 timing
        dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901
        HID: bpf: make bus_type const in struct hid_bpf_ops
        HID: make ishtp_cl_bus_type const
        HID: make hid_bus_type const
        HID: hid-steam: Add gamepad-only mode switched to by holding options
        HID: hid-steam: Better handling of serial number length
        HID: hid-steam: Update list of identifiers from SDL
        HID: hid-steam: Make client_opened a counter
        HID: hid-steam: Clean up locking
        HID: hid-steam: Disable watchdog instead of using a heartbeat
        HID: hid-steam: Avoid overwriting smoothing parameter
        HID: magicmouse: fix kerneldoc for struct magicmouse_sc
        HID: sensor-hub: Enable hid core report processing for all devices
        HID: wacom: Add additional tests of confidence behavior
        HID: wacom: Correct behavior when processing some confidence == false touches
        HID: nintendo: add support for nso controllers
        ...
      fef018d8