1. 24 May, 2022 40 commits
    • Linus Torvalds's avatar
      Merge tag 'regulator-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · 9b18d07b
      Linus Torvalds authored
      Pull regulator updates from Mark Brown:
       "This is mostly a drivers update including a couple of new drivers but
        we do have some fixes and improvements to the core as well.
      
         - Make sure we don't log spuriously about uncontrollable regulators.
      
         - Don't use delays when we should use sleeps for regulators with
           larger ramp times.
      
         - Support for MediaTek MT6358 and MT6366, Richtek RT5759 and Silicon
           Mitus SM5703"
      
      * tag 'regulator-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (36 commits)
        regulator: scmi: Fix refcount leak in scmi_regulator_probe
        regulator: pfuze100: Fix refcount leak in pfuze_parse_regulators_dt
        regulator: qcom_smd: Fix up PM8950 regulator configuration
        regulator: core: Fix enable_count imbalance with EXCLUSIVE_GET
        regulator: core: Add error flags to sysfs attributes
        regulator: dt-bindings: qcom,rpmh: document vdd-l7-bob-supply on PMR735A
        regulator: dt-bindings: qcom,rpmh: document supplies per variant
        regulator: dt-bindings: qcom,rpmh: update maintainers
        regulator: mt6315: Enforce regulator-compatible, not name
        regulator: pca9450: Enable DVS control via PMIC_STBY_REQ
        regulator: pca9450: Make warm reset on WDOG_B assertion
        regulator: Add property for WDOG_B warm reset
        regulator: pca9450: Make I2C Level Translator configurable
        regulator: Add property for I2C level shifter
        regulator: sm5703: Correct reference to the common regulator schema
        regulator: sm5703-regulator: Add regulators support for SM5703 MFD
        dt-bindings: regulator: Add bindings for Silicon Mitus SM5703 regulators
        regulator: richtek,rt4801: parse GPIOs per regulator
        regulator: dt-bindings: richtek,rt4801: use existing ena_gpiod feature
        regulator: core: Sleep (not delay) in set_voltage()
        ...
      9b18d07b
    • Linus Torvalds's avatar
      Merge tag 'regmap-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 5d23bb5f
      Linus Torvalds authored
      Pull regmap updates from Mark Brown:
       "The main change here is Marek's addition of bulk read/write callbacks
        for individual regmaps, we've supported single register operations for
        a while but there's enough hardware out there which can use bulk
        equivalents to make it worthwhile"
      
      * tag 'regmap-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: Add missing map->bus check
        regmap: Add bulk read/write callbacks into regmap_config
        regmap: cache: set max_register with reg_stride
        regmap: Constify static regmap_bus structs
      5d23bb5f
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 638971b7
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
       "MMC core:
      
         - Support zero-out using TRIM for eMMC
      
         - Allow to override the busy-timeout for the ioctl-cmds
      
        MMC host:
      
         - Continued the conversion of DT bindings into the JSON schema
      
         - jz4740: Apply DMA engine limits to maximum segment size
      
         - mmci_stm32: Use a buffer for unaligned DMA requests
      
         - mmc_spi: Enabled high-speed modes via parsing of DT
      
         - omap: Make clock management to be compliant with CCF
      
         - renesas_sdhi:
            - Support eMMC HS400 mode for R-Car V3H ES2.0
            - Don't allow support for eMMC HS400 for R-Car V3M/D3
      
         - sdhci_am654: Fix problem when SD card slot lacks the card detect
           line
      
         - sdhci-esdhc-imx: Add support for the imx8dxl variant
      
         - sdhci-brcmstb: Enable support for clock gating to save power
      
         - sdhci-msm:
            - Add support for the sdx65 variant
            - Add support for the sm8150 variant
      
         - sdhci-of-dwcmshc: Add support for the Rockchip rk3588 variant
      
         - sdhci-pci-gli: Add workaround to allow GL9755 to enter ASPM L1.2"
      
      * tag 'mmc-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (52 commits)
        mmc: sdhci-of-arasan: Add NULL check for data field
        mmc: core: Support zeroout using TRIM for eMMC
        mmc: sdhci-brcmstb: Fix compiler warning
        mmc: sdhci-msm: Add compatible string check for sdx65
        dt-bindings: mmc: sdhci-msm: Document the SDX65 compatible
        mmc: sdhci-msm: Add compatible string check for sm8150
        dt-bindings: mmc: sdhci-msm: Add compatible string for sm8150
        mmc: sdhci-msm: Add SoC specific compatibles
        dt-bindings: mmc: sdhci-msm: Convert bindings to yaml
        dt-bindings: mmc: brcm,sdhci-brcmstb: cleanup example
        dt-bindings: mmc: brcm,sdhci-brcmstb: correct number of reg entries
        mmc: sdhci-brcmstb: Enable Clock Gating to save power
        mmc: sdhci-brcmstb: Re-organize flags
        mmc: mmci: Remove custom ios handler
        mmc: atmel-mci: Simplify if(chan) and if(!chan)
        mmc: core: use kobj_to_dev()
        dt-bindings: mmc: sdhci-of-dwcmhsc: Add rk3588
        mmc: core: Add CIDs for cards to the entropy pool
        mmc: core: Allows to override the timeout value for ioctl() path
        mmc: sdhci-omap: Use of_device_get_match_data() helper
        ...
      638971b7
    • Linus Torvalds's avatar
      Merge tag 'for-linus-4.19-1' of https://github.com/cminyard/linux-ipmi · b1b5bf16
      Linus Torvalds authored
      Pull IPMI update from Corey Minyard:
       "Add limits on the number of users and messages, plus sysfs interfaces
        to control those limits.
      
        Other than that, little cleanups, use dev_xxx() insted of pr_xxx(),
        create initializers for structures, fix a refcount leak, etc"
      
      * tag 'for-linus-4.19-1' of https://github.com/cminyard/linux-ipmi:
        ipmi:ipmb: Fix refcount leak in ipmi_ipmb_probe
        ipmi: remove unnecessary type castings
        ipmi: Make two logs unique
        ipmi:si: Convert pr_debug() to dev_dbg()
        ipmi: Convert pr_debug() to dev_dbg()
        ipmi: Fix pr_fmt to avoid compilation issues
        ipmi: Add an intializer for ipmi_recv_msg struct
        ipmi: Add an intializer for ipmi_smi_msg struct
        ipmi:ssif: Check for NULL msg when handling events and messages
        ipmi: use simple i2c probe function
        ipmi: Add a sysfs count of total outstanding messages for an interface
        ipmi: Add a sysfs interface to view the number of users
        ipmi: Limit the number of message a user may have outstanding
        ipmi: Add a limit on the number of users that may use IPMI
      b1b5bf16
    • Linus Torvalds's avatar
      Merge tag 'mtd/for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · d3353719
      Linus Torvalds authored
      Pull mtd updates from Miquel Raynal:
       "MTD core changes:
         - Call of_platform_populate() for MTD partitions
         - Check devicetree alias for index
         - mtdoops:
            - Add a timestamp to the mtdoops header.
            - Create a header structure for the saved mtdoops.
            - Fix the size of the header read buffer.
         - mtdblock: Warn if opened on NAND
         - Bindings:
            - reserved-memory: Support MTD/block device
            - jedec,spi-nor: remove unneeded properties
            - Extend fixed-partitions binding
            - Add Sercomm (Suzhou) Corporation vendor prefix
      
        MTD driver changes:
         - st_spi_fsm: add missing clk_disable_unprepare() in stfsm_remove()
         - phram:
            - Allow cached mappings
            - Allow probing via reserved-memory
         - maps: ixp4xx: Drop driver
         - bcm47xxpart: Print correct offset on read error
      
        CFI driver changes:
         - Rename chip_ready variables
         - Add S29GL064N ID definition
         - Use chip_ready() for write on S29GL064N
         - Move and rename chip_check/chip_ready/chip_good_for_write
      
        NAND core changes:
         - Print offset instead of page number for bad blocks
      
        Raw NAND controller drivers:
         - Cadence: Fix possible null-ptr-deref in cadence_nand_dt_probe()
         - CS553X: simplify the return expression of cs553x_write_ctrl_byte()
         - Davinci: Remove redundant unsigned comparison to zero
         - Denali: Use managed device resources
         - GPMI:
            - Add large oob bch setting support
            - Rename the variable ecc_chunk_size
            - Uninline the gpmi_check_ecc function
            - Add strict ecc strength check
            - Refactor BCH geometry settings function
         - Intel: Fix possible null-ptr-deref in ebu_nand_probe()
         - MPC5121: Check before clk_disable_unprepare() not needed
         - Mtk:
            - MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK
            - Also parse the default nand-ecc-engine property if available
            - Make mtk_ecc.c a separated module
         - OMAP ELM:
            - Convert the bindings to yaml
            - Describe the bindings for AM64 ELM
            - Add support for its compatible
         - Renesas: Use runtime PM instead of the raw clock API and update the
           bindings accordingly
         - Rockchip: Check before clk_disable_unprepare() not needed
         - TMIO: Check return value after calling platform_get_resource()
      
        Raw NAND chip driver:
         - Kioxia: Add support for TH58NVG3S0HBAI4 and TC58NVG0S3HTA00
      
        SPI-NAND chip drivers:
         - Gigadevice:
            - Add support for:
               - GD5FxGM7xExxG
               - GD5F{2,4}GQ5xExxG
               - GD5F1GQ5RExxG
               - GD5FxGQ4xExxG
            - Fix Quad IO for GD5F1GQ5UExxG
         - XTX: Add support for XT26G0xA
      
        SPI NOR core changes:
         - Read back written SR value to make sure the write was done
           correctly.
         - Introduce a common function for Read ID that manufacturer drivers
           can use to verify the Octal DTR switch worked correctly.
         - Add helpers for read/write any register commands so manufacturer
           drivers don't open code it every time.
         - Clarify rdsr dummy cycles documentation.
         - Add debugfs entry to expose internal flash parameters and state.
      
        SPI NOR manufacturer drivers changes:
         - Add support for Winbond W25Q512NW-IM, and Eon EN25QH256A.
         - Move spi_nor_write_ear() to Winbond module since only Winbond
           flashes use it.
         - Rework Micron and Cypress Octal DTR enable methods to improve
           readability.
         - Use the common Read ID function to verify switch to Octal DTR mode
           for Micron and Cypress flashes.
         - Skip polling status on volatile register writes for Micron and
           Cypress flashes since the operation is instant"
      
      * tag 'mtd/for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (68 commits)
        mtd: st_spi_fsm: add missing clk_disable_unprepare() in stfsm_remove()
        dt-bindings: mtd: partitions: Extend fixed-partitions binding
        dt-bindings: Add Sercomm (Suzhou) Corporation vendor prefix
        mtd: phram: Allow cached mappings
        mtd: call of_platform_populate() for MTD partitions
        mtd: rawnand: renesas: Use runtime PM instead of the raw clock API
        dt-bindings: mtd: renesas: Fix the NAND controller description
        mtd: rawnand: mpc5121: Check before clk_disable_unprepare() not needed
        mtd: rawnand: rockchip: Check before clk_disable_unprepare() not needed
        mtd: nand: MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK
        mtd: rawnand: cs553x: simplify the return expression of cs553x_write_ctrl_byte()
        mtd: rawnand: kioxia: Add support for TH58NVG3S0HBAI4
        mtd: spi-nor: debugfs: fix format specifier
        mtd: spi-nor: support eon en25qh256a variant
        mtd: spi-nor: winbond: add support for W25Q512NW-IM
        mtd: spi-nor: expose internal parameters via debugfs
        mtd: spi-nor: export spi_nor_hwcaps_pp2cmd()
        mtd: spi-nor: move spi_nor_write_ear() to winbond module
        mtd: spi-nor: amend the rdsr dummy cycles documentation
        mtd: cfi_cmdset_0002: Rename chip_ready variables
        ...
      d3353719
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v5.19-rc1' of... · 076f222a
      Linus Torvalds authored
      Merge tag 'hwmon-for-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon updates from Guenter Roeck:
       "New drivers:
      
         - Driver for the Microchip LAN966x SoC
      
         - PMBus driver for Infineon Digital Multi-phase xdp152 family
           controllers
      
        Chip support added to existing drivers:
      
         - asus-ec-sensors:
            - Support for ROG STRIX X570-E GAMING WIFI II, PRIME X470-PRO, and
              ProArt X570 Creator WIFI
            - External temperature sensor support for ASUS WS X570-ACE
      
         - nct6775:
            - Support for I2C driver
            - Support for ASUS PRO H410T / PRIME H410M-R /
              ROG X570-E GAMING WIFI II
      
         - lm75:
            - Support for - Atmel AT30TS74
      
         - pmbus/max16601:
            - Support for MAX16602
      
         - aquacomputer_d5next:
            - Support for Aquacomputer Farbwerk
            - Support for Aquacomputer Octo
      
         - jc42:
            - Support for S-34TS04A
      
        Kernel API changes / clarifications:
      
         - The chip parameter of with_info API is now mandatory
      
         - New hwmon_device_register_for_thermal API call for use by the
           thermal subsystem
      
        Improvements:
      
         - PMBus and JC42 drivers now register with thermal subsystem
      
         - PMBus drivers now support get_voltage/set_voltage power operations
      
         - The adt7475 driver now supports pin configuration
      
         - The lm90 driver now supports setting extended range temperatures
           configuration with a devicetree property
      
         - The dell-smm driver now registers as cooling device
      
         - The OCC driver delays hwmon registration until requested by
           userspace
      
        ... and various other minor fixes and improvements"
      
      * tag 'hwmon-for-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (71 commits)
        hwmon: (aquacomputer_d5next) Fix an error handling path in aqc_probe()
        hwmon: (sl28cpld) Fix typo in comment
        hwmon: (pmbus) Check PEC support before reading other registers
        hwmon: (dimmtemp) Fix bitmap handling
        hwmon: (lm90) enable extended range according to DTS node
        dt-bindings: hwmon: lm90: add ti,extended-range-enable property
        dt-bindings: hwmon: lm90: add missing ti,tmp461
        hwmon: (ibmaem) Directly use ida_alloc()/free()
        hwmon: Directly use ida_alloc()/free()
        hwmon: (asus-ec-sensors) fix Formula VIII definition
        dt-bindings: trivial-devices: Add xdp152
        hwmon: (sl28cpld-hwmon) Use HWMON_CHANNEL_INFO macro
        hwmon: (pwm-fan) Use HWMON_CHANNEL_INFO macro
        hwmon: (peci/dimmtemp) Use HWMON_CHANNEL_INFO macro
        hwmon: (peci/cputemp) Use HWMON_CHANNEL_INFO macro
        hwmon: (mr75203) Use HWMON_CHANNEL_INFO macro
        hwmon: (ltc2992) Use HWMON_CHANNEL_INFO macro
        hwmon: (as370-hwmon) Use HWMON_CHANNEL_INFO macro
        hwmon: Make chip parameter for with_info API mandatory
        thermal/drivers/thermal_hwmon: Use hwmon_device_register_for_thermal()
        ...
      076f222a
    • Linus Torvalds's avatar
      Merge tag 'integrity-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity · 0350785b
      Linus Torvalds authored
      Pull IMA updates from Mimi Zohar:
       "New is IMA support for including fs-verity file digests and signatures
        in the IMA measurement list as well as verifying the fs-verity file
        digest based signatures, both based on policy.
      
        In addition, are two bug fixes:
      
         - avoid reading UEFI variables, which cause a page fault, on Apple
           Macs with T2 chips.
      
         - remove the original "ima" template Kconfig option to address a boot
           command line ordering issue.
      
        The rest is a mixture of code/documentation cleanup"
      
      * tag 'integrity-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity:
        integrity: Fix sparse warnings in keyring_handler
        evm: Clean up some variables
        evm: Return INTEGRITY_PASS for enum integrity_status value '0'
        efi: Do not import certificates from UEFI Secure Boot for T2 Macs
        fsverity: update the documentation
        ima: support fs-verity file digest based version 3 signatures
        ima: permit fsverity's file digests in the IMA measurement list
        ima: define a new template field named 'd-ngv2' and templates
        fs-verity: define a function to return the integrity protected file digest
        ima: use IMA default hash algorithm for integrity violations
        ima: fix 'd-ng' comments and documentation
        ima: remove the IMA_TEMPLATE Kconfig option
        ima: remove redundant initialization of pointer 'file'.
      0350785b
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-next-v5.19-rc1' of... · 7cf6a8a1
      Linus Torvalds authored
      Merge tag 'tpmdd-next-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
      
      Pull tpm updates from Jarkko Sakkinen:
      
       - Tightened validation of key hashes for SYSTEM_BLACKLIST_HASH_LIST. An
         invalid hash format causes a compilation error. Previously, they got
         included to the kernel binary but were silently ignored at run-time.
      
       - Allow root user to append new hashes to the blacklist keyring.
      
       - Trusted keys backed with Cryptographic Acceleration and Assurance
         Module (CAAM), which part of some of the new NXP's SoC's. Now there
         is total three hardware backends for trusted keys: TPM, ARM TEE and
         CAAM.
      
       - A scattered set of fixes and small improvements for the TPM driver.
      
      * tag 'tpmdd-next-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        MAINTAINERS: add KEYS-TRUSTED-CAAM
        doc: trusted-encrypted: describe new CAAM trust source
        KEYS: trusted: Introduce support for NXP CAAM-based trusted keys
        crypto: caam - add in-kernel interface for blob generator
        crypto: caam - determine whether CAAM supports blob encap/decap
        KEYS: trusted: allow use of kernel RNG for key material
        KEYS: trusted: allow use of TEE as backend without TCG_TPM support
        tpm: Add field upgrade mode support for Infineon TPM2 modules
        tpm: Fix buffer access in tpm2_get_tpm_pt()
        char: tpm: cr50_i2c: Suppress duplicated error message in .remove()
        tpm: cr50: Add new device/vendor ID 0x504a6666
        tpm: Remove read16/read32/write32 calls from tpm_tis_phy_ops
        tpm: ibmvtpm: Correct the return value in tpm_ibmvtpm_probe()
        tpm/tpm_ftpm_tee: Return true/false (not 1/0) from bool functions
        certs: Explain the rationale to call panic()
        certs: Allow root user to append signed hashes to the blacklist keyring
        certs: Check that builtin blacklist hashes are valid
        certs: Make blacklist_vet_description() more strict
        certs: Factor out the blacklist hash creation
        tools/certs: Add print-cert-tbs-hash.sh
      7cf6a8a1
    • Linus Torvalds's avatar
      Merge tag 'Smack-for-5.19' of https://github.com/cschaufler/smack-next · a9d1046a
      Linus Torvalds authored
      Pull smack update from Casey Schaufler:
       "A single change to remove a pointless assignment"
      
      * tag 'Smack-for-5.19' of https://github.com/cschaufler/smack-next:
        smack: Remove redundant assignments
      a9d1046a
    • Linus Torvalds's avatar
      Merge tag 'landlock-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux · cb44e4f0
      Linus Torvalds authored
      Pull Landlock updates from Mickaël Salaün:
      
       - improve the path_rename LSM hook implementations for RENAME_EXCHANGE;
      
       - fix a too-restrictive filesystem control for a rare corner case;
      
       - set the nested sandbox limitation to 16 layers;
      
       - add a new LANDLOCK_ACCESS_FS_REFER access right to properly handle
         file reparenting (i.e. full rename and link support);
      
       - add new tests and documentation;
      
       - format code with clang-format to make it easier to maintain and
         contribute.
      
      * tag 'landlock-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: (30 commits)
        landlock: Explain how to support Landlock
        landlock: Add design choices documentation for filesystem access rights
        landlock: Document good practices about filesystem policies
        landlock: Document LANDLOCK_ACCESS_FS_REFER and ABI versioning
        samples/landlock: Add support for file reparenting
        selftests/landlock: Add 11 new test suites dedicated to file reparenting
        landlock: Add support for file reparenting with LANDLOCK_ACCESS_FS_REFER
        LSM: Remove double path_rename hook calls for RENAME_EXCHANGE
        landlock: Move filesystem helpers and add a new one
        landlock: Fix same-layer rule unions
        landlock: Create find_rule() from unmask_layers()
        landlock: Reduce the maximum number of layers to 16
        landlock: Define access_mask_t to enforce a consistent access mask size
        selftests/landlock: Test landlock_create_ruleset(2) argument check ordering
        landlock: Change landlock_restrict_self(2) check ordering
        landlock: Change landlock_add_rule(2) argument check ordering
        selftests/landlock: Add tests for O_PATH
        selftests/landlock: Fully test file rename with "remove" access
        selftests/landlock: Extend access right tests to directories
        selftests/landlock: Add tests for unknown access rights
        ...
      cb44e4f0
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20220523' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · efd1df19
      Linus Torvalds authored
      Pull selinux updates from Paul Moore:
       "We've got twelve patches queued for v5.19, with most being fairly
        minor. The highlights are below:
      
         - The checkreqprot and runtime disable knobs have been deprecated for
           some time with no active users that we can find. In an effort to
           move things along we are adding a pause when the knobs are used to
           help make the deprecation more noticeable in case anyone is still
           using these hacks in the shadows.
      
         - We've added the anonymous inode class name to the AVC audit records
           when anonymous inodes are involved. This should make writing policy
           easier when anonymous inodes are involved.
      
         - More constification work. This is fairly straightforward and the
           source of most of the diffstat.
      
         - The usual minor cleanups: remove unnecessary assignments, assorted
           style/checkpatch fixes, kdoc fixes, macro while-loop
           encapsulations, #include tweaks, etc"
      
      * tag 'selinux-pr-20220523' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
        security: declare member holding string literal const
        selinux: log anon inode class name
        selinux: declare data arrays const
        selinux: fix indentation level of mls_ops block
        selinux: include necessary headers in headers
        selinux: avoid extra semicolon
        selinux: update parameter documentation
        selinux: resolve checkpatch errors
        selinux: don't sleep when CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE is true
        selinux: checkreqprot is deprecated, add some ssleep() discomfort
        selinux: runtime disable is deprecated, add some ssleep() discomfort
        selinux: Remove redundant assignments
      efd1df19
    • Linus Torvalds's avatar
      Merge tag 'execve-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · a6b45057
      Linus Torvalds authored
      Pull execve updates from Kees Cook:
      
       - Fix binfmt_flat GOT handling for riscv (Niklas Cassel)
      
       - Remove unused/broken binfmt_flat shared library and coredump code
         (Eric W. Biederman)
      
      * tag 'execve-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        binfmt_flat: Remove shared library support
        binfmt_flat: Drop vestiges of coredump support
        binfmt_flat: do not stop relocating GOT entries prematurely on riscv
      a6b45057
    • Linus Torvalds's avatar
      Merge tag 'seccomp-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · dc8af1ff
      Linus Torvalds authored
      Pull seccomp updates from Kees Cook:
      
       - Rework USER_NOTIF notification ordering and kill logic (Sargun
         Dhillon)
      
       - Improved PTRACE_O_SUSPEND_SECCOMP selftest (Jann Horn)
      
       - Gracefully handle failed unshare() in selftests (Yang Guang)
      
       - Spelling fix (Colin Ian King)
      
      * tag 'seccomp-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        selftests/seccomp: Fix spelling mistake "Coud" -> "Could"
        selftests/seccomp: Add test for wait killable notifier
        selftests/seccomp: Refactor get_proc_stat to split out file reading code
        seccomp: Add wait_killable semantic to seccomp user notifier
        selftests/seccomp: Ensure that notifications come in FIFO order
        seccomp: Use FIFO semantics to order notifications
        selftests/seccomp: Add SKIP for failed unshare()
        selftests/seccomp: Test PTRACE_O_SUSPEND_SECCOMP without CAP_SYS_ADMIN
      dc8af1ff
    • Linus Torvalds's avatar
      Merge tag 'kernel-hardening-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 0bf13a84
      Linus Torvalds authored
      Pull kernel hardening updates from Kees Cook:
      
       - usercopy hardening expanded to check other allocation types (Matthew
         Wilcox, Yuanzheng Song)
      
       - arm64 stackleak behavioral improvements (Mark Rutland)
      
       - arm64 CFI code gen improvement (Sami Tolvanen)
      
       - LoadPin LSM block dev API adjustment (Christoph Hellwig)
      
       - Clang randstruct support (Bill Wendling, Kees Cook)
      
      * tag 'kernel-hardening-v5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: (34 commits)
        loadpin: stop using bdevname
        mm: usercopy: move the virt_addr_valid() below the is_vmalloc_addr()
        gcc-plugins: randstruct: Remove cast exception handling
        af_unix: Silence randstruct GCC plugin warning
        niu: Silence randstruct warnings
        big_keys: Use struct for internal payload
        gcc-plugins: Change all version strings match kernel
        randomize_kstack: Improve docs on requirements/rationale
        lkdtm/stackleak: fix CONFIG_GCC_PLUGIN_STACKLEAK=n
        arm64: entry: use stackleak_erase_on_task_stack()
        stackleak: add on/off stack variants
        lkdtm/stackleak: check stack boundaries
        lkdtm/stackleak: prevent unexpected stack usage
        lkdtm/stackleak: rework boundary management
        lkdtm/stackleak: avoid spurious failure
        stackleak: rework poison scanning
        stackleak: rework stack high bound handling
        stackleak: clarify variable names
        stackleak: rework stack low bound handling
        stackleak: remove redundant check
        ...
      0bf13a84
    • Linus Torvalds's avatar
      Merge tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt · 51518aa6
      Linus Torvalds authored
      Pull fsverity updates from Eric Biggers:
       "A couple small cleanups for fs/verity/"
      
      * tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt:
        fs-verity: Use struct_size() helper in enable_verity()
        fs-verity: remove unused parameter desc_size in fsverity_create_info()
      51518aa6
    • Linus Torvalds's avatar
      Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt · c1f4cfdb
      Linus Torvalds authored
      Pull fscrypt updates from Eric Biggers:
       "Some cleanups for fs/crypto/:
      
         - Split up the misleadingly-named FS_CRYPTO_BLOCK_SIZE constant.
      
         - Consistently report the encryption implementation that is being
           used.
      
         - Add helper functions for the test_dummy_encryption mount option
           that work properly with the new mount API. ext4 and f2fs will use
           these"
      
      * tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt:
        fscrypt: add new helper functions for test_dummy_encryption
        fscrypt: factor out fscrypt_policy_to_key_spec()
        fscrypt: log when starting to use inline encryption
        fscrypt: split up FS_CRYPTO_BLOCK_SIZE
      c1f4cfdb
    • Linus Torvalds's avatar
      Merge tag 'random-5.19-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random · ac2ab990
      Linus Torvalds authored
      Pull random number generator updates from Jason Donenfeld:
       "These updates continue to refine the work began in 5.17 and 5.18 of
        modernizing the RNG's crypto and streamlining and documenting its
        code.
      
        New for 5.19, the updates aim to improve entropy collection methods
        and make some initial decisions regarding the "premature next" problem
        and our threat model. The cloc utility now reports that random.c is
        931 lines of code and 466 lines of comments, not that basic metrics
        like that mean all that much, but at the very least it tells you that
        this is very much a manageable driver now.
      
        Here's a summary of the various updates:
      
         - The random_get_entropy() function now always returns something at
           least minimally useful. This is the primary entropy source in most
           collectors, which in the best case expands to something like RDTSC,
           but prior to this change, in the worst case it would just return 0,
           contributing nothing. For 5.19, additional architectures are wired
           up, and architectures that are entirely missing a cycle counter now
           have a generic fallback path, which uses the highest resolution
           clock available from the timekeeping subsystem.
      
           Some of those clocks can actually be quite good, despite the CPU
           not having a cycle counter of its own, and going off-core for a
           stamp is generally thought to increase jitter, something positive
           from the perspective of entropy gathering. Done very early on in
           the development cycle, this has been sitting in next getting some
           testing for a while now and has relevant acks from the archs, so it
           should be pretty well tested and fine, but is nonetheless the thing
           I'll be keeping my eye on most closely.
      
         - Of particular note with the random_get_entropy() improvements is
           MIPS, which, on CPUs that lack the c0 count register, will now
           combine the high-speed but short-cycle c0 random register with the
           lower-speed but long-cycle generic fallback path.
      
         - With random_get_entropy() now always returning something useful,
           the interrupt handler now collects entropy in a consistent
           construction.
      
         - Rather than comparing two samples of random_get_entropy() for the
           jitter dance, the algorithm now tests many samples, and uses the
           amount of differing ones to determine whether or not jitter entropy
           is usable and how laborious it must be. The problem with comparing
           only two samples was that if the cycle counter was extremely slow,
           but just so happened to be on the cusp of a change, the slowness
           wouldn't be detected. Taking many samples fixes that to some
           degree.
      
           This, combined with the other improvements to random_get_entropy(),
           should make future unification of /dev/random and /dev/urandom
           maybe more possible. At the very least, were we to attempt it again
           today (we're not), it wouldn't break any of Guenter's test rigs
           that broke when we tried it with 5.18. So, not today, but perhaps
           down the road, that's something we can revisit.
      
         - We attempt to reseed the RNG immediately upon waking up from system
           suspend or hibernation, making use of the various timestamps about
           suspend time and such available, as well as the usual inputs such
           as RDRAND when available.
      
         - Batched randomness now falls back to ordinary randomness before the
           RNG is initialized. This provides more consistent guarantees to the
           types of random numbers being returned by the various accessors.
      
         - The "pre-init injection" code is now gone for good. I suspect you
           in particular will be happy to read that, as I recall you
           expressing your distaste for it a few months ago. Instead, to avoid
           a "premature first" issue, while still allowing for maximal amount
           of entropy availability during system boot, the first 128 bits of
           estimated entropy are used immediately as it arrives, with the next
           128 bits being buffered. And, as before, after the RNG has been
           fully initialized, it winds up reseeding anyway a few seconds later
           in most cases. This resulted in a pretty big simplification of the
           initialization code and let us remove various ad-hoc mechanisms
           like the ugly crng_pre_init_inject().
      
         - The RNG no longer pretends to handle the "premature next" security
           model, something that various academics and other RNG designs have
           tried to care about in the past. After an interesting mailing list
           thread, these issues are thought to be a) mainly academic and not
           practical at all, and b) actively harming the real security of the
           RNG by delaying new entropy additions after a potential compromise,
           making a potentially bad situation even worse. As well, in the
           first place, our RNG never even properly handled the premature next
           issue, so removing an incomplete solution to a fake problem was
           particularly nice.
      
           This allowed for numerous other simplifications in the code, which
           is a lot cleaner as a consequence. If you didn't see it before,
           https://lore.kernel.org/lkml/YmlMGx6+uigkGiZ0@zx2c4.com/ may be a
           thread worth skimming through.
      
         - While the interrupt handler received a separate code path years ago
           that avoids locks by using per-cpu data structures and a faster
           mixing algorithm, in order to reduce interrupt latency, input and
           disk events that are triggered in hardirq handlers were still
           hitting locks and more expensive algorithms. Those are now
           redirected to use the faster per-cpu data structures.
      
         - Rather than having the fake-crypto almost-siphash-based random32
           implementation be used right and left, and in many places where
           cryptographically secure randomness is desirable, the batched
           entropy code is now fast enough to replace that.
      
         - As usual, numerous code quality and documentation cleanups. For
           example, the initialization state machine now uses enum symbolic
           constants instead of just hard coding numbers everywhere.
      
         - Since the RNG initializes once, and then is always initialized
           thereafter, a pretty heavy amount of code used during that
           initialization is never used again. It is now completely cordoned
           off using static branches and it winds up in the .text.unlikely
           section so that it doesn't reduce cache compactness after the RNG
           is ready.
      
         - A variety of functions meant for waiting on the RNG to be
           initialized were only used by vsprintf, and in not a particularly
           optimal way. Replacing that usage with a more ordinary setup made
           it possible to remove those functions.
      
         - A cleanup of how we warn userspace about the use of uninitialized
           /dev/urandom and uninitialized get_random_bytes() usage.
           Interestingly, with the change you merged for 5.18 that attempts to
           use jitter (but does not block if it can't), the majority of users
           should never see those warnings for /dev/urandom at all now, and
           the one for in-kernel usage is mainly a debug thing.
      
         - The file_operations struct for /dev/[u]random now implements
           .read_iter and .write_iter instead of .read and .write, allowing it
           to also implement .splice_read and .splice_write, which makes
           splice(2) work again after it was broken here (and in many other
           places in the tree) during the set_fs() removal. This was a bit of
           a last minute arrival from Jens that hasn't had as much time to
           bake, so I'll be keeping my eye on this as well, but it seems
           fairly ordinary. Unfortunately, read_iter() is around 3% slower
           than read() in my tests, which I'm not thrilled about. But Jens and
           Al, spurred by this observation, seem to be making progress in
           removing the bottlenecks on the iter paths in the VFS layer in
           general, which should remove the performance gap for all drivers.
      
         - Assorted other bug fixes, cleanups, and optimizations.
      
         - A small SipHash cleanup"
      
      * tag 'random-5.19-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random: (49 commits)
        random: check for signals after page of pool writes
        random: wire up fops->splice_{read,write}_iter()
        random: convert to using fops->write_iter()
        random: convert to using fops->read_iter()
        random: unify batched entropy implementations
        random: move randomize_page() into mm where it belongs
        random: remove mostly unused async readiness notifier
        random: remove get_random_bytes_arch() and add rng_has_arch_random()
        random: move initialization functions out of hot pages
        random: make consistent use of buf and len
        random: use proper return types on get_random_{int,long}_wait()
        random: remove extern from functions in header
        random: use static branch for crng_ready()
        random: credit architectural init the exact amount
        random: handle latent entropy and command line from random_init()
        random: use proper jiffies comparison macro
        random: remove ratelimiting for in-kernel unseeded randomness
        random: move initialization out of reseeding hot path
        random: avoid initializing twice in credit race
        random: use symbolic constants for crng_init states
        ...
      ac2ab990
    • Daniel Thompson's avatar
      lockdown: also lock down previous kgdb use · eadb2f47
      Daniel Thompson authored
      KGDB and KDB allow read and write access to kernel memory, and thus
      should be restricted during lockdown.  An attacker with access to a
      serial port (for example, via a hypervisor console, which some cloud
      vendors provide over the network) could trigger the debugger so it is
      important that the debugger respect the lockdown mode when/if it is
      triggered.
      
      Fix this by integrating lockdown into kdb's existing permissions
      mechanism.  Unfortunately kgdb does not have any permissions mechanism
      (although it certainly could be added later) so, for now, kgdb is simply
      and brutally disabled by immediately exiting the gdb stub without taking
      any action.
      
      For lockdowns established early in the boot (e.g. the normal case) then
      this should be fine but on systems where kgdb has set breakpoints before
      the lockdown is enacted than "bad things" will happen.
      
      CVE: CVE-2022-21499
      Co-developed-by: default avatarStephen Brennan <stephen.s.brennan@oracle.com>
      Signed-off-by: default avatarStephen Brennan <stephen.s.brennan@oracle.com>
      Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      eadb2f47
    • Linus Torvalds's avatar
      Merge tag 'sched-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6f3f04c1
      Linus Torvalds authored
      Pull scheduler updates from Ingo Molnar:
      
       - Updates to scheduler metrics:
           - PELT fixes & enhancements
           - PSI fixes & enhancements
           - Refactor cpu_util_without()
      
       - Updates to instrumentation/debugging:
           - Remove sched_trace_*() helper functions - can be done via debug
             info
           - Fix double update_rq_clock() warnings
      
       - Introduce & use "preemption model accessors" to simplify some of the
         Kconfig complexity.
      
       - Make softirq handling RT-safe.
      
       - Misc smaller fixes & cleanups.
      
      * tag 'sched-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        topology: Remove unused cpu_cluster_mask()
        sched: Reverse sched_class layout
        sched/deadline: Remove superfluous rq clock update in push_dl_task()
        sched/core: Avoid obvious double update_rq_clock warning
        smp: Make softirq handling RT safe in flush_smp_call_function_queue()
        smp: Rename flush_smp_call_function_from_idle()
        sched: Fix missing prototype warnings
        sched/fair: Remove cfs_rq_tg_path()
        sched/fair: Remove sched_trace_*() helper functions
        sched/fair: Refactor cpu_util_without()
        sched/fair: Revise comment about lb decision matrix
        sched/psi: report zeroes for CPU full at the system level
        sched/fair: Delete useless condition in tg_unthrottle_up()
        sched/fair: Fix cfs_rq_clock_pelt() for throttled cfs_rq
        sched/fair: Move calculate of avg_load to a better location
        mailmap: Update my email address to @redhat.com
        MAINTAINERS: Add myself as scheduler topology reviewer
        psi: Fix trigger being fired unexpectedly at initial
        ftrace: Use preemption model accessors for trace header printout
        kcsan: Use preemption model accessors
      6f3f04c1
    • Linus Torvalds's avatar
      Merge tag 'perf-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cfeb2522
      Linus Torvalds authored
      Pull perf events updates from Ingo Molnar:
       "Platform PMU changes:
      
         - x86/intel:
            - Add new Intel Alder Lake and Raptor Lake support
      
         - x86/amd:
            - AMD Zen4 IBS extensions support
            - Add AMD PerfMonV2 support
            - Add AMD Fam19h Branch Sampling support
      
        Generic changes:
      
         - signal: Deliver SIGTRAP on perf event asynchronously if blocked
      
           Perf instrumentation can be driven via SIGTRAP, but this causes a
           problem when SIGTRAP is blocked by a task & terminate the task.
      
           Allow user-space to request these signals asynchronously (after
           they get unblocked) & also give the information to the signal
           handler when this happens:
      
             "To give user space the ability to clearly distinguish
              synchronous from asynchronous signals, introduce
              siginfo_t::si_perf_flags and TRAP_PERF_FLAG_ASYNC (opted for
              flags in case more binary information is required in future).
      
              The resolution to the problem is then to (a) no longer force the
              signal (avoiding the terminations), but (b) tell user space via
              si_perf_flags if the signal was synchronous or not, so that such
              signals can be handled differently (e.g. let user space decide
              to ignore or consider the data imprecise). "
      
         - Unify/standardize the /sys/devices/cpu/events/* output format.
      
         - Misc fixes & cleanups"
      
      * tag 'perf-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (32 commits)
        perf/x86/amd/core: Fix reloading events for SVM
        perf/x86/amd: Run AMD BRS code only on supported hw
        perf/x86/amd: Fix AMD BRS period adjustment
        perf/x86/amd: Remove unused variable 'hwc'
        perf/ibs: Fix comment
        perf/amd/ibs: Advertise zen4_ibs_extensions as pmu capability attribute
        perf/amd/ibs: Add support for L3 miss filtering
        perf/amd/ibs: Use ->is_visible callback for dynamic attributes
        perf/amd/ibs: Cascade pmu init functions' return value
        perf/x86/uncore: Add new Alder Lake and Raptor Lake support
        perf/x86/uncore: Clean up uncore_pci_ids[]
        perf/x86/cstate: Add new Alder Lake and Raptor Lake support
        perf/x86/msr: Add new Alder Lake and Raptor Lake support
        perf/x86: Add new Alder Lake and Raptor Lake support
        perf/amd/ibs: Use interrupt regs ip for stack unwinding
        perf/x86/amd/core: Add PerfMonV2 overflow handling
        perf/x86/amd/core: Add PerfMonV2 counter control
        perf/x86/amd/core: Detect available counters
        perf/x86/amd/core: Detect PerfMonV2 support
        x86/msr: Add PerfCntrGlobal* registers
        ...
      cfeb2522
    • Linus Torvalds's avatar
      Merge tag 'objtool-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 22922dea
      Linus Torvalds authored
      Pull objtool updates from Ingo Molnar:
      
       - Comprehensive interface overhaul:
         =================================
      
         Objtool's interface has some issues:
      
           - Several features are done unconditionally, without any way to
             turn them off. Some of them might be surprising. This makes
             objtool tricky to use, and prevents porting individual features
             to other arches.
      
           - The config dependencies are too coarse-grained. Objtool
             enablement is tied to CONFIG_STACK_VALIDATION, but it has several
             other features independent of that.
      
           - The objtool subcmds ("check" and "orc") are clumsy: "check" is
             really a subset of "orc", so it has all the same options.
      
             The subcmd model has never really worked for objtool, as it only
             has a single purpose: "do some combination of things on an object
             file".
      
           - The '--lto' and '--vmlinux' options are nonsensical and have
             surprising behavior.
      
         Overhaul the interface:
      
            - get rid of subcmds
      
            - make all features individually selectable
      
            - remove and/or clarify confusing/obsolete options
      
            - update the documentation
      
            - fix some bugs found along the way
      
       - Fix x32 regression
      
       - Fix Kbuild cleanup bugs
      
       - Add scripts/objdump-func helper script to disassemble a single
         function from an object file.
      
       - Rewrite scripts/faddr2line to be section-aware, by basing it on
         'readelf', moving it away from 'nm', which doesn't handle multiple
         sections well, which can result in decoding failure.
      
       - Rewrite & fix symbol handling - which had a number of bugs wrt.
         object files that don't have global symbols - which is rare but
         possible. Also fix a bunch of symbol handling bugs found along the
         way.
      
      * tag 'objtool-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (23 commits)
        objtool: Fix objtool regression on x32 systems
        objtool: Fix symbol creation
        scripts/faddr2line: Fix overlapping text section failures
        scripts: Create objdump-func helper script
        objtool: Remove libsubcmd.a when make clean
        objtool: Remove inat-tables.c when make clean
        objtool: Update documentation
        objtool: Remove --lto and --vmlinux in favor of --link
        objtool: Add HAVE_NOINSTR_VALIDATION
        objtool: Rename "VMLINUX_VALIDATION" -> "NOINSTR_VALIDATION"
        objtool: Make noinstr hacks optional
        objtool: Make jump label hack optional
        objtool: Make static call annotation optional
        objtool: Make stack validation frame-pointer-specific
        objtool: Add CONFIG_OBJTOOL
        objtool: Extricate sls from stack validation
        objtool: Rework ibt and extricate from stack validation
        objtool: Make stack validation optional
        objtool: Add option to print section addresses
        objtool: Don't print parentheses in function addresses
        ...
      22922dea
    • Linus Torvalds's avatar
      Merge tag 'locking-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2319be13
      Linus Torvalds authored
      Pull locking updates from Ingo Molnar:
      
       - rwsem cleanups & optimizations/fixes:
          - Conditionally wake waiters in reader/writer slowpaths
          - Always try to wake waiters in out_nolock path
      
       - Add try_cmpxchg64() implementation, with arch optimizations - and use
         it to micro-optimize sched_clock_{local,remote}()
      
       - Various force-inlining fixes to address objdump instrumentation-check
         warnings
      
       - Add lock contention tracepoints:
      
          lock:contention_begin
          lock:contention_end
      
       - Misc smaller fixes & cleanups
      
      * tag 'locking-core-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/clock: Use try_cmpxchg64 in sched_clock_{local,remote}
        locking/atomic/x86: Introduce arch_try_cmpxchg64
        locking/atomic: Add generic try_cmpxchg64 support
        futex: Remove a PREEMPT_RT_FULL reference.
        locking/qrwlock: Change "queue rwlock" to "queued rwlock"
        lockdep: Delete local_irq_enable_in_hardirq()
        locking/mutex: Make contention tracepoints more consistent wrt adaptive spinning
        locking: Apply contention tracepoints in the slow path
        locking: Add lock contention tracepoints
        locking/rwsem: Always try to wake waiters in out_nolock path
        locking/rwsem: Conditionally wake waiters in reader/writer slowpaths
        locking/rwsem: No need to check for handoff bit if wait queue empty
        lockdep: Fix -Wunused-parameter for _THIS_IP_
        x86/mm: Force-inline __phys_addr_nodebug()
        x86/kvm/svm: Force-inline GHCB accessors
        task_stack, x86/cea: Force-inline stack helpers
      2319be13
    • Linus Torvalds's avatar
      Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 143a6252
      Linus Torvalds authored
      Pull arm64 updates from Catalin Marinas:
      
       - Initial support for the ARMv9 Scalable Matrix Extension (SME).
      
         SME takes the approach used for vectors in SVE and extends this to
         provide architectural support for matrix operations. No KVM support
         yet, SME is disabled in guests.
      
       - Support for crashkernel reservations above ZONE_DMA via the
         'crashkernel=X,high' command line option.
      
       - btrfs search_ioctl() fix for live-lock with sub-page faults.
      
       - arm64 perf updates: support for the Hisilicon "CPA" PMU for
         monitoring coherent I/O traffic, support for Arm's CMN-650 and
         CMN-700 interconnect PMUs, minor driver fixes, kerneldoc cleanup.
      
       - Kselftest updates for SME, BTI, MTE.
      
       - Automatic generation of the system register macros from a 'sysreg'
         file describing the register bitfields.
      
       - Update the type of the function argument holding the ESR_ELx register
         value to unsigned long to match the architecture register size
         (originally 32-bit but extended since ARMv8.0).
      
       - stacktrace cleanups.
      
       - ftrace cleanups.
      
       - Miscellaneous updates, most notably: arm64-specific huge_ptep_get(),
         avoid executable mappings in kexec/hibernate code, drop TLB flushing
         from get_clear_flush() (and rename it to get_clear_contig()),
         ARCH_NR_GPIO bumped to 2048 for ARCH_APPLE.
      
      * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (145 commits)
        arm64/sysreg: Generate definitions for FAR_ELx
        arm64/sysreg: Generate definitions for DACR32_EL2
        arm64/sysreg: Generate definitions for CSSELR_EL1
        arm64/sysreg: Generate definitions for CPACR_ELx
        arm64/sysreg: Generate definitions for CONTEXTIDR_ELx
        arm64/sysreg: Generate definitions for CLIDR_EL1
        arm64/sve: Move sve_free() into SVE code section
        arm64: Kconfig.platforms: Add comments
        arm64: Kconfig: Fix indentation and add comments
        arm64: mm: avoid writable executable mappings in kexec/hibernate code
        arm64: lds: move special code sections out of kernel exec segment
        arm64/hugetlb: Implement arm64 specific huge_ptep_get()
        arm64/hugetlb: Use ptep_get() to get the pte value of a huge page
        arm64: kdump: Do not allocate crash low memory if not needed
        arm64/sve: Generate ZCR definitions
        arm64/sme: Generate defintions for SVCR
        arm64/sme: Generate SMPRI_EL1 definitions
        arm64/sme: Automatically generate SMPRIMAP_EL2 definitions
        arm64/sme: Automatically generate SMIDR_EL1 defines
        arm64/sme: Automatically generate defines for SMCR
        ...
      143a6252
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · d6edf951
      Linus Torvalds authored
      Pull ARM updates from Russell King:
      
       - amba bus updates
      
       - simplify ldr_this_cpu assembler macro for uniprocessor builds
      
       - avoid explicit assembler literal loads
      
       - more spectre-bhb improvements
      
       - add Cortex-A9 Errata 764319 workaround
      
       - add all unwind tables for modules
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: 9204/2: module: Add all unwind tables when load module
        ARM: 9206/1: A9: Add ARM ERRATA 764319 workaround (Updated)
        ARM: 9201/1: spectre-bhb: rely on linker to emit cross-section literal loads
        ARM: 9200/1: spectre-bhb: avoid cross-subsection jump using a numbered label
        ARM: 9199/1: spectre-bhb: use local DSB and elide ISB in loop8 sequence
        ARM: 9198/1: spectre-bhb: simplify BPIALL vector macro
        ARM: 9195/1: entry: avoid explicit literal loads
        ARM: 9194/1: assembler: simplify ldr_this_cpu for !SMP builds
        ARM: 9192/1: amba: fix memory leak in amba_device_try_add()
        ARM: 9193/1: amba: Add amba_read_periphid() helper
      d6edf951
    • Linus Torvalds's avatar
      Merge tag 's390-5.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 95fbef17
      Linus Torvalds authored
      Pull s390 updates from Heiko Carstens:
      
       - Make use of the IBM z16 processor activity instrumentation facility
         to count cryptography operations: add a new PMU device driver so that
         perf can make use of this.
      
       - Add new IBM z16 extended counter set to cpumf support.
      
       - Add vdso randomization support.
      
       - Add missing KCSAN instrumentation to barriers and spinlocks, which
         should make s390's KCSAN support complete.
      
       - Add support for IPL-complete-control facility: notify the hypervisor
         that kexec finished work and the kernel starts.
      
       - Improve error logging for PCI.
      
       - Various small changes to workaround llvm's integrated assembler
         limitations, and one bug, to make it finally possible to compile the
         kernel with llvm's integrated assembler. This also requires to raise
         the minimum clang version to 14.0.0.
      
       - Various other small enhancements, bug fixes, and cleanups all over
         the place.
      
      * tag 's390-5.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (48 commits)
        s390/head: get rid of 31 bit leftovers
        scripts/min-tool-version.sh: raise minimum clang version to 14.0.0 for s390
        s390/boot: do not emit debug info for assembly with llvm's IAS
        s390/boot: workaround llvm IAS bug
        s390/purgatory: workaround llvm's IAS limitations
        s390/entry: workaround llvm's IAS limitations
        s390/alternatives: remove padding generation code
        s390/alternatives: provide identical sized orginal/alternative sequences
        s390/cpumf: add new extended counter set for IBM z16
        s390/preempt: disable __preempt_count_add() optimization for PROFILE_ALL_BRANCHES
        s390/stp: clock_delta should be signed
        s390/stp: fix todoff size
        s390/pai: add support for cryptography counters
        entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()
        s390/compat: cleanup compat_linux.h header file
        s390/entry: remove broken and not needed code
        s390/boot: convert parmarea to C
        s390/boot: convert initial lowcore to C
        s390/ptrace: move short psw definitions to ptrace header file
        s390/head: initialize all new psws
        ...
      95fbef17
    • Linus Torvalds's avatar
      Merge tag 'csky-for-linus-5.19-rc1' of https://github.com/c-sky/csky-linux · 67c642e0
      Linus Torvalds authored
      Pull arch/csky updates from Guo Ren:
      
       - Three atomic optimizations
      
       - memcpy/memcpy_io optimization
      
       - Some coding conventions for Kbuild, removing warnings
      
      * tag 'csky-for-linus-5.19-rc1' of https://github.com/c-sky/csky-linux:
        csky: Move $(core-y) into arch/csky/Kbuild
        csky: Remove unused core-y for dts
        csky: Remove unused $(dtb-y) from boot/Makefile
        csky: atomic: Add conditional atomic operations' optimization
        csky: atomic: Add custom atomic.h implementation
        csky: atomic: Optimize cmpxchg with acquire & release
        csky: optimize memcpy_{from,to}io() and memset_io()
        csky: Add C based string functions
        csky: Fix versioncheck warnings
        csky: patch_text: Fixup last cpu should be master
        csky: fix typos in comments
      67c642e0
    • Linus Torvalds's avatar
      Merge tag 'm68k-for-v5.19-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · fdd8f658
      Linus Torvalds authored
      Pull m68k updates from Geert Uytterhoeven:
      
        - Introduce virtual m68k machine based on Android Goldfish devices
      
        - defconfig updates
      
        - Minor fixes and improvements
      
      * tag 'm68k-for-v5.19-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
        m68k: atari: Make Atari ROM port I/O write macros return void
        m68k: math-emu: Fix dependencies of math emulation support
        m68k: math-emu: Fix typos in comments
        m68k: Wire up syscall_trace_enter/leave for m68k
        m68k: defconfig: Update defconfigs for v5.18-rc1
        m68k: Introduce a virtual m68k machine
        clocksource/drivers: Add a goldfish-timer clocksource
        rtc: goldfish: Use gf_ioread32()/gf_iowrite32()
        tty: goldfish: Introduce gf_ioread32()/gf_iowrite32()
      fdd8f658
    • Linus Torvalds's avatar
      Merge tag 'xtensa-20220523' of https://github.com/jcmvbkbc/linux-xtensa · 17a05c8f
      Linus Torvalds authored
      Pull xtensa architecture updates from Max Filippov:
      
       - support coprocessors on SMP
      
       - support KCSAN
      
       - support handling protection faults in noMMU configurations
      
       - support using coprocessors in the kernel mode
      
       - support hibernation
      
       - enable context tracking
      
       - enable HAVE_VIRT_CPU_ACCOUNTING_GEN
      
       - support division by 0 exception on cores without HW division option
      
       - clean up locking in the ISS network driver
      
       - clean up kernel entry assemly code
      
       - various minor fixes
      
      * tag 'xtensa-20220523' of https://github.com/jcmvbkbc/linux-xtensa: (36 commits)
        xtensa: Return true/false (not 1/0) from bool function
        xtensa: improve call0 ABI probing
        xtensa: support artificial division by 0 exception
        xtensa: add trap handler for division by zero
        xtensa/simdisk: fix proc_read_simdisk()
        xtensa: no need to initialise statics to 0
        xtensa: clean up labels in the kernel entry assembly
        xtensa: don't leave invalid TLB entry in fast_store_prohibited
        xtensa: fix declaration of _SecondaryResetVector_text_*
        irqchip: irq-xtensa-mx: fix initial IRQ affinity
        xtensa: enable ARCH_HAS_DEBUG_VM_PGTABLE
        xtensa: add hibernation support
        xtensa: support coprocessors on SMP
        xtensa: get rid of stack frame in coprocessor_flush
        xtensa: merge SAVE_CP_REGS_TAB and LOAD_CP_REGS_TAB
        xtensa: add xtensa_xsr macro
        xtensa: handle coprocessor exceptions in kernel mode
        xtensa: use callx0 opcode in fast_coprocessor
        xtensa: clean up excsave1 initialization
        xtensa: clean up declarations in coprocessor.h
        ...
      17a05c8f
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.19-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · d6130604
      Linus Torvalds authored
      Pull xen updates from Juergen Gross:
      
       - decouple the PV interface from kernel internals in the Xen
         scsifront/scsiback pv drivers
      
       - harden the Xen scsifront PV driver against a malicious backend driver
      
       - simplify Xen PV frontend driver ring page setup
      
       - support Xen setups with multiple domains created at boot time to
         tolerate Xenstore coming up late
      
       - two small cleanup patches
      
      * tag 'for-linus-5.19-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: (29 commits)
        xen: add support for initializing xenstore later as HVM domain
        xen: sync xs_wire.h header with upstream xen
        x86: xen: remove STACK_FRAME_NON_STANDARD from xen_cpuid
        xen-blk{back,front}: Update contact points for buffer_squeeze_duration_ms and feature_persistent
        xen/xenbus: eliminate xenbus_grant_ring()
        xen/sndfront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/usbfront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/scsifront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/pcifront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/drmfront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/tpmfront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/netfront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/blkfront: use xenbus_setup_ring() and xenbus_teardown_ring()
        xen/xenbus: add xenbus_setup_ring() service function
        xen: update ring.h
        xen/shbuf: switch xen-front-pgdir-shbuf to use INVALID_GRANT_REF
        xen/dmabuf: switch gntdev-dmabuf to use INVALID_GRANT_REF
        xen/sound: switch xen_snd_front to use INVALID_GRANT_REF
        xen/drm: switch xen_drm_front to use INVALID_GRANT_REF
        xen/usb: switch xen-hcd to use INVALID_GRANT_REF
        ...
      d6130604
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.19-1' of... · 8443516d
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver updates from Hans de Goede:
       "This includes some small changes to kernel/stop_machine.c and arch/x86
        which are deps of the new Intel IFS support.
      
        Highlights:
      
         - New drivers:
             - Intel "In Field Scan" (IFS) support
             - Winmate FM07/FM07P buttons
             - Mellanox SN2201 support
      
         -  AMD PMC driver enhancements
      
         -  Lots of various other small fixes and hardware-id additions"
      
      * tag 'platform-drivers-x86-v5.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (54 commits)
        platform/x86/intel/ifs: Add CPU_SUP_INTEL dependency
        platform/x86: intel_cht_int33fe: Set driver data
        platform/x86: intel-hid: fix _DSM function index handling
        platform/x86: toshiba_acpi: use kobj_to_dev()
        platform/x86: samsung-laptop: use kobj_to_dev()
        platform/x86: gigabyte-wmi: Add support for Z490 AORUS ELITE AC and X570 AORUS ELITE WIFI
        tools/power/x86/intel-speed-select: Fix warning for perf_cap.cpu
        tools/power/x86/intel-speed-select: Display error on turbo mode disabled
        Documentation: In-Field Scan
        platform/x86/intel/ifs: add ABI documentation for IFS
        trace: platform/x86/intel/ifs: Add trace point to track Intel IFS operations
        platform/x86/intel/ifs: Add IFS sysfs interface
        platform/x86/intel/ifs: Add scan test support
        platform/x86/intel/ifs: Authenticate and copy to secured memory
        platform/x86/intel/ifs: Check IFS Image sanity
        platform/x86/intel/ifs: Read IFS firmware image
        platform/x86/intel/ifs: Add stub driver for In-Field Scan
        stop_machine: Add stop_core_cpuslocked() for per-core operations
        x86/msr-index: Define INTEGRITY_CAPABILITIES MSR
        x86/microcode/intel: Expose collect_cpu_info_early() for IFS
        ...
      8443516d
    • Linus Torvalds's avatar
      Merge tag 'x86_sgx_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cfe1cb01
      Linus Torvalds authored
      Pull x86 SGX updates from Dave Hansen:
       "A set of patches to prevent crashes in SGX enclaves under heavy memory
        pressure:
      
        SGX uses normal RAM allocated from special shmem files as backing
        storage when it runs out of SGX memory (EPC). The code was overly
        aggressive when freeing shmem pages and was inadvertently freeing
        perfectly good data. This resulted in failures in the SGX instructions
        used to swap data back into SGX memory.
      
        This turned out to be really hard to trigger in mainline. It was
        originally encountered testing the out-of-tree "SGX2" patches, but
        later reproduced on mainline.
      
        Fix the data loss by being more careful about truncating pages out of
        the backing storage and more judiciously setting pages dirty"
      
      * tag 'x86_sgx_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/sgx: Ensure no data in PCMD page after truncate
        x86/sgx: Fix race between reclaimer and page fault handler
        x86/sgx: Obtain backing storage page with enclave mutex held
        x86/sgx: Mark PCMD page as dirty when modifying contents
        x86/sgx: Disconnect backing page references from dirty status
      cfe1cb01
    • Linus Torvalds's avatar
      Merge tag 'x86_vdso_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d6ecaa00
      Linus Torvalds authored
      Pull x86 vdso update from Borislav Petkov:
      
       - Get rid of CONFIG_LEGACY_VSYSCALL_EMULATE as nothing should be using
         it anymore
      
      * tag 'x86_vdso_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/vsyscall: Remove CONFIG_LEGACY_VSYSCALL_EMULATE
      d6ecaa00
    • Linus Torvalds's avatar
      Merge tag 'x86_microcode_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 88699f8f
      Linus Torvalds authored
      Pull x86 microcode loader update from Borislav Petkov:
      
       - Make CPU vendor dependency explicit against random config build
         failures
      
      * tag 'x86_microcode_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/microcode: Add explicit CPU vendor dependency
      88699f8f
    • Linus Torvalds's avatar
      Merge tag 'x86_misc_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · abc8babe
      Linus Torvalds authored
      Pull misc x86 updates from Borislav Petkov:
       "A variety of fixes which don't fit any other tip bucket:
      
         - Remove unnecessary function export
      
         - Correct asm constraint
      
         - Fix __setup handlers retval"
      
      * tag 'x86_misc_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm: Cleanup the control_va_addr_alignment() __setup handler
        x86: Fix return value of __setup handlers
        x86/delay: Fix the wrong asm constraint in delay_loop()
        x86/amd_nb: Unexport amd_cache_northbridges()
      abc8babe
    • Linus Torvalds's avatar
      Merge tag 'x86_splitlock_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3e2cbc01
      Linus Torvalds authored
      Pull x86 splitlock updates from Borislav Petkov:
      
       - Add Raptor Lake to the set of CPU models which support splitlock
      
       - Make life miserable for apps using split locks by slowing them down
         considerably while the rest of the system remains responsive. The
         hope is it will hurt more and people will really fix their misaligned
         locks apps. As a result, free a TIF bit.
      
      * tag 'x86_splitlock_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/split_lock: Enable the split lock feature on Raptor Lake
        x86/split-lock: Remove unused TIF_SLD bit
        x86/split_lock: Make life miserable for split lockers
      3e2cbc01
    • Linus Torvalds's avatar
      Merge tag 'x86_apic_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 91665420
      Linus Torvalds authored
      Pull x86 APIC updates from Borislav Petkov:
      
       - Always do default APIC routing setup so that cpumasks are properly
         allocated and are present when later accessed ("nosmp" and x2APIC)
      
       - Clarify the bit overlap between an old APIC and a modern, integrated
         one
      
      * tag 'x86_apic_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apic: Do apic driver probe for "nosmp" use case
        x86/apic: Clarify i82489DX bit overlap in APIC_LVT0
      91665420
    • Linus Torvalds's avatar
      Merge tag 'x86_kdump_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e3228a86
      Linus Torvalds authored
      Pull x86 kdump fixlet from Borislav Petkov:
      
       - A single debug message fix
      
      * tag 'x86_kdump_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/crash: Fix minor typo/bug in debug message
      e3228a86
    • Linus Torvalds's avatar
      Merge tag 'x86_platform_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1abcb10d
      Linus Torvalds authored
      Pull x86 platform updates from Borislav Petkov:
      
       - A couple of changes enabling SGI UV5 support
      
      * tag 'x86_platform_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/platform/uv: Log gap hole end size
        x86/platform/uv: Update TSC sync state for UV5
        x86/platform/uv: Update NMI Handler for UV5
      1abcb10d
    • Linus Torvalds's avatar
      Merge tag 'x86_mm_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c415b53a
      Linus Torvalds authored
      Pull x86 mm fixlet from Borislav Petkov:
      
       - A sparse address space annotation fix
      
      * tag 'x86_mm_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/fault: Cast an argument to the proper address space in prefetch()
      c415b53a
    • Linus Torvalds's avatar
      Merge tag 'x86_fpu_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e36ae229
      Linus Torvalds authored
      Pull x86 fpu updates from Borislav Petkov:
      
       - Add support for XSAVEC - the Compacted XSTATE saving variant - and
         thus allow for guests to use this compacted XSTATE variant when the
         hypervisor exports that support
      
       - A variable shadowing cleanup
      
      * tag 'x86_fpu_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/fpu: Cleanup variable shadowing
        x86/fpu/xsave: Support XSAVEC in the kernel
      e36ae229