1. 28 Sep, 2024 19 commits
    • Julia Lawall's avatar
      Reduce Coccinelle choices in string_choices.cocci · 4003ba66
      Julia Lawall authored
      The isomorphism neg_if_exp negates the test of a ?: conditional,
      making it unnecessary to have an explicit case for a negated test
      with the branches inverted.
      
      At the same time, we can disable neg_if_exp in cases where a
      different API function may be more suitable for a negated test.
      
      Finally, in the non-patch cases, E matches an expression with
      parentheses around it, so there is no need to mention ()
      explicitly in the pattern.  The () are still needed in the patch
      cases, because we want to drop them, if they are present.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      4003ba66
    • Hongbo Li's avatar
      coccinelle: Remove unnecessary parentheses for only one possible change. · f584e375
      Hongbo Li authored
      The parentheses are only needed if there is a disjunction, ie a
      set of possible changes. If there is only one pattern, we can
      remove these parentheses. Just like the format:
      
        -  x
        +  y
      
      not:
      
        (
        -  x
        +  y
        )
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      f584e375
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_yes_no() replacements · 253244cd
      Hongbo Li authored
      As other rules done, we add rules for str_yes_no()
      to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      253244cd
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_on_off() replacements · 9b5b4810
      Hongbo Li authored
      As other rules done, we add rules for str_on_off()
      to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      9b5b4810
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_write_read() replacements · c81ca023
      Hongbo Li authored
      As other rules done, we add rules for str_write_read()
      to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      c81ca023
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_read_write() replacements · ba4b514a
      Hongbo Li authored
      As other rules done, we add rules for str_read_write()
      to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      ba4b514a
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_enable{d}_disable{d}() replacements · dd2275d3
      Hongbo Li authored
      As other rules done, we add rules for str_enable{d}_
      disable{d}() to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      dd2275d3
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_lo{w}_hi{gh}() replacements · 5b7ca450
      Hongbo Li authored
      As other rules done, we add rules for str_lo{w}_hi{gh}()
      to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      5b7ca450
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_hi{gh}_lo{w}() replacements · d4c75440
      Hongbo Li authored
      As other rules done, we add rules for str_hi{gh}_lo{w}()
      to check the relative opportunities.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      d4c75440
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_false_true() replacements · 8a0236ba
      Hongbo Li authored
      As done with str_true_false(), add checks for str_false_true()
      opportunities. A simple test can find over 9 cases currently
      exist in the tree.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      8a0236ba
    • Hongbo Li's avatar
      coccinelle: Add rules to find str_true_false() replacements · 716bf84e
      Hongbo Li authored
      After str_true_false() has been introduced in the tree,
      we can add rules for finding places where str_true_false()
      can be used. A simple test can find over 10 locations.
      Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      716bf84e
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 3efc5736
      Linus Torvalds authored
      Pull x86 kvm updates from Paolo Bonzini:
       "x86:
      
         - KVM currently invalidates the entirety of the page tables, not just
           those for the memslot being touched, when a memslot is moved or
           deleted.
      
           This does not traditionally have particularly noticeable overhead,
           but Intel's TDX will require the guest to re-accept private pages
           if they are dropped from the secure EPT, which is a non starter.
      
           Actually, the only reason why this is not already being done is a
           bug which was never fully investigated and caused VM instability
           with assigned GeForce GPUs, so allow userspace to opt into the new
           behavior.
      
         - Advertise AVX10.1 to userspace (effectively prep work for the
           "real" AVX10 functionality that is on the horizon)
      
         - Rework common MSR handling code to suppress errors on userspace
           accesses to unsupported-but-advertised MSRs
      
           This will allow removing (almost?) all of KVM's exemptions for
           userspace access to MSRs that shouldn't exist based on the vCPU
           model (the actual cleanup is non-trivial future work)
      
         - Rework KVM's handling of x2APIC ICR, again, because AMD (x2AVIC)
           splits the 64-bit value into the legacy ICR and ICR2 storage,
           whereas Intel (APICv) stores the entire 64-bit value at the ICR
           offset
      
         - Fix a bug where KVM would fail to exit to userspace if one was
           triggered by a fastpath exit handler
      
         - Add fastpath handling of HLT VM-Exit to expedite re-entering the
           guest when there's already a pending wake event at the time of the
           exit
      
         - Fix a WARN caused by RSM entering a nested guest from SMM with
           invalid guest state, by forcing the vCPU out of guest mode prior to
           signalling SHUTDOWN (the SHUTDOWN hits the VM altogether, not the
           nested guest)
      
         - Overhaul the "unprotect and retry" logic to more precisely identify
           cases where retrying is actually helpful, and to harden all retry
           paths against putting the guest into an infinite retry loop
      
         - Add support for yielding, e.g. to honor NEED_RESCHED, when zapping
           rmaps in the shadow MMU
      
         - Refactor pieces of the shadow MMU related to aging SPTEs in
           prepartion for adding multi generation LRU support in KVM
      
         - Don't stuff the RSB after VM-Exit when RETPOLINE=y and AutoIBRS is
           enabled, i.e. when the CPU has already flushed the RSB
      
         - Trace the per-CPU host save area as a VMCB pointer to improve
           readability and cleanup the retrieval of the SEV-ES host save area
      
         - Remove unnecessary accounting of temporary nested VMCB related
           allocations
      
         - Set FINAL/PAGE in the page fault error code for EPT violations if
           and only if the GVA is valid. If the GVA is NOT valid, there is no
           guest-side page table walk and so stuffing paging related metadata
           is nonsensical
      
         - Fix a bug where KVM would incorrectly synthesize a nested VM-Exit
           instead of emulating posted interrupt delivery to L2
      
         - Add a lockdep assertion to detect unsafe accesses of vmcs12
           structures
      
         - Harden eVMCS loading against an impossible NULL pointer deref
           (really truly should be impossible)
      
         - Minor SGX fix and a cleanup
      
         - Misc cleanups
      
        Generic:
      
         - Register KVM's cpuhp and syscore callbacks when enabling
           virtualization in hardware, as the sole purpose of said callbacks
           is to disable and re-enable virtualization as needed
      
         - Enable virtualization when KVM is loaded, not right before the
           first VM is created
      
           Together with the previous change, this simplifies a lot the logic
           of the callbacks, because their very existence implies
           virtualization is enabled
      
         - Fix a bug that results in KVM prematurely exiting to userspace for
           coalesced MMIO/PIO in many cases, clean up the related code, and
           add a testcase
      
         - Fix a bug in kvm_clear_guest() where it would trigger a buffer
           overflow _if_ the gpa+len crosses a page boundary, which thankfully
           is guaranteed to not happen in the current code base. Add WARNs in
           more helpers that read/write guest memory to detect similar bugs
      
        Selftests:
      
         - Fix a goof that caused some Hyper-V tests to be skipped when run on
           bare metal, i.e. NOT in a VM
      
         - Add a regression test for KVM's handling of SHUTDOWN for an SEV-ES
           guest
      
         - Explicitly include one-off assets in .gitignore. Past Sean was
           completely wrong about not being able to detect missing .gitignore
           entries
      
         - Verify userspace single-stepping works when KVM happens to handle a
           VM-Exit in its fastpath
      
         - Misc cleanups"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (127 commits)
        Documentation: KVM: fix warning in "make htmldocs"
        s390: Enable KVM_S390_UCONTROL config in debug_defconfig
        selftests: kvm: s390: Add VM run test case
        KVM: SVM: let alternatives handle the cases when RSB filling is required
        KVM: VMX: Set PFERR_GUEST_{FINAL,PAGE}_MASK if and only if the GVA is valid
        KVM: x86/mmu: Use KVM_PAGES_PER_HPAGE() instead of an open coded equivalent
        KVM: x86/mmu: Add KVM_RMAP_MANY to replace open coded '1' and '1ul' literals
        KVM: x86/mmu: Fold mmu_spte_age() into kvm_rmap_age_gfn_range()
        KVM: x86/mmu: Morph kvm_handle_gfn_range() into an aging specific helper
        KVM: x86/mmu: Honor NEED_RESCHED when zapping rmaps and blocking is allowed
        KVM: x86/mmu: Add a helper to walk and zap rmaps for a memslot
        KVM: x86/mmu: Plumb a @can_yield parameter into __walk_slot_rmaps()
        KVM: x86/mmu: Move walk_slot_rmaps() up near for_each_slot_rmap_range()
        KVM: x86/mmu: WARN on MMIO cache hit when emulating write-protected gfn
        KVM: x86/mmu: Detect if unprotect will do anything based on invalid_list
        KVM: x86/mmu: Subsume kvm_mmu_unprotect_page() into the and_retry() version
        KVM: x86: Rename reexecute_instruction()=>kvm_unprotect_and_retry_on_failure()
        KVM: x86: Update retry protection fields when forcing retry on emulation failure
        KVM: x86: Apply retry protection to "unprotect on failure" path
        KVM: x86: Check EMULTYPE_WRITE_PF_TO_SP before unprotecting gfn
        ...
      3efc5736
    • Linus Torvalds's avatar
      Merge tag 's390-6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · e08d2278
      Linus Torvalds authored
      Pull more s390 updates from Vasily Gorbik:
      
       - Clean up and improve vdso code: use SYM_* macros for function and
         data annotations, add CFI annotations to fix GDB unwinding, optimize
         the chacha20 implementation
      
       - Add vfio-ap driver feature advertisement for use by libvirt and
         mdevctl
      
      * tag 's390-6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/vfio-ap: Driver feature advertisement
        s390/vdso: Use one large alternative instead of an alternative branch
        s390/vdso: Use SYM_DATA_START_LOCAL()/SYM_DATA_END() for data objects
        tools: Add additional SYM_*() stubs to linkage.h
        s390/vdso: Use macros for annotation of asm functions
        s390/vdso: Add CFI annotations to __arch_chacha20_blocks_nostack()
        s390/vdso: Fix comment within __arch_chacha20_blocks_nostack()
        s390/vdso: Get rid of permutation constants
      e08d2278
    • Linus Torvalds's avatar
      Merge tag 'modules-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · 6f81a446
      Linus Torvalds authored
      Pull module updates from Luis Chamberlain:
       "There are a few fixes / cleanups from Vincent, Chunhui, and Petr, but
        the most important part of this pull request is the Rust community
        stepping up to help maintain both C / Rust code for future Rust module
        support. We grow the set of modules maintainers by three now, and with
        this hope to scale to help address what's needed to properly support
        future Rust module support.
      
        A lot of exciting stuff coming in future kernel releases.
      
        This has been on linux-next for ~ 3 weeks now with no issues"
      
      * tag 'modules-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        module: Refine kmemleak scanned areas
        module: abort module loading when sysfs setup suffer errors
        MAINTAINERS: scale modules with more reviewers
        module: Clean up the description of MODULE_SIG_<type>
        module: Split modules_install compression and in-kernel decompression
      6f81a446
    • Linus Torvalds's avatar
      Merge tag 'fbdev-for-6.12-rc1-2' of... · f95c1390
      Linus Torvalds authored
      Merge tag 'fbdev-for-6.12-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev
      
      Pull fbdev fixes from Helge Deller:
      
       - crash fix in fbcon_putcs
      
       - avoid a possible string memory overflow in sisfb
      
       - minor code optimizations in omapfb and fbcon
      
      * tag 'fbdev-for-6.12-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
        fbdev: sisfb: Fix strbuf array overflow
        fbcon: break earlier in search_fb_in_map and search_for_mapped_con
        fbdev: omapfb: Call of_node_put(ep) only once in omapdss_of_find_source_for_first_ep()
        fbcon: Fix a NULL pointer dereference issue in fbcon_putcs
      f95c1390
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2024-09-28' of https://gitlab.freedesktop.org/drm/kernel · 994aeacb
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes for the week to end the merge window, i915 and xe have a
        few each, amdgpu makes up most of it with a bunch of SR-IOV related
        fixes amongst others.
      
        i915:
         - Fix BMG support to UHBR13.5
         - Two PSR fixes
         - Fix colorimetry detection for DP
      
        xe:
         - Fix macro for checking minimum GuC version
         - Fix CCS offset calculation for some BMG SKUs
         - Fix locking on memory usage reporting via fdinfo and BO destroy
         - Fix GPU page fault handler on a closed VM
         - Fix overflow in oa batch buffer
      
        amdgpu:
         - MES 12 fix
         - KFD fence sync fix
         - SR-IOV fixes
         - VCN 4.0.6 fix
         - SDMA 7.x fix
         - Bump driver version to note cleared VRAM support
         - SWSMU fix
         - CU occupancy logic fix
         - SDMA queue fix"
      
      * tag 'drm-next-2024-09-28' of https://gitlab.freedesktop.org/drm/kernel: (79 commits)
        drm/amd/pm: update workload mask after the setting
        drm/amdgpu: bump driver version for cleared VRAM
        drm/amdgpu: fix vbios fetching for SR-IOV
        drm/amdgpu: fix PTE copy corruption for sdma 7
        drm/amdkfd: Add SDMA queue quantum support for GFX12
        drm/amdgpu/vcn: enable AV1 on both instances
        drm/amdkfd: Fix CU occupancy for GFX 9.4.3
        drm/amdkfd: Update logic for CU occupancy calculations
        drm/amdgpu: skip coredump after job timeout in SRIOV
        drm/amdgpu: sync to KFD fences before clearing PTEs
        drm/amdgpu/mes12: set enable_level_process_quantum_check
        drm/i915/dp: Fix colorimetry detection
        drm/amdgpu/mes12: reduce timeout
        drm/amdgpu/mes11: reduce timeout
        drm/amdgpu: use GEM references instead of TTMs v2
        drm/amd/display: Allow backlight to go below `AMDGPU_DM_DEFAULT_MIN_BACKLIGHT`
        drm/amd/display: Fix kdoc entry for 'tps' in 'dc_process_dmub_dpia_set_tps_notification'
        drm/amdgpu: update golden regs for gfx12
        drm/amdgpu: clean up vbios fetching code
        drm/amd/display: handle nulled pipe context in DCE110's set_drr()
        ...
      994aeacb
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-6.12-rc1' of https://github.com/ceph/ceph-client · 894b3c35
      Linus Torvalds authored
      Pull ceph updates from Ilya Dryomov:
       "Three CephFS fixes from Xiubo and Luis and a bunch of assorted
        cleanups"
      
      * tag 'ceph-for-6.12-rc1' of https://github.com/ceph/ceph-client:
        ceph: remove the incorrect Fw reference check when dirtying pages
        ceph: Remove empty definition in header file
        ceph: Fix typo in the comment
        ceph: fix a memory leak on cap_auths in MDS client
        ceph: flush all caps releases when syncing the whole filesystem
        ceph: rename ceph_flush_cap_releases() to ceph_flush_session_cap_releases()
        libceph: use min() to simplify code in ceph_dns_resolve_name()
        ceph: Convert to use jiffies macro
        ceph: Remove unused declarations
      894b3c35
    • Linus Torvalds's avatar
      Merge tag 'v6.12-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbd · 9717d534
      Linus Torvalds authored
      Pull smb server fixes from Steve French:
      
       - fix querying dentry for char/block special files
      
       - small cleanup patches
      
      * tag 'v6.12-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: Correct typos in multiple comments across various files
        ksmbd: fix open failure from block and char device file
        ksmbd: remove unsafe_memcpy use in session setup
        ksmbd: Replace one-element arrays with flexible-array members
        ksmbd: fix warning: comparison of distinct pointer types lacks a cast
      9717d534
    • Linus Torvalds's avatar
      Merge tag '6.12rc-more-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · f04ff5a0
      Linus Torvalds authored
      Pull xmb client fixes from Steve French:
      
       - Noisy log message cleanup
      
       - Important netfs fix for cifs crash in generic/074
      
       - Three minor improvements to use of hashing (multichannel and mount
         improvements)
      
       - Fix decryption crash for large read with small esize
      
      * tag '6.12rc-more-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        smb: client: make SHA-512 TFM ephemeral
        smb: client: make HMAC-MD5 TFM ephemeral
        smb: client: stop flooding dmesg in smb2_calc_signature()
        smb: client: allocate crypto only for primary server
        smb: client: fix UAF in async decryption
        netfs: Fix write oops in generic/346 (9p) and generic/074 (cifs)
      f04ff5a0
  2. 27 Sep, 2024 18 commits
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.12-2024-09-27' of... · e7268dd9
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.12-2024-09-27' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
      
      amd-drm-fixes-6.12-2024-09-27:
      
      amdgpu:
      - MES 12 fix
      - KFD fence sync fix
      - SR-IOV fixes
      - VCN 4.0.6 fix
      - SDMA 7.x fix
      - Bump driver version to note cleared VRAM support
      - SWSMU fix
      
      amdgpu:
      - CU occupancy logic fix
      - SDMA queue fix
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20240927202819.2978109-1-alexander.deucher@amd.com
      e7268dd9
    • Andrey Shumilin's avatar
      fbdev: sisfb: Fix strbuf array overflow · 9cf14f5a
      Andrey Shumilin authored
      The values of the variables xres and yres are placed in strbuf.
      These variables are obtained from strbuf1.
      The strbuf1 array contains digit characters
      and a space if the array contains non-digit characters.
      Then, when executing sprintf(strbuf, "%ux%ux8", xres, yres);
      more than 16 bytes will be written to strbuf.
      It is suggested to increase the size of the strbuf array to 24.
      
      Found by Linux Verification Center (linuxtesting.org) with SVACE.
      Signed-off-by: default avatarAndrey Shumilin <shum.sdl@nppct.ru>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      9cf14f5a
    • Linus Torvalds's avatar
      Merge tag 'pm-6.12-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · ad46e8f9
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix idle states enumeration in the intel_idle driver on platforms
        supporting multiple flavors of the C6 idle state (Artem Bityutskiy)"
      
      * tag 'pm-6.12-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        intel_idle: fix ACPI _CST matching for newer Xeon platforms
      ad46e8f9
    • Linus Torvalds's avatar
      Merge tag 'uml-for-linus-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux · 12cc5240
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - Removal of dead code (TT mode leftovers, etc)
      
       - Fixes for the network vector driver
      
       - Fixes for time-travel mode
      
      * tag 'uml-for-linus-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux:
        um: fix time-travel syscall scheduling hack
        um: Remove outdated asm/sysrq.h header
        um: Remove the declaration of user_thread function
        um: Remove the call to SUBARCH_EXECVE1 macro
        um: Remove unused mm_fd field from mm_id
        um: Remove unused fields from thread_struct
        um: Remove the redundant newpage check in update_pte_range
        um: Remove unused kpte_clear_flush macro
        um: Remove obsoleted declaration for execute_syscall_skas
        user_mode_linux_howto_v2: add VDE vector support in doc
        vector_user: add VDE support
        um: remove ARCH_NO_PREEMPT_DYNAMIC
        um: vector: Fix NAPI budget handling
        um: vector: Replace locks guarding queue depth with atomics
        um: remove variable stack array in os_rcv_fd_msg()
      12cc5240
    • Amir Goldstein's avatar
      ovl: fix file leak in ovl_real_fdget_meta() · 0c33037c
      Amir Goldstein authored
      ovl_open_realfile() is wrongly called twice after conversion to
      new struct fd.
      
      Fixes: 88a2f646 ("struct fd: representation change")
      Reported-by: syzbot+d9efec94dcbfa0de1c07@syzkaller.appspotmail.com
      Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0c33037c
    • Linus Torvalds's avatar
      Merge tag 'random-6.12-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random · 34e1a5d4
      Linus Torvalds authored
      Pull more random number generator updates from Jason Donenfeld:
      
       - Christophe realized that the LoongArch64 instructions could be
         scheduled more similar to how GCC generates code, which Ruoyao
         implemented, for a 5% speedup from basically some rearrangements
      
       - An update to MAINTAINERS to match the right files
      
      * tag 'random-6.12-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
        LoongArch: vDSO: Tune chacha implementation
        MAINTAINERS: make vDSO getrandom matches more generic
      34e1a5d4
    • Linus Torvalds's avatar
      Merge tag 'bitmap-for-6.12' of https://github.com/norov/linux · 9c44575c
      Linus Torvalds authored
      Pull bitmap updates from Yury Norov:
      
       - switch all bitmamp APIs from inline to __always_inline (Brian Norris)
      
         The __always_inline series improves on code generation, and now with
         the latest compiler versions is required to avoid compilation
         warnings. It spent enough in my backlog, and I'm thankful to Brian
         Norris for taking over and moving it forward.
      
       - introduce GENMASK_U128() macro (Anshuman Khandual)
      
         GENMASK_U128() is a prerequisite needed for arm64 development
      
      * tag 'bitmap-for-6.12' of https://github.com/norov/linux:
        lib/test_bits.c: Add tests for GENMASK_U128()
        uapi: Define GENMASK_U128
        nodemask: Switch from inline to __always_inline
        cpumask: Switch from inline to __always_inline
        bitmap: Switch from inline to __always_inline
        find: Switch from inline to __always_inline
      9c44575c
    • Linus Torvalds's avatar
      Merge tag 'tomoyo-pr-20240927' of git://git.code.sf.net/p/tomoyo/tomoyo · ba33a49f
      Linus Torvalds authored
      Pull tomoyo updates from Tetsuo Handa:
       "One bugfix patch, one preparation patch, and one conversion patch.
      
        TOMOYO is useful as an analysis tool for learning how a Linux system
        works. My boss was hoping that SELinux's policy is generated from what
        TOMOYO has observed. A translated paper describing it is available at
      
          https://master.dl.sourceforge.net/project/tomoyo/docs/nsf2003-en.pdf/nsf2003-en.pdf?viasf=1
      
        Although that attempt failed due to mapping problem between inode and
        pathname, TOMOYO remains as an access restriction tool due to ability
        to write custom policy by individuals.
      
        I was delivering pure LKM version of TOMOYO (named AKARI) to users who
        cannot afford rebuilding their distro kernels with TOMOYO enabled. But
        since the LSM framework was converted to static calls, it became more
        difficult to deliver AKARI to such users. Therefore, I decided to
        update TOMOYO so that people can use mostly LKM version of TOMOYO with
        minimal burden for both distributors and users"
      
      * tag 'tomoyo-pr-20240927' of git://git.code.sf.net/p/tomoyo/tomoyo:
        tomoyo: fallback to realpath if symlink's pathname does not exist
        tomoyo: allow building as a loadable LSM module
        tomoyo: preparation step for building as a loadable LSM module
      ba33a49f
    • Linus Torvalds's avatar
      Merge tag 'cxl-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · 033af36d
      Linus Torvalds authored
      Pull compute express link (cxl) updates from Dave Jiang:
       "Major changes address HDM decoder initialization from DVSEC ranges,
        refactoring the code related to cxl mailboxes to be independent of the
        memory devices, and adding support for shared upstream link
        access_coordinate calculation, as well as a change to remove locking
        from memory notifier callback.
      
        In addition, a number of misc cleanups and refactoring of the code are
        also included.
      
        Address HDM decoder initialization from DVSEC ranges:
         - Only register non-zero DVSEC ranges
         - Remove duplicate implementation of waiting for memory_info_valid
         - Simplify the checking of mem_enabled in  cxl_hdm_decode_init()
      
        Refactor the code related to cxl mailboxes to be independent of the memory devices:
         - Move cxl headers in include/linux/ to include/cxl
         - Move all mailbox related data to 'struct cxl_mailbox'
         - Refactor mailbox APIs with 'struct cxl_mailbox' as input instead of
           memory device state
      
        Add support for shared upstream link access_coordinate calculation for
        configurations that have multiple targets under a switch or a root
        port where the aggregated bandwidth can be greater than the upstream
        link of the switch/RP upstream link:
         - Preserve the CDAT access_coordinate from an endpoint
         - Add the support for shared upstream link access_coordinate calculation
         - Add documentation to explain how the calculations are done
      
        Remove locking from memory notifier callback.
      
        Misc cleanups:
         - Convert devm_cxl_add_root() to return using ERR_CAST()
         - cxl_test use dev_is_platform() instead of open coding
         - Remove duplicate include of header core.h in core/cdat.c
         - use scoped resource management to drop put_device() for cxl_port
         - Use scoped_guard to drop device_lock() for cxl_port
         - Refactor __devm_cxl_add_port() to drop gotos
         - Rename cxl_setup_parent_dport to cxl_dport_init_aer and
           cxl_dport_map_regs() to cxl_dport_map_ras()
         - Refactor cxl_dport_init_aer() to be more concise
         - Remove duplicate host_bridge->native_aer checking in
           cxl_dport_init_ras_reporting()
         - Fix comment for cxl_query_cmd()"
      
      * tag 'cxl-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl: (21 commits)
        cxl: Add documentation to explain the shared link bandwidth calculation
        cxl: Calculate region bandwidth of targets with shared upstream link
        cxl: Preserve the CDAT access_coordinate for an endpoint
        cxl: Fix comment regarding cxl_query_cmd() return data
        cxl: Convert cxl_internal_send_cmd() to use 'struct cxl_mailbox' as input
        cxl: Move mailbox related bits to the same context
        cxl: move cxl headers to new include/cxl/ directory
        cxl/region: Remove lock from memory notifier callback
        cxl/pci: simplify the check of mem_enabled in cxl_hdm_decode_init()
        cxl/pci: Check Mem_info_valid bit for each applicable DVSEC
        cxl/pci: Remove duplicated implementation of waiting for memory_info_valid
        cxl/pci: Fix to record only non-zero ranges
        cxl/pci: Remove duplicate host_bridge->native_aer checking
        cxl/pci: cxl_dport_map_rch_aer() cleanup
        cxl/pci: Rename cxl_setup_parent_dport() and cxl_dport_map_regs()
        cxl/port: Refactor __devm_cxl_add_port() to drop goto pattern
        cxl/port: Use scoped_guard()/guard() to drop device_lock() for cxl_port
        cxl/port: Use __free() to drop put_device() for cxl_port
        cxl: Remove duplicate included header file core.h
        tools/testing/cxl: Use dev_is_platform()
        ...
      033af36d
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-09-27-09-45' of... · eee28084
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-09-27-09-45' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull  misc fixes from Andrew Morton:
       "19 hotfixes.  13 are cc:stable.
      
        There's a focus on fixes for the memfd_pin_folios() work which was
        added into 6.11. Apart from that, the usual shower of singleton fixes"
      
      * tag 'mm-hotfixes-stable-2024-09-27-09-45' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        ocfs2: fix uninit-value in ocfs2_get_block()
        zram: don't free statically defined names
        memory tiers: use default_dram_perf_ref_source in log message
        Revert "list: test: fix tests for list_cut_position()"
        kselftests: mm: fix wrong __NR_userfaultfd value
        compiler.h: specify correct attribute for .rodata..c_jump_table
        mm/damon/Kconfig: update DAMON doc URL
        mm: kfence: fix elapsed time for allocated/freed track
        ocfs2: fix deadlock in ocfs2_get_system_file_inode
        ocfs2: reserve space for inline xattr before attaching reflink tree
        mm: migrate: annotate data-race in migrate_folio_unmap()
        mm/hugetlb: simplify refs in memfd_alloc_folio
        mm/gup: fix memfd_pin_folios alloc race panic
        mm/gup: fix memfd_pin_folios hugetlb page allocation
        mm/hugetlb: fix memfd_pin_folios resv_huge_pages leak
        mm/hugetlb: fix memfd_pin_folios free_huge_pages leak
        mm/filemap: fix filemap_get_folios_contig THP panic
        mm: make SPLIT_PTE_PTLOCKS depend on SMP
        tools: fix shared radix-tree build
      eee28084
    • Linus Torvalds's avatar
      Merge tag 'loongarch-6.12' of... · 36304006
      Linus Torvalds authored
      Merge tag 'loongarch-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch updates from Huacai Chen:
      
       - Fix objtool about do_syscall() and Clang
      
       - Enable generic CPU vulnerabilites support
      
       - Enable ACPI BGRT handling
      
       - Rework CPU feature probe from CPUCFG/IOCSR
      
       - Add ARCH_HAS_SET_MEMORY support
      
       - Add ARCH_HAS_SET_DIRECT_MAP support
      
       - Improve hardware page table walker
      
       - Simplify _percpu_read() and _percpu_write()
      
       - Add advanced extended IRQ model documentions
      
       - Some bug fixes and other small changes
      
      * tag 'loongarch-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        Docs/LoongArch: Add advanced extended IRQ model description
        LoongArch: Remove posix_types.h include from sigcontext.h
        LoongArch: Fix memleak in pci_acpi_scan_root()
        LoongArch: Simplify _percpu_read() and _percpu_write()
        LoongArch: Improve hardware page table walker
        LoongArch: Add ARCH_HAS_SET_DIRECT_MAP support
        LoongArch: Add ARCH_HAS_SET_MEMORY support
        LoongArch: Rework CPU feature probe from CPUCFG/IOCSR
        LoongArch: Enable ACPI BGRT handling
        LoongArch: Enable generic CPU vulnerabilites support
        LoongArch: Remove STACK_FRAME_NON_STANDARD(do_syscall)
        LoongArch: Set AS_HAS_THIN_ADD_SUB as y if AS_IS_LLVM
        LoongArch: Enable objtool for Clang
        objtool: Handle frame pointer related instructions
      36304006
    • Linus Torvalds's avatar
      Merge tag 'sh-for-v6.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux · ec384984
      Linus Torvalds authored
      Pull sh updates from John Paul Adrian Glaubitz:
       "The first change by Gaosheng Cui removes unused declarations which
        have been obsoleted since commit 5a4053b2 ("sh: Kill off dead
        boards.") and the second by his colleague Hongbo Li replaces the use
        of the unsafe simple_strtoul() with the safer kstrtoul() function in
        the sh interrupt controller driver code"
      
      * tag 'sh-for-v6.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux:
        sh: intc: Replace simple_strtoul() with kstrtoul()
        sh: Remove unused declarations for make_maskreg_irq() and irq_mask_register
      ec384984
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.12-rc1a-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 653608c6
      Linus Torvalds authored
      Pull more xen updates from Juergen Gross:
       "A second round of Xen related changes and features:
      
         - a small fix of the xen-pciback driver for a warning issued by
           sparse
      
         - support PCI passthrough when using a PVH dom0
      
         - enable loading the kernel in PVH mode at arbitrary addresses,
           avoiding conflicts with the memory map when running as a Xen dom0
           using the host memory layout"
      
      * tag 'for-linus-6.12-rc1a-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        x86/pvh: Add 64bit relocation page tables
        x86/kernel: Move page table macros to header
        x86/pvh: Set phys_base when calling xen_prepare_pvh()
        x86/pvh: Make PVH entrypoint PIC for x86-64
        xen: sync elfnote.h from xen tree
        xen/pciback: fix cast to restricted pci_ers_result_t and pci_power_t
        xen/privcmd: Add new syscall to get gsi from dev
        xen/pvh: Setup gsi for passthrough device
        xen/pci: Add a function to reset device for xen
      653608c6
    • Linus Torvalds's avatar
      Merge tag 'for-6.12/dm-changes' of... · e477dba5
      Linus Torvalds authored
      Merge tag 'for-6.12/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper updates from Mikulas Patocka:
      
       - Misc VDO fixes
      
       - Remove unused declarations dm_get_rq_mapinfo() and dm_zone_map_bio()
      
       - Dm-delay: Improve kernel documentation
      
       - Dm-crypt: Allow to specify the integrity key size as an option
      
       - Dm-bufio: Remove pointless NULL check
      
       - Small code cleanups: Use ERR_CAST; remove unlikely() around IS_ERR;
         use __assign_bit
      
       - Dm-integrity: Fix gcc 5 warning; convert comma to semicolon; fix
         smatch warning
      
       - Dm-integrity: Support recalculation in the 'I' mode
      
       - Revert "dm: requeue IO if mapping table not yet available"
      
       - Dm-crypt: Small refactoring to make the code more readable
      
       - Dm-cache: Remove pointless error check
      
       - Dm: Fix spelling errors
      
       - Dm-verity: Restart or panic on an I/O error if restart or panic was
         requested
      
       - Dm-verity: Fallback to platform keyring also if key in trusted
         keyring is rejected
      
      * tag 'for-6.12/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: (26 commits)
        dm verity: fallback to platform keyring also if key in trusted keyring is rejected
        dm-verity: restart or panic on an I/O error
        dm: fix spelling errors
        dm-cache: remove pointless error check
        dm vdo: handle unaligned discards correctly
        dm vdo indexer: Convert comma to semicolon
        dm-crypt: Use common error handling code in crypt_set_keyring_key()
        dm-crypt: Use up_read() together with key_put() only once in crypt_set_keyring_key()
        Revert "dm: requeue IO if mapping table not yet available"
        dm-integrity: check mac_size against HASH_MAX_DIGESTSIZE in sb_mac()
        dm-integrity: support recalculation in the 'I' mode
        dm integrity: Convert comma to semicolon
        dm integrity: fix gcc 5 warning
        dm: Make use of __assign_bit() API
        dm integrity: Remove extra unlikely helper
        dm: Convert to use ERR_CAST()
        dm bufio: Remove NULL check of list_entry()
        dm-crypt: Allow to specify the integrity key size as option
        dm: Remove unused declaration and empty definition "dm_zone_map_bio"
        dm delay: enhance kernel documentation
        ...
      e477dba5
    • Linus Torvalds's avatar
      Merge tag 'ata-6.12-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · b6c49fca
      Linus Torvalds authored
      Pull ata fixes from Damien Le Moal:
      
       - Fix a NULL pointer dereference introduced by the recent cleanups of
         the command duration limits feature handling (me)
      
       - Fix incorrect generation of the mode sense data for the
         ALL_SUB_MPAGES page (me)
      
      * tag 'ata-6.12-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ata: libata-scsi: Fix ata_msense_control() CDL page reporting
        ata: libata-scsi: Fix ata_msense_control_spgt2()
      b6c49fca
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.12-rc1' of... · e5f0e38e
      Linus Torvalds authored
      Merge tag 'driver-core-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core updates from Greg KH:
       "Here is a small set of patches for the driver core code for 6.12-rc1.
      
        This set is the one that caused the most delay on my side, due to lots
        of last-minute reports of problems in the async shutdown feature that
        was added. In the end, I've reverted all of the patches in that series
        so we are back to "normal" and the patch set is being reworked for the
        next merge window.
      
        Other than the async shutdown patches that were reverted, included in
        here are:
      
         - minor driver core cleanups
      
         - minor driver core bus and class api cleanups and simplifications
           for some callbacks
      
         - some const markings of structures
      
         - other even more minor cleanups
      
        All of these, including the last minute reverts, have been in
        linux-next, but all of the reports of problems in linux-next were
        before the reverts happened. After the reverts, all is good"
      
      * tag 'driver-core-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (32 commits)
        Revert "driver core: don't always lock parent in shutdown"
        Revert "driver core: separate function to shutdown one device"
        Revert "driver core: shut down devices asynchronously"
        Revert "nvme-pci: Make driver prefer asynchronous shutdown"
        Revert "driver core: fix async device shutdown hang"
        driver core: fix async device shutdown hang
        driver core: attribute_container: Remove unused functions
        driver core: Trivially simplify ((struct device_private *)curr)->device->p to @curr
        devres: Correclty strip percpu address space of devm_free_percpu() argument
        driver core: Make parameter check consistent for API cluster device_(for_each|find)_child()
        bus: fsl-mc: make fsl_mc_bus_type const
        nvme-pci: Make driver prefer asynchronous shutdown
        driver core: shut down devices asynchronously
        driver core: separate function to shutdown one device
        driver core: don't always lock parent in shutdown
        platform: Make platform_bus_type constant
        driver core: class: Check namespace relevant parameters in class_register()
        driver:base:core: Adding a "Return:" line in comment for device_link_add()
        drivers/base: Introduce device_match_t for device finding APIs
        firmware_loader: Block path traversal
        ...
      e5f0e38e
    • Paolo Bonzini's avatar
      Documentation: KVM: fix warning in "make htmldocs" · efbc6bd0
      Paolo Bonzini authored
      The warning
      
       Documentation/virt/kvm/locking.rst:31: ERROR: Unexpected indentation.
      
      is caused by incorrectly treating a line as the continuation of a paragraph,
      rather than as the first line in a bullet list.
      
      Fixed: 44d17459 ("KVM: Use dedicated mutex to protect kvm_usage_count to avoid deadlock")
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      efbc6bd0
    • Al Viro's avatar
      [tree-wide] finally take no_llseek out · cb787f4a
      Al Viro authored
      no_llseek had been defined to NULL two years ago, in commit 868941b1
      ("fs: remove no_llseek")
      
      To quote that commit,
      
        At -rc1 we'll need do a mechanical removal of no_llseek -
      
        git grep -l -w no_llseek | grep -v porting.rst | while read i; do
      	sed -i '/\<no_llseek\>/d' $i
        done
      
        would do it.
      
      Unfortunately, that hadn't been done.  Linus, could you do that now, so
      that we could finally put that thing to rest? All instances are of the
      form
      	.llseek = no_llseek,
      so it's obviously safe.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cb787f4a
  3. 26 Sep, 2024 3 commits