1. Jan 11, 2024
    • Linus Torvalds's avatar
      Merge tag 'for-6.8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · affc5af3
      Linus Torvalds authored
      Pull btrfs updates from David Sterba:
       "There are no exciting changes for users, it's been mostly API
        conversions and some fixes or refactoring.
      
        The mount API conversion is a base for future improvements that would
        come with VFS. Metadata processing has been converted to folios, not
        yet enabling the large folios but it's one patch away once everything
        gets tested enough.
      
        Core changes:
      
         - convert extent buffers to folios:
            - direct API conversion where possible
            - performance can drop by a few percent on metadata heavy
              workloads, the folio sizes are not constant and the calculations
              add up in the item helpers
            - both regular and subpage modes
            - data cannot be converted yet, we need to port that to iomap and
              there are some other generic changes required
      
         - convert mount to the new API, should not be user visible:
            - options deprecated long time ago have been removed: inode_cache,
              recovery
            - the new logic that splits mount to two phases slightly changes
              timing of device scanning for multi-device filesystems
            - LSM options will now work (like for selinux)
      
         - convert delayed nodes radix tree to xarray, preserving the
           preload-like logic that still allows to allocate with GFP_NOFS
      
         - more validation of sysfs value of scrub_speed_max
      
         - refactor chunk map structure, reduce size and improve performance
      
         - extent map refactoring, smaller data structures, improved
           performance
      
         - reduce size of struct extent_io_tree, embedded in several
           structures
      
         - temporary pages used for compression are cached and attached to a
           shrinker, this may slightly improve performance
      
         - in zoned mode, remove redirty extent buffer tracking, zeros are
           written in case an out-of-order is detected and proper data are
           written to the actual write pointer
      
         - cleanups, refactoring, error message improvements, updated tests
      
         - verify and update branch name or tag
      
         - remove unwanted text"
      
      * tag 'for-6.8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: (89 commits)
        btrfs: pass btrfs_io_geometry into btrfs_max_io_len
        btrfs: pass struct btrfs_io_geometry to set_io_stripe
        btrfs: open code set_io_stripe for RAID56
        btrfs: change block mapping to switch/case in btrfs_map_block
        btrfs: factor out block mapping for single profiles
        btrfs: factor out block mapping for RAID5/6
        btrfs: reduce scope of data_stripes in btrfs_map_block
        btrfs: factor out block mapping for RAID10
        btrfs: factor out block mapping for DUP profiles
        btrfs: factor out RAID1 block mapping
        btrfs: factor out block-mapping for RAID0
        btrfs: re-introduce struct btrfs_io_geometry
        btrfs: factor out helper for single device IO check
        btrfs: migrate btrfs_repair_io_failure() to folio interfaces
        btrfs: migrate eb_bitmap_offset() to folio interfaces
        btrfs: migrate various end io functions to folios
        btrfs: migrate subpage code to folio interfaces
        btrfs: migrate get_eb_page_index() and get_eb_offset_in_page() to folios
        btrfs: don't double put our subpage reference in alloc_extent_buffer
        btrfs: cleanup metadata page pointer usage
        ...
      affc5af3
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.8-merge-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 12958e9c
      Linus Torvalds authored
      Pull xfs updates from Chandan Babu:
       "New features/functionality:
         - Online repair:
             - Reserve disk space for online repairs
             - Fix misinteraction between the AIL and btree bulkloader because
               of which the bulk load fails to queue a buffer for writeback if
               it happens to be on the AIL list
             - Prevent transaction reservation overflows when reaping blocks
               during online repair
             - Whenever possible, bulkloader now copies multiple records into
               a block
             - Support repairing of
                 1. Per-AG free space, inode and refcount btrees
                 2. Ondisk inodes
                 3. File data and attribute fork mappings
             - Verify the contents of
                 1. Inode and data fork of realtime bitmap file
                 2. Quota files
         - Introduce MF_MEM_PRE_REMOVE. This will be used to notify tasks
           about a pmem device being removed
      
        Bug fixes:
         - Fix memory leak of recovered attri intent items
         - Fix UAF during log intent recovery
         - Fix realtime geometry integer overflows
         - Prevent scrub from live locking in xchk_iget
         - Prevent fs shutdown when removing files during low free disk space
         - Prevent transaction reservation overflow when extending an RT
           device
         - Prevent incorrect warning from being printed when extending a
           filesystem
         - Fix an off-by-one error in xreap_agextent_binval
         - Serialize access to perag radix tree during deletion operation
         - Fix perag memory leak during growfs
         - Allow allocation of minlen realtime extent when the maximum sized
           realtime free extent is minlen in size
      
        Cleanups:
         - Remove duplicate boilerplate code spread across functionality
           associated with different log items
         - Cleanup resblks interfaces
         - Pass defer ops pointer to defer helpers instead of an enum
         - Initialize di_crc in xfs_log_dinode to prevent KMSAN warnings
         - Use static_assert() instead of BUILD_BUG_ON_MSG() to validate size
           of structures and structure member offsets. This is done in order
           to be able to share the code with userspace
         - Move XFS documentation under a new directory specific to XFS
         - Do not invoke deferred ops' ->create_done callback if the deferred
           operation does not have an intent item associated with it
         - Remove duplicate inclusion of header files from scrub/health.c
         - Refactor Realtime code
         - Cleanup attr code"
      
      * tag 'xfs-6.8-merge-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (123 commits)
        xfs: use the op name in trace_xlog_intent_recovery_failed
        xfs: fix a use after free in xfs_defer_finish_recovery
        xfs: turn the XFS_DA_OP_REPLACE checks in xfs_attr_shortform_addname into asserts
        xfs: remove xfs_attr_sf_hdr_t
        xfs: remove struct xfs_attr_shortform
        xfs: use xfs_attr_sf_findname in xfs_attr_shortform_getvalue
        xfs: remove xfs_attr_shortform_lookup
        xfs: simplify xfs_attr_sf_findname
        xfs: move the xfs_attr_sf_lookup tracepoint
        xfs: return if_data from xfs_idata_realloc
        xfs: make if_data a void pointer
        xfs: fold xfs_rtallocate_extent into xfs_bmap_rtalloc
        xfs: simplify and optimize the RT allocation fallback cascade
        xfs: reorder the minlen and prod calculations in xfs_bmap_rtalloc
        xfs: remove XFS_RTMIN/XFS_RTMAX
        xfs: remove rt-wrappers from xfs_format.h
        xfs: factor out a xfs_rtalloc_sumlevel helper
        xfs: tidy up xfs_rtallocate_extent_exact
        xfs: merge the calls to xfs_rtallocate_range in xfs_rtallocate_block
        xfs: reflow the tail end of xfs_rtallocate_extent_block
        ...
      12958e9c
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 32720aca
      Linus Torvalds authored
      Pull fsnotify updates from Jan Kara:
       "fanotify changes allowing use of fanotify directory events even for
        filesystems such as FUSE which don't report proper fsid"
      
      * tag 'fsnotify_for_v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fanotify: allow "weak" fsid when watching a single filesystem
        fanotify: store fsid in mark instead of in connector
      32720aca
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 9963327f
      Linus Torvalds authored
      Pull small quota cleanup from Jan Kara.
      
      * tag 'fs_for_v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        quota: convert dquot_claim_space_nodirty() to return void
      9963327f
  2. Jan 10, 2024
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-next-6.8-rc1' of... · ab27740f
      Linus Torvalds authored
      Merge tag 'linux_kselftest-next-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kselftest update from Shuah Khan:
       "Enhancements to reporting test results, fixes to root and user run
        behavior and fixing ksft_print_msg() calls"
      
      * tag 'linux_kselftest-next-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        tracing/selftests: Add ownership modification tests for eventfs
        selftests: sched: Remove initialization to 0 for a static variable
        selftests: capabilities: namespace create varies for root and normal user
        selftests: prctl: Add prctl test for PR_GET_NAME
        kselftest/vDSO: Use ksft_print_msg() rather than printf in vdso_test_abi
        kselftest/vDSO: Fix message formatting for clock_id logging
        kselftest/vDSO: Make test name reporting for vdso_abi_test tooling friendly
        selftests:x86: Fix Format String Warnings in lam.c
        selftests/breakpoints: Fix format specifier in ksft_print_msg in step_after_suspend_test.c
        selftests:breakpoints: Fix Format String Warning in breakpoint_test
      ab27740f
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-kunit-6.8-rc1' of... · 41daf06e
      Linus Torvalds authored
      Merge tag 'linux_kselftest-kunit-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull KUnit updates from Shuah Khan:
      
       - a new feature that adds APIs for managing devices introducing a set
         of helper functions which allow devices (internally a struct
         kunit_device) to be created and managed by KUnit.
      
         These devices will be automatically unregistered on test exit. These
         helpers can either use a user-provided struct device_driver, or have
         one automatically created and managed by KUnit. In both cases, the
         device lives on a new kunit_bus.
      
       - changes to switch drm/tests to use kunit devices
      
       - several fixes and enhancements to attribute feature
      
       - changes to reorganize deferred action function introducing
         KUNIT_DEFINE_ACTION_WRAPPER
      
       - new feature adds ability to run tests after boot using debugfs
      
       - fixes and enhancements to string-stream-test:
           - parse ERR_PTR in string_stream_destroy()
           - unchecked dereference in bug fix in debugfs_print_result...
      41daf06e
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-nolibc-6.8-rc1' of... · 5d09f61e
      Linus Torvalds authored
      Merge tag 'linux_kselftest-nolibc-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull nolibc updates from Shuah Khan:
      
       - Support for PIC mode on MIPS
      
       - Support for getrlimit()/setrlimit()
      
       - Replace some custom declarations with UAPI includes
      
       - A new script "run-tests.sh" to run the testsuite over different
         architectures and configurations
      
       - A few non-functional code cleanups
      
       - Minor improvements to nolibc-test, primarily to support the test
         script
      
      * tag 'linux_kselftest-nolibc-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (22 commits)
        selftests/nolibc: disable coredump via setrlimit
        tools/nolibc: add support for getrlimit/setrlimit
        tools/nolibc: drop custom definition of struct rusage
        tools/nolibc: drop duplicated testcase ioctl_tiocinq
        tools/nolibc: annotate va_list printf formats
        selftests/nolibc: make result alignment more robust
        tools/nolibc: mips: add support for PIC
        selftests/nolibc: run-tests.sh: enable testing via qemu-user
        selftests/nolibc: introduce QEMU_ARCH_USER
        selftests/nolibc: fix testcase status alignment
        selftests/nolibc: add configuration for mipso32be
        selftests/nolibc: extraconfig support
        selftests/nolibc: explicitly specify ABI for MIPS
        selftests/nolibc: use XARCH for MIPS
        tools/nolibc: move MIPS ABI validation into arch-mips.h
        tools/nolibc: error out on unsupported architecture
        selftests/nolibc: add script to run testsuite
        selftests/nolibc: support out-of-tree builds
        selftests/nolibc: anchor paths in $(srcdir) if possible
        selftests/nolibc: use EFI -bios for LoongArch qemu
        ...
      5d09f61e
    • Linus Torvalds's avatar
      Merge tag 'efi-next-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · a7e4c6cf
      Linus Torvalds authored
      Pull EFI updates from Ard Biesheuvel:
      
       - Fix a syzbot reported issue in efivarfs where concurrent accesses to
         the file system resulted in list corruption
      
       - Add support for accessing EFI variables via the TEE subsystem (and a
         trusted application in the secure world) instead of via EFI runtime
         firmware running in the OS's execution context
      
       - Avoid linker tricks to discover the image base on LoongArch
      
      * tag 'efi-next-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi: memmap: fix kernel-doc warnings
        efi/loongarch: Directly position the loaded image file
        efivarfs: automatically update super block flag
        efi: Add tee-based EFI variable driver
        efi: Add EFI_ACCESS_DENIED status code
        efi: expose efivar generic ops register function
        efivarfs: Move efivarfs list into superblock s_fs_info
        efivarfs: Free s_fs_info on unmount
        efivarfs: Move efivar availability check into FS context init
        efivarfs: force RO when remounting if SetVariable is not supported
      a7e4c6cf
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.8-1' of https://github.com/cminyard/linux-ipmi · 7c6a3fc9
      Linus Torvalds authored
      Pull IPMI updates from Corey Minyard:
       "Some small fixes. Nothing big, just aligning things with some changes"
      
      * tag 'for-linus-6.8-1' of https://github.com/cminyard/linux-ipmi:
        ipmi: Remove usage of the deprecated ida_simple_xx() API
        ipmi: Use regspacings passed as a module parameter
        ipmi: si: Use device_get_match_data()
      7c6a3fc9
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.8-1' of... · 5fda5698
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver updates from Hans de Goede:
      
       - Intel PMC / PMT / TPMI / uncore-freq / vsec improvements and new
         platform support
      
       - AMD PMC / PMF improvements and new platform support
      
       - AMD ACPI based Wifi band RFI mitigation feature (WBRF)
      
       - WMI bus driver cleanups and improvements (Armin Wolf)
      
       - acer-wmi Predator PHN16-71 support
      
       - New Silicom network appliance EC LEDs / GPIOs driver
      
      * tag 'platform-drivers-x86-v6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (96 commits)
        platform/x86/amd/pmc: Modify SMU message port for latest AMD platform
        platform/x86/amd/pmc: Add 1Ah family series to STB support list
        platform/x86/amd/pmc: Add idlemask support for 1Ah family
        platform/x86/amd/pmc: call amd_pmc_get_ip_info() during driver probe
        platform/x86/amd/pmc: Add VPE information for AMDI000A platform
        platform/x86/amd/pmc: Send OS_HINT command for AMDI000A platform
        platform/x86/amd/pmf: Return a status code only as a constant in two functions
        platform/x86/amd/pmf: Return directly after a failed apmf_if_call() in apmf_sbios_heartbeat_notify()
        platform/x86: wmi: linux/wmi.h: fix Excess kernel-doc description warning
        platform/x86/intel/pmc: Add missing extern
        platform/x86/intel/pmc/lnl: Add GBE LTR ignore during suspend
        platform/x86/intel/pmc/arl: Add GBE LTR ignore during suspend
        platform/x86: intel-uncore-freq: Add additional client processors
        platform/x86: Remove "X86 PLATFORM DRIVERS - ARCH" from MAINTAINERS
        platform/x86: hp-bioscfg: Removed needless asm-generic
        platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver
        platform/x86/intel/pmc: Add Arrow Lake S support to intel_pmc_core driver
        platform/x86/intel/pmc: Add ssram_init flag in PMC discovery in Meteor Lake
        platform/x86/intel/pmc: Move common code to core.c
        platform/x86/intel/pmc: Add PSON residency counter for Alder Lake
        ...
      5fda5698
    • Linus Torvalds's avatar
      Merge tag 'tag-chrome-platform-firmware-for-v6.8' of... · b9b56eb2
      Linus Torvalds authored
      Merge tag 'tag-chrome-platform-firmware-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
      
      Pull chrome platform firmware updates from Tzung-Bi Shih:
      
        - Fix an invalid address access.
      
        - Use .remove_new() for converting the callback to return void
      
      * tag 'tag-chrome-platform-firmware-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
        firmware: coreboot: Convert to platform remove callback returning void
        firmware: coreboot: framebuffer: Avoid invalid zero physical address
      b9b56eb2
    • Linus Torvalds's avatar
      Merge tag 'tag-chrome-platform-for-v6.8' of... · 3efcce4a
      Linus Torvalds authored
      Merge tag 'tag-chrome-platform-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
      
      Pull chrome platform updates from Tzung-Bi Shih:
      
       - Implement quickselect for median in cros-ec-sensorhub
      
       - Fix an out of boundary array access in cros-ec-vbc
      
       - Cleanups and fix typos
      
      * tag 'tag-chrome-platform-for-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
        platform/chrome/wilco_ec: Remove usage of the deprecated ida_simple_xx() API
        platform/chrome: cros_ec_vbc: Fix -Warray-bounds warnings
        platform/chrome: sensorhub: Implement quickselect for median calculation
        platform/chrome: sensorhub: Fix typos
      3efcce4a
    • Linus Torvalds's avatar
      Merge tag 'pm-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 7da71072
      Linus Torvalds authored
      Pull power management updates from Rafael Wysocki:
       "These add support for new processors (Sierra Forest, Grand Ridge and
        Meteor Lake) to the intel_idle driver, make intel_pstate run on
        Emerald Rapids without HWP support and adjust it to utilize EPP values
        supplied by the platform firmware, fix issues, clean up code and
        improve documentation.
      
        The most significant fix addresses deadlocks in the core system-wide
        resume code that occur if async_schedule_dev() attempts to run its
        argument function synchronously (for example, due to a memory
        allocation failure). It rearranges the code in question which may
        increase the system resume time in some cases, but this basically is a
        removal of a premature optimization. That optimization will be added
        back later, but properly this time.
      
        Specifics:
      
         - Add support for the Sierra Forest, Grand Ridge and Meteorlake SoCs
           to the intel_idle cpuidle driver (Artem Bityutskiy, Zhang Rui)
      
         - Do not enable interrupts when entering idle in the haltpoll cpuidle
           driver (Borislav Petkov)
      
         - Add Emerald Rapids support in no-HWP mode to the intel_pstate
           cpufreq driver (Zhenguo Yao)
      
         - Use EPP values programmed by the platform firmware as balanced
           performance ones by default in intel_pstate (Srinivas Pandruvada)
      
         - Add a missing function return value check to the SCMI cpufreq
           driver to avoid unexpected behavior (Alexandra Diupina)
      
         - Fix parameter type warning in the armada-8k cpufreq driver (Gregory
           CLEMENT)
      
         - Rework trans_stat_show() in the devfreq core code to avoid buffer
           overflows (Christian Marangi)
      
         - Synchronize devfreq_monitor_[start/stop] so as to prevent a timer
           list corruption from occurring when devfreq governors are switched
           frequently (Mukesh Ojha)
      
         - Fix possible deadlocks in the core system-wide PM code that occur
           if device-handling functions cannot be executed asynchronously
           during resume from system-wide suspend (Rafael J. Wysocki)
      
         - Clean up unnecessary local variable initializations in multiple
           places in the hibernation code (Wang chaodong, Li zeming)
      
         - Adjust core hibernation code to avoid missing wakeup events that
           occur after saving an image to persistent storage (Chris Feng)
      
         - Update hibernation code to enforce correct ordering during image
           compression and decompression (Hongchen Zhang)
      
         - Use kmap_local_page() instead of kmap_atomic() in copy_data_page()
           during hibernation and restore (Chen Haonan)
      
         - Adjust documentation and code comments to reflect recent tasks
           freezer changes (Kevin Hao)
      
         - Repair excess function parameter description warning in the
           hibernation image-saving code (Randy Dunlap)
      
         - Fix _set_required_opps when opp is NULL (Bryan O'Donoghue)
      
         - Use device_get_match_data() in the OPP code for TI (Rob Herring)
      
         - Clean up OPP level and other parts and call dev_pm_opp_set_opp()
           recursively for required OPPs (Viresh Kumar)"
      
      * tag 'pm-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (35 commits)
        OPP: Rename 'rate_clk_single'
        OPP: Pass rounded rate to _set_opp()
        OPP: Relocate dev_pm_opp_sync_regulators()
        PM: sleep: Fix possible deadlocks in core system-wide PM code
        OPP: Move dev_pm_opp_icc_bw to internal opp.h
        async: Introduce async_schedule_dev_nocall()
        async: Split async_schedule_node_domain()
        cpuidle: haltpoll: Do not enable interrupts when entering idle
        OPP: Fix _set_required_opps when opp is NULL
        OPP: The level field is always of unsigned int type
        PM: hibernate: Repair excess function parameter description warning
        PM: sleep: Remove obsolete comment from unlock_system_sleep()
        cpufreq: intel_pstate: Add Emerald Rapids support in no-HWP mode
        Documentation: PM: Adjust freezing-of-tasks.rst to the freezer changes
        PM: hibernate: Use kmap_local_page() in copy_data_page()
        intel_idle: add Sierra Forest SoC support
        intel_idle: add Grand Ridge SoC support
        PM / devfreq: Synchronize devfreq_monitor_[start/stop]
        cpufreq: armada-8k: Fix parameter type warning
        PM: hibernate: Enforce ordering during image compression/decompression
        ...
      7da71072
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 7f73ba68
      Linus Torvalds authored
      Pull thermal control updates from Rafael Wysocki:
       "These add support for the D1/T113s THS controller to the sun8i driver
        and a DT-based mechanism for platforms to indicate a preference to
        reboot (instead of shutting down) on crossing a critical trip point,
        fix issues, make other improvements (in the IPA governor, the Intel
        HFI driver, the exynos driver and the thermal netlink interface among
        other places) and clean up code.
      
        One long-standing issue addressed here is that trip point crossing
        notifications sent to user space might be unreliable due to the
        incorrect handling of trip point hysteresis in the thermal core:
        multiple notifications might be sent for the same event or there might
        be events without any notification at all.
      
        Specifics:
      
         - Add dynamic thresholds for trip point crossing detection to prevent
           trip point crossing notifications from being sent at incorrect
           times ...
      7f73ba68
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · bd012f3a
      Linus Torvalds authored
      Pull ACPI updates from Rafael Wysocki:
       "From the new features standpoint, the most significant change here is
        the addition of CSI-2 and MIPI DisCo for Imaging support to the ACPI
        device enumeration code that will allow MIPI cameras to be enumerated
        through the platform firmware on systems using ACPI.
      
        Also significant is the switch-over to threaded interrupt handlers for
        the ACPI SCI and the dedicated EC interrupt (on systems where the
        former is not used) which essentially allows all ACPI code to run with
        local interrupts enabled. That should improve responsiveness
        significantly on systems where multiple GPEs are enabled and the
        handling of one SCI involves many I/O address space accesses which
        previously had to be carried out in one go with disabled interrupts on
        the local CPU.
      
        Apart from the above, the ACPI thermal zone driver will use the
        Thermal fast Sampling Period (_TFP) object if av...
      bd012f3a
    • Linus Torvalds's avatar
      Merge tag 'mtd/for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 35f11a37
      Linus Torvalds authored
      Pull mtd updates from Miquel Raynal:
       "MTD:
      
         - Apart from preventing the mtdblk to run on top of ftl or ubiblk
           (which may cause security issues and has no meaning anyway), there
           are a few misc fixes.
      
        Raw NAND:
      
         - Two meaningful changes this time. The conversion of the brcmnand
           driver to the ->exec_op() API, this series brought additional
           changes to the core in order to help controller drivers to handle
           themselves the WP pin during destructive operations when relevant.
      
         - There is also a series bringing important fixes to the sequential
           read feature.
      
         - As always, there is as well a whole bunch of miscellaneous W=1
           fixes, together with a few runtime fixes (double free, timeout
           value, OOB layout, missing register initialization) and the usual
           load of remove callbacks turned into void (which led to switch the
           txx9ndfmc driver to use module_platform_driver()).
      
        SPI NOR:
      
         - SPI NOR comes with die erase support for multi die flashes, with
           new octal protocols (1-1-8 and 1-8-8) parsed from SFDP and with an
           updated documentation about what the contributors shall consider
           when proposing flash additions or updates.
      
         - Michael Walle stepped out from the reviewer role to maintainer"
      
      * tag 'mtd/for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (39 commits)
        mtd: rawnand: Clarify conditions to enable continuous reads
        mtd: rawnand: Prevent sequential reads with on-die ECC engines
        mtd: rawnand: Fix core interference with sequential reads
        mtd: rawnand: Prevent crossing LUN boundaries during sequential reads
        mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
        dt-bindings: mtd: partitions: u-boot: Fix typo
        mtd: rawnand: s3c2410: fix Excess struct member description kernel-doc warnings
        MAINTAINERS: change my mail to the kernel.org one
        mtd: spi-nor: sfdp: get the 1-1-8 and 1-8-8 protocol from SFDP
        mtd: spi-nor: drop superfluous debug prints
        mtd: spi-nor: sysfs: hide the flash name if not set
        mtd: spi-nor: mark the flash name as obsolete
        mtd: spi-nor: print flash ID instead of name
        mtd: maps: vmu-flash: Fix the (mtd core) switch to ref counters
        mtd: ssfdc: Remove an unused variable
        mtd: rawnand: diskonchip: fix a potential double free in doc_probe
        mtd: rawnand: rockchip: Add missing title to a kernel doc comment
        mtd: rawnand: rockchip: Rename a structure
        mtd: rawnand: pl353: Fix kernel doc
        mtd: spi-nor: micron-st: Add support for mt25qu01g
        ...
      35f11a37
    • Linus Torvalds's avatar
      Merge tag 'spi-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 30194002
      Linus Torvalds authored
      Pull spi updates from Mark Brown:
       "A moderately busy release for SPI, the main core update was the
        merging of support for multiple chip selects, used in some flash
        configurations. There were also big overhauls for the AXI SPI Engine
        and PL022 drivers, plus some new device support for ST.
      
        There's a few patches for other trees, API updates to allow the
        multiple chip select support and one of the naming modernisations
        touched a controller embedded in the USB code.
      
         - Support for multiple chip selects.
      
         - A big overhaul for the AXI SPI engine driver, modernising it and
           adding a bunch of new features.
      
         - Modernisation of the PL022 driver, fixing some issues with
           submitting messages while in atomic context in the process.
      
         - Many drivers were converted to use new APIs which avoid outdated
           terminology for devices and controllers.
      
         - Support for ST Microelectronics STM32F7 and STM32MP25, and Renesas
           RZ/Five"
      
      * tag 'spi-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (83 commits)
        spi: stm32: add st,stm32mp25-spi compatible supporting STM32MP25 soc
        dt-bindings: spi: stm32: add st,stm32mp25-spi compatible
        spi: stm32: use dma_get_slave_caps prior to configuring dma channel
        spi: axi-spi-engine: fix struct member doc warnings
        spi: pl022: update description of internal_cs_control()
        spi: pl022: delete description of cur_msg
        spi: dw: Remove Intel Thunder Bay SOC support
        spi: dw: Remove Intel Thunder Bay SOC support
        spi: sh-msiof: Enforce fixed DTDL for R-Car H3
        spi: ljca: switch to use devm_spi_alloc_host()
        spi: cs42l43: switch to use devm_spi_alloc_host()
        spi: zynqmp-gqspi: switch to use modern name
        spi: zynq-qspi: switch to use modern name
        spi: xtensa-xtfpga: switch to use modern name
        spi: xlp: switch to use modern name
        spi: xilinx: switch to use modern name
        spi: xcomm: switch to use modern name
        spi: uniphier: switch to use modern name
        spi: topcliff-pch: switch to use modern name
        spi: wpcm-fiu: switch to use devm_spi_alloc_host()
        ...
      30194002
    • Linus Torvalds's avatar
      Merge tag 'regulator-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · da968017
      Linus Torvalds authored
      Pull regulator updates from Mark Brown:
       "The main updates for this release are around monitoring of regulators,
        largely for error handling purposes. We allow the stream of regulator
        events to be seen by userspace as netlink events and allow system
        integrators to describe individual regulators as system critical with
        information on how long the system is expected to last on error. The
        system level error handling is very much about best effort problem
        mitigation rather than providing something fully robust, the initial
        drive was to provide a mechanism for trying to avoid initiating any
        new writes to flash once we notice the power going out.
      
        Otherwise it's very quiet, mainly several new Qualcomm devices.
      
         - Support for marking regulators as system critical and providing
           information on how long the system might last with those regulators
           in a failure state, hooked into the existing critical shutdown
           error handling.
      
         - Optional support for generating netlink events for events, there
           are use cases for system monitoring UIs and error handling.
      
         - A command line option to leave unused controllable regulators
           enabled, useful for debugging. We already only disable regulators
           we were explicitly given permission to control.
      
         - Support for Quacomm MP5496, PM8010 and PM8937"
      
      * tag 'regulator-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (31 commits)
        regulator: event: Ensure atomicity for sequence number
        uapi: regulator: Fix typo
        regulator: Reuse LINEAR_RANGE() in REGULATOR_LINEAR_RANGE()
        dt-bindings: regulator: qcom,usb-vbus-regulator: clean up example
        regulator: qcom_smd: Add LDO5 MP5496 regulator
        regulator: qcom-rpmh: add support for pm8010 regulators
        regulator: dt-bindings: qcom,rpmh: add compatible for pm8010
        regulator: qcom-rpmh: extend to support multiple linear voltage ranges
        regulator: wm8350: Convert to platform remove callback returning void
        regulator: virtual: Convert to platform remove callback returning void
        regulator: userspace-consumer: Convert to platform remove callback returning void
        regulator: uniphier: Convert to platform remove callback returning void
        regulator: stm32-vrefbuf: Convert to platform remove callback returning void
        regulator: db8500-prcmu: Convert to platform remove callback returning void
        regulator: bd9571mwv: Convert to platform remove callback returning void
        regulator: arizona-ldo1: Convert to platform remove callback returning void
        regulator: event: Add regulator netlink event support
        regulator: event: Add regulator netlink event support
        regulator: stpmic1: Fix kernel-doc notation warnings
        regulator: palmas: remove redundant initialization of pointer pdata
        ...
      da968017
    • Linus Torvalds's avatar
      Merge tag 'regmap-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 83130ff4
      Linus Torvalds authored
      Pull regmap updates from Mark Brown:
       "This was a very quiet release for regmap, we added kunit test coverage
        for a noinc fix that was merged during v6.7 and a couple of other
        trivial cleanups"
      
      * tag 'regmap-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: fix kcalloc() arguments order
        regmap: fix regmap_noinc_write() description
        regmap: kunit: add noinc write test
        regmap: ram: support noinc semantics
      83130ff4
    • Linus Torvalds's avatar
      Merge tag 'integrity-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity · 6c1dd1fe
      Linus Torvalds authored
      Pull integrity updates from Mimi Zohar:
      
       - Add a new IMA/EVM maintainer and reviewer
      
       - Disable EVM on overlayfs
      
         The EVM HMAC and the original file signatures contain filesystem
         specific metadata (e.g. i_ino, i_generation and s_uuid), preventing
         the security.evm xattr from directly being copied up to the overlay.
         Further before calculating and writing out the overlay file's EVM
         HMAC, EVM must first verify the existing backing file's
         'security.evm' value.
      
         For now until a solution is developed, disable EVM on overlayfs.
      
       - One bug fix and two cleanups
      
      * tag 'integrity-v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity:
        overlay: disable EVM
        evm: add support to disable EVM on unsupported filesystems
        evm: don't copy up 'security.evm' xattr
        MAINTAINERS: Add Eric Snowberg as a reviewer to IMA
        MAINTAINERS: Add Roberto Sassu as co-maintainer to IMA and EVM
        KEYS: encrypted: Add check for strsep
        ima: Remove EXPERIMENTAL from Kconfig
        ima: Reword IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY
      6c1dd1fe
    • Linus Torvalds's avatar
      Merge tag 'landlock-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux · e9b4c589
      Linus Torvalds authored
      Pull Landlock updates from Mickaël Salaün:
       "New tests, a slight optimization, and some cosmetic changes"
      
      * tag 'landlock-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
        landlock: Optimize the number of calls to get_access_mask slightly
        selftests/landlock: Rename "permitted" to "allowed" in ftruncate tests
        landlock: Remove remaining "inline" modifiers in .c files [v6.6]
        landlock: Remove remaining "inline" modifiers in .c files [v6.1]
        landlock: Remove remaining "inline" modifiers in .c files [v5.15]
        selftests/landlock: Add tests to check unhandled rule's access rights
        selftests/landlock: Add tests to check unknown rule's access rights
      e9b4c589
    • Linus Torvalds's avatar
      Merge tag 'lsm-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm · 063a7ce3
      Linus Torvalds authored
      Pull security module updates from Paul Moore:
      
       - Add three new syscalls: lsm_list_modules(), lsm_get_self_attr(), and
         lsm_set_self_attr().
      
         The first syscall simply lists the LSMs enabled, while the second and
         third get and set the current process' LSM attributes. Yes, these
         syscalls may provide similar functionality to what can be found under
         /proc or /sys, but they were designed to support multiple,
         simultaneaous (stacked) LSMs from the start as opposed to the current
         /proc based solutions which were created at a time when only one LSM
         was allowed to be active at a given time.
      
         We have spent considerable time discussing ways to extend the
         existing /proc interfaces to support multiple, simultaneaous LSMs and
         even our best ideas have been far too ugly to support as a kernel
         API; after +20 years in the kernel, I felt the LSM layer had
         established itself enough to justify a handfu...
      063a7ce3
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · 9f9310bf
      Linus Torvalds authored
      Pull selinux updates from Paul Moore:
      
       - Add a new SELinux initial SID, SECINITSID_INIT, to represent
         userspace processes started before the SELinux policy is loaded in
         early boot.
      
         Prior to this patch all processes were marked as SECINITSID_KERNEL
         before the SELinux policy was loaded, making it difficult to
         distinquish early boot userspace processes from the kernel in the
         SELinux policy.
      
         For most users this will be a non-issue as the policy is loaded early
         enough during boot, but for users who load their SELinux policy
         relatively late, this should make it easier to construct meaningful
         security policies.
      
       - Cleanups to the selinuxfs code by Al, mostly on VFS related issues
         during a policy reload.
      
         The commit description has more detail, but the quick summary is that
         we are replacing a disconnected directory approach with a temporary
         directory that we swapover at the end of the reload.
      
       - Fix an issue where the input sanity checking on socket bind()
         operations was slightly different depending on the presence of
         SELinux.
      
         This is caused by the placement of the LSM hooks in the generic
         socket layer as opposed to the protocol specific bind() handler where
         the protocol specific sanity checks are performed. Mickaël has
         mentioned that he is working to fix this, but in the meantime we just
         ensure that we are replicating the checks properly.
      
         We need to balance the placement of the LSM hooks with the number of
         LSM hooks; pushing the hooks down into the protocol layers is likely
         not the right answer.
      
       - Update the avc_has_perm_noaudit() prototype to better match the
         function definition.
      
       - Migrate from using partial_name_hash() to full_name_hash() the
         filename transition hash table.
      
         This improves the quality of the code and has the potential for a
         minor performance bump.
      
       - Consolidate some open coded SELinux access vector comparisions into a
         single new function, avtab_node_cmp(), and use that instead.
      
         A small, but nice win for code quality and maintainability.
      
       - Updated the SELinux MAINTAINERS entry with additional information
         around process, bug reporting, etc.
      
         We're also updating some of our "official" roles: dropping Eric Paris
         and adding Ondrej as a reviewer.
      
       - Cleanup the coding style crimes in security/selinux/include.
      
         While I'm not a fan of code churn, I am pushing for more automated
         code checks that can be done at the developer level and one of the
         obvious things to check for is coding style.
      
         In an effort to start from a "good" base I'm slowly working through
         our source files cleaning them up with the help of clang-format and
         good ol' fashioned human eyeballs; this has the first batch of these
         changes.
      
         I've been splitting the changes up per-file to help reduce the impact
         if backports are required (either for LTS or distro kernels), and I
         expect the some of the larger files, e.g. hooks.c and ss/services.c,
         will likely need to be split even further.
      
       - Cleanup old, outdated comments.
      
      * tag 'selinux-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux: (24 commits)
        selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
        selinux: fix style issues in security/selinux/include/initial_sid_to_string.h
        selinux: fix style issues in security/selinux/include/xfrm.h
        selinux: fix style issues in security/selinux/include/security.h
        selinux: fix style issues with security/selinux/include/policycap_names.h
        selinux: fix style issues in security/selinux/include/policycap.h
        selinux: fix style issues in security/selinux/include/objsec.h
        selinux: fix style issues with security/selinux/include/netlabel.h
        selinux: fix style issues in security/selinux/include/netif.h
        selinux: fix style issues in security/selinux/include/ima.h
        selinux: fix style issues in security/selinux/include/conditional.h
        selinux: fix style issues in security/selinux/include/classmap.h
        selinux: fix style issues in security/selinux/include/avc_ss.h
        selinux: align avc_has_perm_noaudit() prototype with definition
        selinux: fix style issues in security/selinux/include/avc.h
        selinux: fix style issues in security/selinux/include/audit.h
        MAINTAINERS: drop Eric Paris from his SELinux role
        MAINTAINERS: add Ondrej Mosnacek as a SELinux reviewer
        selinux: remove the wrong comment about multithreaded process handling
        selinux: introduce an initial SID for early boot processes
        ...
      9f9310bf
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · eab23bc8
      Linus Torvalds authored
      Pull audit updates from Paul Moore:
       "The audit updates are fairly minor with only two patches:
      
         - Send an audit ACK to userspace immediately upon receiving an auditd
           registration event as opposed to waiting until the registration has
           been fully processed and the audit backlog starts filling the
           netlink buffers.
      
           Sending the ACK earlier, as done here, is still safe as the
           operation should not fail at the point when the ACK is done, and
           doing so helps avoid the ACK being dropped in extreme situations.
      
         - Update the audit MAINTAINERS entry with additional information.
      
           There isn't anything in this update that should be new to regular
           contributors or list subscribers, but I'm pushing to start
           documenting our processes, conventions, etc. and this seems like an
           important part of that"
      
      * tag 'audit-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
        MAINTAINERS: update the audit entry
        audit: Send netlink ACK before setting connection in auditd_set
      eab23bc8
    • Linus Torvalds's avatar
      Merge tag 'mm-nonmm-stable-2024-01-09-10-33' of... · 9f2a6352
      Linus Torvalds authored
      Merge tag 'mm-nonmm-stable-2024-01-09-10-33' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull non-MM updates from Andrew Morton:
       "Quite a lot of kexec work this time around. Many singleton patches in
        many places. The notable patch series are:
      
         - nilfs2 folio conversion from Matthew Wilcox in 'nilfs2: Folio
           conversions for file paths'.
      
         - Additional nilfs2 folio conversion from Ryusuke Konishi in 'nilfs2:
           Folio conversions for directory paths'.
      
         - IA64 remnant removal in Heiko Carstens's 'Remove unused code after
           IA-64 removal'.
      
         - Arnd Bergmann has enabled the -Wmissing-prototypes warning
           everywhere in 'Treewide: enable -Wmissing-prototypes'. This had
           some followup fixes:
      
            - Nathan Chancellor has cleaned up the hexagon build in the series
              'hexagon: Fix up instances of -Wmissing-prototypes'.
      
            - Nathan also addressed some s390 warnings in 's390: A couple of
              fixes for -Wmissing-prototypes'.
      
            - Arnd Bergmann addresses the s...
      9f2a6352
    • Linus Torvalds's avatar
      Merge tag 'mm-stable-2024-01-08-15-31' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm · fb46e22a
      Linus Torvalds authored
      Pull MM updates from Andrew Morton:
       "Many singleton patches against the MM code. The patch series which are
        included in this merge do the following:
      
         - Peng Zhang has done some mapletree maintainance work in the series
      
      	'maple_tree: add mt_free_one() and mt_attr() helpers'
      	'Some cleanups of maple tree'
      
         - In the series 'mm: use memmap_on_memory semantics for dax/kmem'
           Vishal Verma has altered the interworking between memory-hotplug
           and dax/kmem so that newly added 'device memory' can more easily
           have its memmap placed within that newly added memory.
      
         - Matthew Wilcox continues folio-related work (including a few fixes)
           in the patch series
      
      	'Add folio_zero_tail() and folio_fill_tail()'
      	'Make folio_start_writeback return void'
      	'Fix fault handler's handling of poisoned tail pages'
      	'Convert aops->error_remove_page to ->error_remove_folio'
      	'Finish two folio conversions'
      	'More ...
      fb46e22a
    • Linus Torvalds's avatar
      Merge tag 'slab-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab · d30e51aa
      Linus Torvalds authored
      Pull slab updates from Vlastimil Babka:
      
       - SLUB: delayed freezing of CPU partial slabs (Chengming Zhou)
      
         Freezing is an operation involving double_cmpxchg() that makes a slab
         exclusive for a particular CPU. Chengming noticed that we use it also
         in situations where we are not yet installing the slab as the CPU
         slab, because freezing also indicates that the slab is not on the
         shared list. This results in redundant freeze/unfreeze operation and
         can be avoided by marking separately the shared list presence by
         reusing the PG_workingset flag.
      
         This approach neatly avoids the issues described in 9b1ea29b
         ("Revert "mm, slub: consider rest of partial list if acquire_slab()
         fails"") as we can now grab a slab from the shared list in a quick
         and guaranteed way without the cmpxchg_double() operation that
         amplifies the lock contention and can fail.
      
         As a result, lkp has reported 34.2% improvement of
         stress-ng.rawudp.ops_per_sec
      
       - SLAB removal and SLUB cleanups (Vlastimil Babka)
      
         The SLAB allocator has been deprecated since 6.5 and nobody has
         objected so far. We agreed at LSF/MM to wait until the next LTS,
         which is 6.6, so we should be good to go now.
      
         This doesn't yet erase all traces of SLAB outside of mm/ so some dead
         code, comments or documentation remain, and will be cleaned up
         gradually (some series are already in the works).
      
         Removing the choice of allocators has already allowed to simplify and
         optimize the code wiring up the kmalloc APIs to the SLUB
         implementation.
      
      * tag 'slab-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab: (34 commits)
        mm/slub: free KFENCE objects in slab_free_hook()
        mm/slub: handle bulk and single object freeing separately
        mm/slub: introduce __kmem_cache_free_bulk() without free hooks
        mm/slub: fix bulk alloc and free stats
        mm/slub: optimize free fast path code layout
        mm/slub: optimize alloc fastpath code layout
        mm/slub: remove slab_alloc() and __kmem_cache_alloc_lru() wrappers
        mm/slab: move kmalloc() functions from slab_common.c to slub.c
        mm/slab: move kmalloc_slab() to mm/slab.h
        mm/slab: move kfree() from slab_common.c to slub.c
        mm/slab: move struct kmem_cache_node from slab.h to slub.c
        mm/slab: move memcg related functions from slab.h to slub.c
        mm/slab: move pre/post-alloc hooks from slab.h to slub.c
        mm/slab: consolidate includes in the internal mm/slab.h
        mm/slab: move the rest of slub_def.h to mm/slab.h
        mm/slab: move struct kmem_cache_cpu declaration to slub.c
        mm/slab: remove mm/slab.c and slab_def.h
        mm/mempool/dmapool: remove CONFIG_DEBUG_SLAB ifdefs
        mm/slab: remove CONFIG_SLAB code from slab common code
        cpu/hotplug: remove CPUHP_SLAB_PREPARE hooks
        ...
      d30e51aa
  3. Jan 09, 2024
    • Linus Torvalds's avatar
      Merge tag 'cgroup-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 9f8413c4
      Linus Torvalds authored
      Pull cgroup updates from Tejun Heo:
      
       - Yafang Shao added task_get_cgroup1() helper to enable a similar BPF
         helper so that BPF progs can be more useful on cgroup1 hierarchies.
         While cgroup1 is mostly in maintenance mode, this addition is very
         small while having an outsized usefulness for users who are still on
         cgroup1. Yafang also optimized root cgroup list access by making it
         RCU protected in the process.
      
       - Waiman Long optimized rstat operation leading to substantially lower
         and more consistent lock hold time while flushing the hierarchical
         statistics. As the lock can be acquired briefly in various hot paths,
         this reduction has cascading benefits.
      
       - Waiman also improved the quality of isolation for cpuset's isolated
         partitions. CPUs which are allocated to isolated partitions are now
         excluded from running unbound work items and cpu_is_isolated() test
         which is used by vmstat and memcg to reduce interference now includes
         cpuset isolated CPUs. While it isn't there yet, the hope is
         eventually reaching parity with the isolation level provided by the
         `isolcpus` boot param but in a dynamic manner.
      
      * tag 'cgroup-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: Move rcu_head up near the top of cgroup_root
        cgroup/cpuset: Include isolated cpuset CPUs in cpu_is_isolated() check
        cgroup: Avoid false cacheline sharing of read mostly rstat_cpu
        cgroup/rstat: Optimize cgroup_rstat_updated_list()
        cgroup: Fix documentation for cpu.idle
        cgroup/cpuset: Expose cpuset.cpus.isolated
        workqueue: Move workqueue_set_unbound_cpumask() and its helpers inside CONFIG_SYSFS
        cgroup/rstat: Reduce cpu_lock hold time in cgroup_rstat_flush_locked()
        cgroup/cpuset: Take isolated CPUs out of workqueue unbound cpumask
        cgroup/cpuset: Keep track of CPUs in isolated partitions
        selftests/cgroup: Minor code cleanup and reorganization of test_cpuset_prs.sh
        workqueue: Add workqueue_unbound_exclude_cpumask() to exclude CPUs from wq_unbound_cpumask
        selftests: cgroup: Fixes a typo in a comment
        cgroup: Add a new helper for cgroup1 hierarchy
        cgroup: Add annotation for holding namespace_sem in current_cgns_cgroup_from_root()
        cgroup: Eliminate the need for cgroup_mutex in proc_cgroup_show()
        cgroup: Make operations on the cgroup root_list RCU safe
        cgroup: Remove unnecessary list_empty()
      9f8413c4
    • Linus Torvalds's avatar
      Merge tag 'sched-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · bfe8eb3b
      Linus Torvalds authored
      Pull scheduler updates from Ingo Molnar:
       "Energy scheduling:
      
         - Consolidate how the max compute capacity is used in the scheduler
           and how we calculate the frequency for a level of utilization.
      
         - Rework interface between the scheduler and the schedutil governor
      
         - Simplify the util_est logic
      
        Deadline scheduler:
      
         - Work more towards reducing SCHED_DEADLINE starvation of low
           priority tasks (e.g., SCHED_OTHER) tasks when higher priority tasks
           monopolize CPU cycles, via the introduction of 'deadline servers'
           (nested/2-level scheduling).
      
           "Fair servers" to make use of this facility are not introduced yet.
      
        EEVDF:
      
         - Introduce O(1) fastpath for EEVDF task selection
      
        NUMA balancing:
      
         - Tune the NUMA-balancing vma scanning logic some more, to better
           distribute the probability of a particular vma getting scanned.
      
        Plus misc fixes, cleanups and updates"
      
      * tag 'sched-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (30 commits)
        sched/fair: Fix tg->load when offlining a CPU
        sched/fair: Remove unused 'next_buddy_marked' local variable in check_preempt_wakeup_fair()
        sched/fair: Use all little CPUs for CPU-bound workloads
        sched/fair: Simplify util_est
        sched/fair: Remove SCHED_FEAT(UTIL_EST_FASTUP, true)
        arm64/amu: Use capacity_ref_freq() to set AMU ratio
        cpufreq/cppc: Set the frequency used for computing the capacity
        cpufreq/cppc: Move and rename cppc_cpufreq_{perf_to_khz|khz_to_perf}()
        energy_model: Use a fixed reference frequency
        cpufreq/schedutil: Use a fixed reference frequency
        cpufreq: Use the fixed and coherent frequency for scaling capacity
        sched/topology: Add a new arch_scale_freq_ref() method
        freezer,sched: Clean saved_state when restoring it during thaw
        sched/fair: Update min_vruntime for reweight_entity() correctly
        sched/doc: Update documentation after renames and synchronize Chinese version
        sched/cpufreq: Rework iowait boost
        sched/cpufreq: Rework schedutil governor performance estimation
        sched/pelt: Avoid underestimation of task utilization
        sched/timers: Explain why idle task schedules out on remote timer enqueue
        sched/cpuidle: Comment about timers requirements VS idle handler
        ...
      bfe8eb3b
    • Linus Torvalds's avatar
      Merge tag 'perf-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · aac4de46
      Linus Torvalds authored
      Pull performance events updates from Ingo Molnar:
      
       - Add branch stack counters ABI extension to better capture the growing
         amount of information the PMU exposes via branch stack sampling.
         There's matching tooling support.
      
       - Fix race when creating the nr_addr_filters sysfs file
      
       - Add Intel Sierra Forest and Grand Ridge intel/cstate PMU support
      
       - Add Intel Granite Rapids, Sierra Forest and Grand Ridge uncore PMU
         support
      
       - Misc cleanups & fixes
      
      * tag 'perf-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/intel/uncore: Factor out topology_gidnid_map()
        perf/x86/intel/uncore: Fix NULL pointer dereference issue in upi_fill_topology()
        perf/x86/amd: Reject branch stack for IBS events
        perf/x86/intel/uncore: Support Sierra Forest and Grand Ridge
        perf/x86/intel/uncore: Support IIO free-running counters on GNR
        perf/x86/intel/uncore: Support Granite Rapids
        perf/x86/uncore: Use u64 to replace unsigned for the uncore offsets array
        perf/x86/intel/uncore: Generic uncore_get_uncores and MMIO format of SPR
        perf: Fix the nr_addr_filters fix
        perf/x86/intel/cstate: Add Grand Ridge support
        perf/x86/intel/cstate: Add Sierra Forest support
        x86/smp: Export symbol cpu_clustergroup_mask()
        perf/x86/intel/cstate: Cleanup duplicate attr_groups
        perf/core: Fix narrow startup race when creating the perf nr_addr_filters sysfs file
        perf/x86/intel: Support branch counters logging
        perf/x86/intel: Reorganize attrs and is_visible
        perf: Add branch_sample_call_stack
        perf/x86: Add PERF_X86_EVENT_NEEDS_BRANCH_STACK flag
        perf: Add branch stack counters
      aac4de46
    • Linus Torvalds's avatar
      Merge tag 'irq-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0bdf0621
      Linus Torvalds authored
      Pull irq subsystem updates from Ingo Molnar:
      
       - Add support for the IA55 interrupt controller on RZ/G3S SoC's
      
       - Update/fix the Qualcom MPM Interrupt Controller driver's register
         enumeration within the somewhat exotic "RPM Message RAM" MMIO-mapped
         shared memory region that is used for other purposes as well
      
       - Clean up the Xtensa built-in Programmable Interrupt Controller driver
         (xtensa-pic) a bit
      
      * tag 'irq-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/irq-xtensa-pic: Clean up
        irqchip/qcom-mpm: Support passing a slice of SRAM as reg space
        dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle
        dt-bindings: interrupt-controller: renesas,rzg2l-irqc: Document RZ/G3S
        irqchip/renesas-rzg2l: Add support for suspend to RAM
        irqchip/renesas-rzg2l: Add macro to retrieve TITSR register offset based on register's index
        irqchip/renesas-rzg2l: Implement restriction when writing ISCR register
        irqchip/renesas-rzg2l: Document structure members
        irqchip/renesas-rzg2l: Align struct member names to tabs
        irqchip/renesas-rzg2l: Use tabs instead of spaces
      0bdf0621
    • Linus Torvalds's avatar
      Merge tag 'timers-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f24dc33f
      Linus Torvalds authored
      Pull timer subsystem updates from Ingo Molnar:
      
       - Various preparatory cleanups & enhancements of the timer-wheel code,
         in preparation for the WIP 'pull timers at expiry' timer migration
         model series (which will replace the current 'push timers at enqueue'
         migration model), by Anna-Maria Behnsen:
      
            - Update comments and clean up confusing variable names
      
            - Add debug check to warn about time travel
      
            - Improve/expand timer-wheel tracepoints
      
            - Optimize away unnecessary IPIs for deferrable timers
      
            - Restructure & clean up next_expiry_recalc()
      
            - Clean up forward_timer_base()
      
            - Introduce __forward_timer_base() and use it to simplify and
              micro-optimize get_next_timer_interrupt()
      
       - Restructure the get_next_timer_interrupt()'s idle logic for better
         readability and to enable a minor optimization.
      
       - Fix the nextevt calculation when no timers are pending
      
       - Fix the sysfs_get_uname() prototype declaration
      
      * tag 'timers-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        timers: Fix nextevt calculation when no timers are pending
        timers: Rework idle logic
        timers: Use already existing function for forwarding timer base
        timers: Split out forward timer base functionality
        timers: Clarify check in forward_timer_base()
        timers: Move store of next event into __next_timer_interrupt()
        timers: Do not IPI for deferrable timers
        tracing/timers: Add tracepoint for tracking timer base is_idle flag
        tracing/timers: Enhance timer_start tracepoint
        tick-sched: Warn when next tick seems to be in the past
        tick/sched: Cleanup confusing variables
        tick-sched: Fix function names in comments
        time: Make sysfs_get_uname() function visible in header
      f24dc33f
    • Linus Torvalds's avatar
      Merge tag 'smp-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 46a08b4d
      Linus Torvalds authored
      Pull CPU hotplug updates from Ingo Molnar:
      
       - Remove unused CPU hotplug states
      
       - Increase the number of dynamic CPU hotplug states
         from 30 to 40, because existing drivers can exhaust
         the allocation space
      
      * tag 'smp-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu/hotplug: Increase the number of dynamic states
        cpu/hotplug: Remove unused CPU hotplug states
      46a08b4d
    • Linus Torvalds's avatar
      Merge tag 'core-entry-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cdc20228
      Linus Torvalds authored
      Pull generic syscall updates from Ingo Molnar:
       "Move various entry functions from kernel/entry/common.c to a header
        file, and always-inline them, to improve syscall entry performance
        on s390 by ~11%"
      
      * tag 'core-entry-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        entry: Move syscall_enter_from_user_mode() to header file
        entry: Move enter_from_user_mode() to header file
        entry: Move exit to usermode functions to header file
      cdc20228
    • Linus Torvalds's avatar
      Merge tag 'core-debugobjects-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ab9517fa
      Linus Torvalds authored
      Pull debugobject update from Ingo Molnar:
      
       - Make tracking object use more robust: it's not safe to access a
         tracking object after releasing the hashbucket lock. Create a
         persistent copy for debug printouts instead.
      
      * tag 'core-debugobjects-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        debugobjects: Stop accessing objects after releasing hash bucket lock
      ab9517fa
    • Linus Torvalds's avatar
      Merge tag 'objtool-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 669d089a
      Linus Torvalds authored
      Pull objtool fixlet from Ingo Molnar:
       "Address a GCC-14 warning: there's no real bug, but indeed the calloc
        order doesn't match the prototype.
      
        (Side note: we should really add zalloc() for such cases)"
      
      * tag 'objtool-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Fix calloc call for new -Walloc-size
      669d089a
    • Linus Torvalds's avatar
      Merge tag 'locking-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6cbf5b31
      Linus Torvalds authored
      Pull locking updates from Ingo Molar:
       "Lock guards:
      
         - Use lock guards in the ptrace code
      
         - Introduce conditional guards to extend to conditional lock
           primitives like mutex_trylock()/mutex_lock_interruptible()/etc.
      
        lockdep:
      
         - Optimize 'struct lock_class' to be smaller
      
         - Update file patterns in MAINTAINERS
      
        mutexes:
      
         - Document mutex lifetime rules a bit more"
      
      * tag 'locking-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked
        locking/mutex: Document that mutex_unlock() is non-atomic
        ptrace: Convert ptrace_attach() to use lock guards
        locking/lockdep: Slightly reorder 'struct lock_class' to save some memory
        MAINTAINERS: Add include/linux/lockdep*.h
        cleanup: Add conditional guard support
      6cbf5b31
    • Florian Fainelli's avatar
      arm64: Update __NR_compat_syscalls for statmount/listmount · f0a78b3e
      Florian Fainelli authored
      Commit d8b0f546 ("wire up syscalls for statmount/listmount") added
      two new system calls to arch/arm64/include/asm/unistd32.h but forgot to
      update the __NR_compat_syscalls number, thus causing the following build
      failures:
      
        arch/arm64/include/asm/unistd32.h:922:24: error: array index in initializer exceeds array bounds
          922 | #define __NR_statmount 457
              |                        ^~~
        arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL'
          130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
              |                                  ^~
      
      Bump up the number by two to accomodate for the new system calls added.
      
      Fixes: d8b0f546
      
       ("wire up syscalls for statmount/listmount")
      Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f0a78b3e
    • Linus Torvalds's avatar
      Merge tag 'x86-entry-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2fdbcf71
      Linus Torvalds authored
      Pull x86 entry updates from Ingo Molnar:
      
       - Optimize common_interrupt_return()
      
       - Harden the return-to-user code by making a CONFIG_DEBUG_ENTRY=y check
         unconditional & moving it closer to the IRET.
      
      * tag 'x86-entry-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/entry: Harden return-to-user
        x86/entry: Optimize common_interrupt_return()
      2fdbcf71
    • Linus Torvalds's avatar
      Merge tag 'x86-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 33677aef
      Linus Torvalds authored
      Pull x86 core updates from Ingo Molnar:
      
       - Add comments about the magic behind the shadow STI
         before MWAIT in __sti_mwait().
      
       - Fix possible unintended timer delays caused by a race
         in mwait_idle_with_hints().
      
      * tag 'x86-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram
        x86: Add a comment about the "magic" behind shadow sti before mwait
      33677aef