1. 08 Aug, 2022 26 commits
    • Linus Torvalds's avatar
      Merge tag 'rproc-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 5d5d353b
      Linus Torvalds authored
      Pull remoteproc updates from Bjorn Andersson:
       "This introduces support for the remoteproc on Mediatek MT8188, and
        enables caches for MT8186 SCP. It adds support for PRU cores found on
        the TI K3 AM62x SoCs.
      
        It moves the recovery work after a firmware crash to an unbound
        workqueue, to allow recovery to happen in parallel.
      
        A new DMA API is introduced to release dma_mem for a device.
      
        It adds support a panic handler for the Qualcomm modem remoteproc,
        with the goal of having caches flushed in memory dumps for post-mortem
        debugging and it introduces a mechanism to wait for the modem firmware
        on SM8450 to decrypt part of its memory for post-mortem debugging.
      
        Qualcomm sysmon is restricted to only inform remote processors about
        peers that are actually running, to avoid a race where Linux tries to
        notify a recovering remote processor about its peers new state. A
        mechanism for waiting for the sysmon connection to be established is
        also introduced, to avoid out-of-sync updates for rapidly restarting
        remote processors.
      
        A number of Devicetree binding cleanups and conversions to YAML are
        introduced, to facilitate Devicetree validation. Lastly it introduces
        a number of smaller fixes and cleanups in the core and a few different
        drivers"
      
      * tag 'rproc-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: (42 commits)
        remoteproc: qcom_q6v5_pas: Do not fail if regulators are not found
        drivers/remoteproc: fix repeated words in comments
        remoteproc: Directly use ida_alloc()/free()
        remoteproc: Use unbounded workqueue for recovery work
        remoteproc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
        remoteproc: qcom_q6v5_pas: Deal silently with optional px and cx regulators
        remoteproc: sysmon: Send sysmon state only for running rprocs
        remoteproc: sysmon: Wait for SSCTL service to come up
        remoteproc: qcom: q6v5: Set q6 state to offline on receiving wdog irq
        remoteproc: qcom: pas: Check if coredump is enabled
        remoteproc: qcom: pas: Mark devices as wakeup capable
        remoteproc: qcom: pas: Mark va as io memory
        remoteproc: qcom: pas: Add decrypt shutdown support for modem
        remoteproc: qcom: q6v5-mss: add powerdomains to MSM8996 config
        remoteproc: qcom_q6v5: Introduce panic handler for MSS
        remoteproc: qcom_q6v5_mss: Update MBA log info
        remoteproc: qcom: correct kerneldoc
        remoteproc: qcom_q6v5_mss: map/unmap metadata region before/after use
        remoteproc: qcom: using pm_runtime_resume_and_get to simplify the code
        remoteproc: mediatek: Support MT8188 SCP
        ...
      5d5d353b
    • Linus Torvalds's avatar
      Merge tag 'rpmsg-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · c7268761
      Linus Torvalds authored
      Pull rpmsg updates from Bjorn Andersson:
       "This contains fixes and cleanups in the rpmsg core, Qualcomm SMD and
        GLINK drivers, a circular lock dependency in the Mediatek driver and
        a possible race condition in the rpmsg_char driver is resolved"
      
      * tag 'rpmsg-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        rpmsg: convert sysfs snprintf to sysfs_emit
        rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge
        rpmsg: qcom: correct kerneldoc
        rpmsg: qcom: glink: remove unused name
        rpmsg: qcom: glink: replace strncpy() with strscpy_pad()
        rpmsg: Strcpy is not safe, use strscpy_pad() instead
        rpmsg: Fix possible refcount leak in rpmsg_register_device_override()
        rpmsg: Fix parameter naming for announce_create/destroy ops
        rpmsg: mtk_rpmsg: Fix circular locking dependency
        rpmsg: char: Add mutex protection for rpmsg_eptdev_open()
      c7268761
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.20-rc1' of git://www.linux-watchdog.org/linux-watchdog · e6cc0b56
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - add RTL9310 support
      
       - sp805_wdt: add arm cmsdk apb wdt support
      
       - Remove #ifdef guards for PM related functions for several watchdog
         device drivers
      
       - pm8916_wdt reboot improvements
      
       - Several other fixes and improvements
      
      * tag 'linux-watchdog-5.20-rc1' of git://www.linux-watchdog.org/linux-watchdog: (24 commits)
        watchdog: armada_37xx_wdt: check the return value of devm_ioremap() in armada_37xx_wdt_probe()
        watchdog: dw_wdt: Fix comment typo
        watchdog: Fix comment typo
        dt-bindings: watchdog: Add fsl,scu-wdt yaml file
        watchdog:Fix typo in comment
        watchdog: pm8916_wdt: Handle watchdog enabled by bootloader
        watchdog: pm8916_wdt: Report reboot reason
        watchdog: pm8916_wdt: Avoid read of write-only PET register
        watchdog: wdat_wdt: Remove #ifdef guards for PM related functions
        watchdog: tegra_wdt: Remove #ifdef guards for PM related functions
        watchdog: st_lpc_wdt: Remove #ifdef guards for PM related functions
        watchdog: sama5d4_wdt: Remove #ifdef guards for PM related functions
        watchdog: s3c2410_wdt: Remove #ifdef guards for PM related functions
        watchdog: mtk_wdt: Remove #ifdef guards for PM related functions
        watchdog: dw_wdt: Remove #ifdef guards for PM related functions
        watchdog: bcm7038_wdt: Remove #ifdef guards for PM related functions
        watchdog: realtek-otto: add RTL9310 support
        dt-bindings: watchdog: realtek,otto-wdt: add RTL9310
        watchdog: sp805_wdt: add arm cmsdk apb wdt support
        watchdog: sp5100_tco: Fix a memory leak of EFCH MMIO resource
        ...
      e6cc0b56
    • Linus Torvalds's avatar
      Merge tag 'pm-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 507f811f
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These are ARM cpufreq updates and operating performance points (OPP)
        updates plus one cpuidle update adding a new trace point.
      
        Specifics:
      
         - Fix return error code in mtk_cpu_dvfs_info_init (Yang Yingliang).
      
         - Minor cleanups and support for new boards for Qcom cpufreq drivers
           (Bryan O'Donoghue, Konrad Dybcio, Pierre Gondois, and Yicong Yang).
      
         - Fix sparse warnings for Tegra cpufreq driver (Viresh Kumar).
      
         - Make dev_pm_opp_set_regulators() accept NULL terminated list
           (Viresh Kumar).
      
         - Add dev_pm_opp_set_config() and friends and migrate other users and
           helpers to using them (Viresh Kumar).
      
         - Add support for multiple clocks for a device (Viresh Kumar and
           Krzysztof Kozlowski).
      
         - Configure resources before adding OPP table for Venus (Stanimir
           Varbanov).
      
         - Keep reference count up for opp->np and opp_table->np while they
           are still in use (Liang He).
      
         - Minor OPP cleanups (Viresh Kumar and Yang Li).
      
         - Add a trace event for cpuidle to track missed (too deep or too
           shallow) wakeups (Kajetan Puchalski)"
      
      * tag 'pm-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (55 commits)
        cpuidle: Add cpu_idle_miss trace event
        venus: pm_helpers: Fix warning in OPP during probe
        OPP: Don't drop opp->np reference while it is still in use
        OPP: Don't drop opp_table->np reference while it is still in use
        cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances
        dt-bindings: cpufreq: cpufreq-qcom-hw: Add SM6375 compatible
        dt-bindings: opp: Add msm8939 to the compatible list
        dt-bindings: opp: Add missing compat devices
        dt-bindings: opp: opp-v2-kryo-cpu: Fix example binding checks
        cpufreq: Change order of online() CB and policy->cpus modification
        cpufreq: qcom-hw: Remove deprecated irq_set_affinity_hint() call
        cpufreq: qcom-hw: Disable LMH irq when disabling policy
        cpufreq: qcom-hw: Reset cancel_throttle when policy is re-enabled
        cpufreq: qcom-cpufreq-hw: use HZ_PER_KHZ macro in units.h
        cpufreq: mediatek: fix error return code in mtk_cpu_dvfs_info_init()
        OPP: Remove dev{m}_pm_opp_of_add_table_noclk()
        PM / devfreq: tegra30: Register config_clks helper
        OPP: Allow config_clks helper for single clk case
        OPP: Provide a simple implementation to configure multiple clocks
        OPP: Assert clk_count == 1 for single clk helpers
        ...
      507f811f
    • Linus Torvalds's avatar
      Merge tag 'thermal-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 033c88d5
      Linus Torvalds authored
      Pull more thermal control updates from Rafael Wysocki:
       "These fix an error code path issue leading to a NULL pointer
        dereference, drop Kconfig dependencies that are not needed any more
        after recent changes, add CPU IDs for new chips to a driver and fix up
        the tmon utility.
      
        Specifics:
      
         - Fix NULL pointer dereference in the thermal sysfs interface that
           results from an error code path mishandling (Rafael Wysocki).
      
         - Drop COMPILE_TEST dependency that's not needed any more from two
           thermal Kconfig entries (Jean Delvare).
      
         - Make the Intel TCC cooling driver support Alder Lake-N and Raptor
           Lake-P (Sumeet Pawnikar).
      
         - Fix possible path truncations in the tmon utility (Florian
           Fainelli)"
      
      * tag 'thermal-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        tools/thermal: Fix possible path truncations
        thermal: Drop obsolete dependency on COMPILE_TEST
        thermal: sysfs: Fix cooling_device_stats_setup() error code path
        thermal: intel: Add TCC cooling support for Alder Lake-N and Raptor Lake-P
      033c88d5
    • Linus Torvalds's avatar
      Merge tag 'sysctl-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · d5af75f7
      Linus Torvalds authored
      Pull sysctl updates from Luis Chamberlain:
       "There isn't much for 6.0 for sysctl stuff, most of the stuff went
        through the networking subsystem (Kuniyuki Iwashima's trove of fixes
        using READ_ONCE/WRITE_ONCE helpers) as most of the issues there have
        been identified on networking side. So it is good we don't have much
        updates as we would have ended up with tons of conflicts. I rebased my
        delta just now to your tree so to avoid conflicts with that stuff.
        This merge request is just minor fluff cleanups then. Perhaps for 6.1
        kernel/sysctl.c will get more love than this release"
      
      * tag 'sysctl-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        kernel/sysctl.c: Remove trailing white space
        kernel/sysctl.c: Clean up indentation, replace spaces with tab.
        sysctl: Merge adjacent CONFIG_TREE_RCU blocks
      d5af75f7
    • Linus Torvalds's avatar
      Merge tag 'modules-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · e74acdf5
      Linus Torvalds authored
      Pull module updates from Luis Chamberlain:
       "For the 6.0 merge window the modules code shifts to cleanup and minor
        fixes effort. This becomes much easier to do and review now due to the
        code split to its own directory from effort on the last kernel
        release. I expect to see more of this with time and as we expand on
        test coverage in the future. The cleanups and fixes come from usual
        suspects such as Christophe Leroy and Aaron Tomlin but there are also
        some other contributors.
      
        One particular minor fix worth mentioning is from Helge Deller, where
        he spotted a *forever* incorrect natural alignment on both ELF section
        header tables:
      
          * .altinstructions
          * __bug_table sections
      
        A lot of back and forth went on in trying to determine the ill effects
        of this misalignment being present for years and it has been
        determined there should be no real ill effects unless you have a buggy
        exception handler. Helge actually hit one of these buggy exception
        handlers on parisc which is how he ended up spotting this issue. When
        implemented correctly these paths with incorrect misalignment would
        just mean a performance penalty, but given that we are dealing with
        alternatives on modules and with the __bug_table (where info regardign
        BUG()/WARN() file/line information associated with it is stored) this
        really shouldn't be a big deal.
      
        The only other change with mentioning is the kmap() with
        kmap_local_page() and my only concern with that was on what is done
        after preemption, but the virtual addresses are restored after
        preemption. This is only used on module decompression.
      
        This all has sit on linux-next for a while except the kmap stuff which
        has been there for 3 weeks"
      
      * tag 'modules-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        module: Replace kmap() with kmap_local_page()
        module: Show the last unloaded module's taint flag(s)
        module: Use strscpy() for last_unloaded_module
        module: Modify module_flags() to accept show_state argument
        module: Move module's Kconfig items in kernel/module/
        MAINTAINERS: Update file list for module maintainers
        module: Use vzalloc() instead of vmalloc()/memset(0)
        modules: Ensure natural alignment for .altinstructions and __bug_table sections
        module: Increase readability of module_kallsyms_lookup_name()
        module: Fix ERRORs reported by checkpatch.pl
        module: Add support for default value for module async_probe
      e74acdf5
    • Linus Torvalds's avatar
      Merge tag 'leds-5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds · c8a684e2
      Linus Torvalds authored
      Pull LED updates from Pavel Machek:
       "A new driver for bcm63138, is31fl319x updates, fixups for multicolor.
      
        The clevo-mail driver got disabled, it needs an API fix"
      
      * tag 'leds-5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds: (23 commits)
        leds: is31fl319x: use simple i2c probe function
        leds: is31fl319x: Fix devm vs. non-devm ordering
        leds: is31fl319x: Make use of dev_err_probe()
        leds: is31fl319x: Make use of device properties
        leds: is31fl319x: Cleanup formatting and dev_dbg calls
        leds: is31fl319x: Add support for is31fl319{0,1,3} chips
        leds: is31fl319x: Move chipset-specific values in chipdef struct
        leds: is31fl319x: Use non-wildcard names for vars, structs and defines
        leds: is31fl319x: Add missing si-en compatibles
        dt-bindings: leds: pwm-multicolor: document max-brigthness
        leds: turris-omnia: convert to use dev_groups
        leds: leds-bcm63138: get rid of LED_OFF
        leds: add help info about BCM63138 module name
        dt-bindings: leds: leds-bcm63138: unify full stops in descriptions
        dt-bindings: leds: lp50xx: fix LED children names
        dt-bindings: leds: class-multicolor: reference class directly in multi-led node
        leds: bcm63138: add support for BCM63138 controller
        dt-bindings: leds: add Broadcom's BCM63138 controller
        leds: clevo-mail: Mark as broken pending interface fix
        leds: pwm-multicolor: Support active-low LEDs
        ...
      c8a684e2
    • Linus Torvalds's avatar
      Merge tag 'tty-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 607ca0f7
      Linus Torvalds authored
      Pull tty / serial driver updates from Greg KH:
       "Here is the big set of tty and serial driver changes for 6.0-rc1.
      
        It was delayed from last week as I wanted to make sure the last commit
        here got some good testing in linux-next and elsewhere as it seemed to
        show up only late in testing for some reason.
      
        Nothing major here, just lots of cleanups from Jiri and Ilpo to make
        the tty core cleaner (Jiri) and the rs485 code simpler to use (Ilpo).
      
        Also included in here is the obligatory n_gsm updates from Daniel
        Starke and lots of tiny driver updates and minor fixes and tweaks for
        other smaller serial drivers.
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'tty-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (186 commits)
        tty: serial: qcom-geni-serial: Fix %lu -> %u in print statements
        tty: amiserial: Fix comment typo
        tty: serial: document uart_get_console()
        tty: serial: serial_core, reformat kernel-doc for functions
        Documentation: serial: link uart_ops properly
        Documentation: serial: move GPIO kernel-doc to the functions
        Documentation: serial: dedup kernel-doc for uart functions
        Documentation: serial: move uart_ops documentation to the struct
        dt-bindings: serial: snps-dw-apb-uart: Document Rockchip RV1126
        serial: mvebu-uart: uart2 error bits clearing
        tty: serial: fsl_lpuart: correct the count of break characters
        serial: stm32: make info structs static to avoid sparse warnings
        serial: fsl_lpuart: zero out parity bit in CS7 mode
        tty: serial: qcom-geni-serial: Fix get_clk_div_rate() which otherwise could return a sub-optimal clock rate.
        serial: 8250_bcm2835aux: Add missing clk_disable_unprepare()
        tty: vt: initialize unicode screen buffer
        serial: remove VR41XX serial driver
        serial: 8250: lpc18xx: Remove redundant sanity check for RS485 flags
        serial: 8250_dwlib: remove redundant sanity check for RS485 flags
        dt_bindings: rs485: Correct delay values
        ...
      607ca0f7
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 1daf117f
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this cycle, we mainly fixed some corner cases that manipulate a
        per-file compression flag inappropriately. And, we found f2fs counted
        valid blocks in a section incorrectly when zone capacity is set, and
        thus, fixed it with additional sysfs entry to check it easily.
      
        Lastly, this series includes several patches with respect to the new
        atomic write support such as a couple of bug fixes and re-adding
        atomic_write_abort support that we removed by mistake in the previous
        release.
      
        Enhancements:
         - add sysfs entries to understand atomic write operations and zone
           capacity
         - introduce memory mode to get a hint for low-memory devices
         - adjust the waiting time of foreground GC
         - decompress clusters under softirq to avoid non-deterministic
           latency
         - do not skip updating inode when retrying to flush node page
         - enforce single zone capacity
      
        Bug fixes:
         - set the compression/no-compression flags correctly
         - revive F2FS_IOC_ABORT_VOLATILE_WRITE
         - check inline_data during compressed inode conversion
         - understand zone capacity when calculating valid block count
      
        As usual, the series includes several minor clean-ups and sanity
        checks"
      
      * tag 'f2fs-for-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (29 commits)
        f2fs: use onstack pages instead of pvec
        f2fs: intorduce f2fs_all_cluster_page_ready
        f2fs: clean up f2fs_abort_atomic_write()
        f2fs: handle decompress only post processing in softirq
        f2fs: do not allow to decompress files have FI_COMPRESS_RELEASED
        f2fs: do not set compression bit if kernel doesn't support
        f2fs: remove device type check for direct IO
        f2fs: fix null-ptr-deref in f2fs_get_dnode_of_data
        f2fs: revive F2FS_IOC_ABORT_VOLATILE_WRITE
        f2fs: fix to do sanity check on segment type in build_sit_entries()
        f2fs: obsolete unused MAX_DISCARD_BLOCKS
        f2fs: fix to avoid use f2fs_bug_on() in f2fs_new_node_page()
        f2fs: fix to remove F2FS_COMPR_FL and tag F2FS_NOCOMP_FL at the same time
        f2fs: introduce sysfs atomic write statistics
        f2fs: don't bother wait_ms by foreground gc
        f2fs: invalidate meta pages only for post_read required inode
        f2fs: allow compression of files without blocks
        f2fs: fix to check inline_data during compressed inode conversion
        f2fs: Delete f2fs_copy_page() and replace with memcpy_page()
        f2fs: fix to invalidate META_MAPPING before DIO write
        ...
      1daf117f
    • Linus Torvalds's avatar
      Merge tag 'fuse-update-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · 2bd5d41e
      Linus Torvalds authored
      Pull fuse updates from Miklos Szeredi:
      
       - Fix an issue with reusing the bdi in case of block based filesystems
      
       - Allow root (in init namespace) to access fuse filesystems in user
         namespaces if expicitly enabled with a module param
      
       - Misc fixes
      
      * tag 'fuse-update-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        fuse: retire block-device-based superblock on force unmount
        vfs: function to prevent re-use of block-device-based superblocks
        virtio_fs: Modify format for virtio_fs_direct_access
        virtiofs: delete unused parameter for virtio_fs_cleanup_vqs
        fuse: Add module param for CAP_SYS_ADMIN access bypassing allow_other
        fuse: Remove the control interface for virtio-fs
        fuse: ioctl: translate ENOSYS
        fuse: limit nsec
        fuse: avoid unnecessary spinlock bump
        fuse: fix deadlock between atomic O_TRUNC and page invalidation
        fuse: write inode in fuse_release()
      2bd5d41e
    • Linus Torvalds's avatar
      Merge tag 'ovl-update-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · 65512eb0
      Linus Torvalds authored
      Pull overlayfs update from Miklos Szeredi:
       "Just a small update"
      
      * tag 'ovl-update-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: fix spelling mistakes
        ovl: drop WARN_ON() dentry is NULL in ovl_encode_fh()
        ovl: improve ovl_get_acl() if POSIX ACL support is off
        ovl: fix some kernel-doc comments
        ovl: warn if trusted xattr creation fails
      65512eb0
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · f72fb74b
      Linus Torvalds authored
      Pull exfat updates from Namjae Jeon:
      
       - fix the error code of rename syscall
      
       - cleanup and suppress the superfluous error messages
      
       - remove duplicate directory entry update
      
       - add exfat git tree in MAINTAINERS
      
      * tag 'exfat-for-5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        MAINTAINERS: Add Namjae's exfat git tree
        exfat: Drop superfluous new line for error messages
        exfat: Downgrade ENAMETOOLONG error message to debug messages
        exfat: Expand exfat_err() and co directly to pr_*() macro
        exfat: Define NLS_NAME_* as bit flags explicitly
        exfat: Return ENAMETOOLONG consistently for oversized paths
        exfat: remove duplicate write inode for extending dir/file
        exfat: remove duplicate write inode for truncating file
        exfat: reuse __exfat_write_inode() to update directory entry
      f72fb74b
    • David Howells's avatar
      vfs: Check the truncate maximum size in inode_newsize_ok() · e2ebff9c
      David Howells authored
      If something manages to set the maximum file size to MAX_OFFSET+1, this
      can cause the xfs and ext4 filesystems at least to become corrupt.
      
      Ordinarily, the kernel protects against userspace trying this by
      checking the value early in the truncate() and ftruncate() system calls
      calls - but there are at least two places that this check is bypassed:
      
       (1) Cachefiles will round up the EOF of the backing file to DIO block
           size so as to allow DIO on the final block - but this might push
           the offset negative. It then calls notify_change(), but this
           inadvertently bypasses the checking. This can be triggered if
           someone puts an 8EiB-1 file on a server for someone else to try and
           access by, say, nfs.
      
       (2) ksmbd doesn't check the value it is given in set_end_of_file_info()
           and then calls vfs_truncate() directly - which also bypasses the
           check.
      
      In both cases, it is potentially possible for a network filesystem to
      cause a disk filesystem to be corrupted: cachefiles in the client's
      cache filesystem; ksmbd in the server's filesystem.
      
      nfsd is okay as it checks the value, but we can then remove this check
      too.
      
      Fix this by adding a check to inode_newsize_ok(), as called from
      setattr_prepare(), thereby catching the issue as filesystems set up to
      perform the truncate with minimal opportunity for bypassing the new
      check.
      
      Fixes: 1f08c925 ("cachefiles: Implement backing file wrangling")
      Fixes: f4415848 ("cifsd: add file operations")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reported-by: default avatarJeff Layton <jlayton@kernel.org>
      Tested-by: default avatarJeff Layton <jlayton@kernel.org>
      Reviewed-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Cc: stable@kernel.org
      Acked-by: default avatarAlexander Viro <viro@zeniv.linux.org.uk>
      cc: Steve French <sfrench@samba.org>
      cc: Hyunchul Lee <hyc.lee@gmail.com>
      cc: Chuck Lever <chuck.lever@oracle.com>
      cc: Dave Wysochanski <dwysocha@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e2ebff9c
    • Rafael J. Wysocki's avatar
      Merge branches 'thermal-core' and 'thermal-tools' · 7f0169cd
      Rafael J. Wysocki authored
      Merge additional changes in the thermal core and thermal tools updates
      for 5.20-rc1:
      
       - Fix NULL poiter dereference in the thermal sysfs interface that
         results from an error code path mishandling (Rafael Wysocki).
      
       - Drop COMPILE_TEST dependency that's not needed any more from two
         thermal Kconfig entries (Jean Delvare).
      
       - Fix possible path truncations in the tmon utility (Florian Fainelli).
      
      * thermal-core:
        thermal: Drop obsolete dependency on COMPILE_TEST
        thermal: sysfs: Fix cooling_device_stats_setup() error code path
      
      * thermal-tools:
        tools/thermal: Fix possible path truncations
      7f0169cd
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · c3f834df
      Rafael J. Wysocki authored
      Merge ARM cpufreq updates for 5.20-rc1.
      
      * pm-cpufreq:
        cpufreq: tegra194: Staticize struct tegra_cpufreq_soc instances
        dt-bindings: cpufreq: cpufreq-qcom-hw: Add SM6375 compatible
        dt-bindings: opp: Add msm8939 to the compatible list
        dt-bindings: opp: Add missing compat devices
        dt-bindings: opp: opp-v2-kryo-cpu: Fix example binding checks
        cpufreq: Change order of online() CB and policy->cpus modification
        cpufreq: qcom-hw: Remove deprecated irq_set_affinity_hint() call
        cpufreq: qcom-hw: Disable LMH irq when disabling policy
        cpufreq: qcom-hw: Reset cancel_throttle when policy is re-enabled
        cpufreq: qcom-cpufreq-hw: use HZ_PER_KHZ macro in units.h
        cpufreq: mediatek: fix error return code in mtk_cpu_dvfs_info_init()
      c3f834df
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · c4f5a40b
      Rafael J. Wysocki authored
      Merge operating performance points (OPP) updates for 5.20-rc1.
      
      * pm-opp: (43 commits)
        venus: pm_helpers: Fix warning in OPP during probe
        OPP: Don't drop opp->np reference while it is still in use
        OPP: Don't drop opp_table->np reference while it is still in use
        OPP: Remove dev{m}_pm_opp_of_add_table_noclk()
        PM / devfreq: tegra30: Register config_clks helper
        OPP: Allow config_clks helper for single clk case
        OPP: Provide a simple implementation to configure multiple clocks
        OPP: Assert clk_count == 1 for single clk helpers
        OPP: Add key specific assert() method to key finding helpers
        OPP: Compare bandwidths for all paths in _opp_compare_key()
        OPP: Allow multiple clocks for a device
        dt-bindings: opp: accept array of frequencies
        OPP: Make dev_pm_opp_set_opp() independent of frequency
        OPP: Reuse _opp_compare_key() in _opp_add_static_v2()
        OPP: Remove rate_not_available parameter to _opp_add()
        OPP: Use consistent names for OPP table instances
        OPP: Use generic key finding helpers for bandwidth key
        OPP: Use generic key finding helpers for level key
        OPP: Add generic key finding helpers and use them for freq APIs
        OPP: Remove dev_pm_opp_find_freq_ceil_by_volt()
        ...
      c4f5a40b
    • Linus Torvalds's avatar
      Merge tag 'hwlock-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux · 3466f49d
      Linus Torvalds authored
      Pull hwspinlock updates from Bjorn Andersson:
       "This removes the need for representing the Qualcomm SFPB mutex using
        an intermediate syscon node and it clean up the pm_runtime_get_sync()
        usage in the OMAP hwspinlock driver"
      
      * tag 'hwlock-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
        hwspinlock: qcom: Add support for mmio usage to sfpb-mutex
        hwspinlock: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
      3466f49d
    • Linus Torvalds's avatar
      Merge tag 'mailbox-v5.20' of git://git.linaro.org/landing-teams/working/fujitsu/integration · 92ceebf9
      Linus Torvalds authored
      Pull mailbox updates from Jassi Brar:
      
       - mtk:
           - use rx_callback instead of cmdq_task_cb
      
       - qcom:
           - add syscon const
           - add SM6375 compatible
      
       - imx:
           - enable RST channel
           - clear pending irqs
      
      * tag 'mailbox-v5.20' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
        mailbox: imx: clear pending interrupts
        dt-bindings: mailbox: qcom-ipcc: Add SM6375 compatible
        mailbox: imx: support RST channel
        dt-bindings: mailbox: imx-mu: add RST channel
        dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries
        mailbox: mtk-cmdq: Remove proprietary cmdq_task_cb
      92ceebf9
    • Linus Torvalds's avatar
      Merge tag 'hyperv-next-signed-20220807' of... · df7a456e
      Linus Torvalds authored
      Merge tag 'hyperv-next-signed-20220807' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
      
      Pull hyperv updates from Wei Liu:
       "A few miscellaneous patches. There is no large patch series for this
        merge window"
      
      * tag 'hyperv-next-signed-20220807' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
        Drivers: hv: Create debugfs file with hyper-v balloon usage information
        drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size
        PCI: hv: Take a const cpumask in hv_compose_msi_req_get_cpu()
        Drivers: hv: vm_bus: Handle vmbus rescind calls after vmbus is suspended
      df7a456e
    • Linus Torvalds's avatar
      Merge tag 'coccinelle-for-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux · cab9de71
      Linus Torvalds authored
      Pull coccinelle semantic patch updates from Julia Lawall:
      
       - Update the semantic patches in the kernel that contain a URL for
         Coccinelle with a URL that is currently valid (from myself).
      
       - Add a semantic patch checking for unnecessary NULL tests on dev_{put,
         hold} functions (from Ziyang Xuan, followed bt a modification from
         myself).
      
       - Drop a semantic patch that replaces 0/1 by booleans, as this change
         was considered to be not worthwhile by some maintainers (from Steve
         Rostedt).
      
       - Extend an existing semantic patch with more checks for useless tests
         on variables addresses (from Jérémy Lefaure).
      
      * tag 'coccinelle-for-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
        update Coccinelle URL
        coccinelle: free: add version constraint
        scripts/coccinelle/free: add NULL test before dev_{put, hold} functions
        coccinelle: Remove script that checks replacing 0/1 with false/true in functions returning bool
        coccinelle: Extend address test from ifaddr semantic patch to test expressions
      cab9de71
    • Fanjun Kong's avatar
      kernel/sysctl.c: Remove trailing white space · 374a723c
      Fanjun Kong authored
      This patch removes the trailing white space in kernel/sysysctl.c
      Signed-off-by: default avatarFanjun Kong <bh1scw@gmail.com>
      Reviewed-by: default avatarMuchun Song <songmuchun@bytedance.com>
      [mcgrof: fix commit message subject]
      Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
      374a723c
    • Fanjun Kong's avatar
      kernel/sysctl.c: Clean up indentation, replace spaces with tab. · 5bfd5d3e
      Fanjun Kong authored
      This patch fixes two coding style issues:
      1. Clean up indentation, replace spaces with tab
      2. Add space after ','
      Signed-off-by: default avatarFanjun Kong <bh1scw@gmail.com>
      Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
      5bfd5d3e
    • Geert Uytterhoeven's avatar
      sysctl: Merge adjacent CONFIG_TREE_RCU blocks · 7251ceb5
      Geert Uytterhoeven authored
      There are two adjacent sysctl entries protected by the same
      CONFIG_TREE_RCU config symbol.  Merge them into a single block to
      improve readability.
      
      Use the more common "#ifdef" form while at it.
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
      7251ceb5
    • Manivannan Sadhasivam's avatar
      remoteproc: qcom_q6v5_pas: Do not fail if regulators are not found · 8447d0e7
      Manivannan Sadhasivam authored
      devm_regulator_get_optional() API will return -ENODEV if the regulator was
      not found. For the optional supplies CX, PX we should not fail in that case
      but rather continue. So let's catch that error and continue silently if
      those regulators are not found.
      
      The commit 3f52d118 ("remoteproc: qcom_q6v5_pas: Deal silently with
      optional px and cx regulators") was supposed to do the same but it missed
      the fact that devm_regulator_get_optional() API returns -ENODEV when the
      regulator was not found.
      
      Cc: Abel Vesa <abel.vesa@linaro.org>
      Fixes: 3f52d118 ("remoteproc: qcom_q6v5_pas: Deal silently with optional px and cx regulators")
      Reported-by: default avatarSteev Klimaszewski <steev@kali.org>
      Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
      Reviewed-by: default avatarJohan Hovold <johan+linaro@kernel.org>
      Tested-by: default avatarSteev Klimaszewski <steev@kali.org>
      Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
      Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
      Link: https://lore.kernel.org/r/20220801053939.12556-1-manivannan.sadhasivam@linaro.org
      8447d0e7
    • Linus Torvalds's avatar
      Merge tag 'bitmap-6.0-rc1' of https://github.com/norov/linux · 4e23eeeb
      Linus Torvalds authored
      Pull bitmap updates from Yury Norov:
      
       - fix the duplicated comments on bitmap_to_arr64() (Qu Wenruo)
      
       - optimize out non-atomic bitops on compile-time constants (Alexander
         Lobakin)
      
       - cleanup bitmap-related headers (Yury Norov)
      
       - x86/olpc: fix 'logical not is only applied to the left hand side'
         (Alexander Lobakin)
      
       - lib/nodemask: inline wrappers around bitmap (Yury Norov)
      
      * tag 'bitmap-6.0-rc1' of https://github.com/norov/linux: (26 commits)
        lib/nodemask: inline next_node_in() and node_random()
        powerpc: drop dependency on <asm/machdep.h> in archrandom.h
        x86/olpc: fix 'logical not is only applied to the left hand side'
        lib/cpumask: move some one-line wrappers to header file
        headers/deps: mm: align MANITAINERS and Docs with new gfp.h structure
        headers/deps: mm: Split <linux/gfp_types.h> out of <linux/gfp.h>
        headers/deps: mm: Optimize <linux/gfp.h> header dependencies
        lib/cpumask: move trivial wrappers around find_bit to the header
        lib/cpumask: change return types to unsigned where appropriate
        cpumask: change return types to bool where appropriate
        lib/bitmap: change type of bitmap_weight to unsigned long
        lib/bitmap: change return types to bool where appropriate
        arm: align find_bit declarations with generic kernel
        iommu/vt-d: avoid invalid memory access via node_online(NUMA_NO_NODE)
        lib/test_bitmap: test the tail after bitmap_to_arr64()
        lib/bitmap: fix off-by-one in bitmap_to_arr64()
        lib: test_bitmap: add compile-time optimization/evaluations assertions
        bitmap: don't assume compiler evaluates small mem*() builtins calls
        net/ice: fix initializing the bitmap in the switch code
        bitops: let optimize out non-atomic bitops on compile-time constants
        ...
      4e23eeeb
  2. 07 Aug, 2022 9 commits
    • Julia Lawall's avatar
      update Coccinelle URL · f01701ce
      Julia Lawall authored
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      f01701ce
    • Julia Lawall's avatar
      coccinelle: free: add version constraint · 18c06cf8
      Julia Lawall authored
      The various functions contain a NULL check starting in v5.15.
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
      18c06cf8
    • Linus Torvalds's avatar
      Merge tag '5.20-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6 · 3bc1bc0b
      Linus Torvalds authored
      Pull cifs updates from Steve French:
       "Mostly cleanup, including smb1 refactoring:
      
         - multichannel perf improvement
      
         - move additional SMB1 code to not be compiled in when legacy support
           is disabled.
      
         - bug fixes, including one important one for memory leak
      
         - various cleanup patches
      
        We are still working on and testing some deferred close improvements
        including an important lease break fix for case when multiple deferred
        closes are still open, and also some additional perf improvements -
        those are not included here"
      
      * tag '5.20-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: update internal module number
        cifs: alloc_mid function should be marked as static
        cifs: remove "cifs_" prefix from init/destroy mids functions
        cifs: remove useless DeleteMidQEntry()
        cifs: when insecure legacy is disabled shrink amount of SMB1 code
        cifs: trivial style fixup
        cifs: fix wrong unlock before return from cifs_tree_connect()
        cifs: avoid use of global locks for high contention data
        cifs: remove remaining build warnings
        cifs: list_for_each() -> list_for_each_entry()
        cifs: update MAINTAINERS file with reviewers
        smb2: small refactor in smb2_check_message()
        cifs: Fix memory leak when using fscache
        cifs: remove minor build warning
        cifs: remove some camelCase and also some static build warnings
        cifs: remove unnecessary (void*) conversions.
        cifs: remove unnecessary type castings
        cifs: remove redundant initialization to variable mnt_sign_enabled
        smb3: check xattr value length earlier
      3bc1bc0b
    • Linus Torvalds's avatar
      Merge tag 'mm-nonmm-stable-2022-08-06-2' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm · eb5699ba
      Linus Torvalds authored
      Pull misc updates from Andrew Morton:
       "Updates to various subsystems which I help look after. lib, ocfs2,
        fatfs, autofs, squashfs, procfs, etc. A relatively small amount of
        material this time"
      
      * tag 'mm-nonmm-stable-2022-08-06-2' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (72 commits)
        scripts/gdb: ensure the absolute path is generated on initial source
        MAINTAINERS: kunit: add David Gow as a maintainer of KUnit
        mailmap: add linux.dev alias for Brendan Higgins
        mailmap: update Kirill's email
        profile: setup_profiling_timer() is moslty not implemented
        ocfs2: fix a typo in a comment
        ocfs2: use the bitmap API to simplify code
        ocfs2: remove some useless functions
        lib/mpi: fix typo 'the the' in comment
        proc: add some (hopefully) insightful comments
        bdi: remove enum wb_congested_state
        kernel/hung_task: fix address space of proc_dohung_task_timeout_secs
        lib/lzo/lzo1x_compress.c: replace ternary operator with min() and min_t()
        squashfs: support reading fragments in readahead call
        squashfs: implement readahead
        squashfs: always build "file direct" version of page actor
        Revert "squashfs: provide backing_dev_info in order to disable read-ahead"
        fs/ocfs2: Fix spelling typo in comment
        ia64: old_rr4 added under CONFIG_HUGETLB_PAGE
        proc: fix test for "vsyscall=xonly" boot option
        ...
      eb5699ba
    • Linus Torvalds's avatar
      Merge tag 'for-5.20/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev · b5a8466d
      Linus Torvalds authored
      Pull fbdev updates from Helge Deller:
       "The two major changes in this patchset corrects VGA modes, color
        handling and various other smaller fixes in the Atari framebuffer (by
        Geert Uytterhoeven), and devm_* conversion, platform data fixes and
        header cleanups in the imxfb driver (by Uwe Kleine-König).
      
        Other small patches clean up code in sa1100fb, cirrusfb and omapfb,
        fix a refcount leak in amba-clcd (by Liang He), and adds parameter
        checks to arkfb, i740fb, vt8623fb and s3fb (by Zheyu Ma)"
      
      * tag 'for-5.20/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: (27 commits)
        video: fbdev: s3fb: Check the size of screen before memset_io()
        video: fbdev: arkfb: Check the size of screen before memset_io()
        video: fbdev: vt8623fb: Check the size of screen before memset_io()
        video: fbdev: i740fb: Check the argument of i740_calc_vclk()
        video: fbdev: arkfb: Fix a divide-by-zero bug in ark_set_pixclock()
        video: fbdev: imxfb: fix return value check in imxfb_probe()
        video: fbdev: sis: fix typos in SiS_GetModeID()
        video: fbdev: imxfb: Convert request_mem_region + ioremap to devm_ioremap_resource
        video: fbdev: imxfb: Fold <linux/platform_data/video-imxfb.h> into only user
        video: fbdev: imxfb: Drop unused symbols from header
        video: fbdev: imxfb: Drop platform data support
        video: fbdev: amba-clcd: Fix refcount leak bugs
        video: fbdev: omapfb: Unexport omap*_update_window_async()
        video: fbdev: atari: Remove backward bug-compatibility
        video: fbdev: atari: Remove unused definitions and variables
        video: fbdev: atari: Fix VGA modes
        video: fbdev: atari: Fix TT High video mode vertical refresh
        video: fbdev: atari: Remove unneeded casts to void *
        video: fbdev: atari: Remove unneeded casts from void *
        video: fbdev: atari: Fix ext_setcolreg()
        ...
      b5a8466d
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2022-08-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1612c382
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
      
       - build fix for old(er) binutils
      
       - build fix for new GCC
      
       - kexec boot environment fix
      
      * tag 'x86-urgent-2022-08-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y
        x86/numa: Use cpumask_available instead of hardcoded NULL check
        x86/bus_lock: Don't assume the init value of DEBUGCTLMSR.BUS_LOCK_DETECT to be zero
      1612c382
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2022-08-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · cac03ac3
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Various fixes: a deadline scheduler fix, a migration fix, a Sparse fix
        and a comment fix"
      
      * tag 'sched-urgent-2022-08-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/core: Do not requeue task on CPU excluded from cpus_mask
        sched/rt: Fix Sparse warnings due to undefined rt.c declarations
        exit: Fix typo in comment: s/sub-theads/sub-threads
        sched, cpuset: Fix dl_cpu_busy() panic due to empty cs->cpus_allowed
      cac03ac3
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2022-08-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 592d8362
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Misc fixes to kprobes and the faddr2line script, plus a cleanup"
      
      * tag 'perf-urgent-2022-08-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Fix ';;' typo
        scripts/faddr2line: Add CONFIG_DEBUG_INFO check
        scripts/faddr2line: Fix vmlinux detection on arm64
        x86/kprobes: Update kcb status flag after singlestepping
        kprobes: Forbid probing on trampoline and BPF code areas
      592d8362
    • Linus Torvalds's avatar
      Merge tag 's390-5.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 24cb9586
      Linus Torvalds authored
      Pull s390 updates from Alexander Gordeev:
      
       - Rework copy_oldmem_page() callback to take an iov_iter.
      
         This includes a few prerequisite updates and fixes to the oldmem
         reading code.
      
       - Rework cpufeature implementation to allow for various CPU feature
         indications, which is not only limited to hardware capabilities, but
         also allows CPU facilities.
      
       - Use the cpufeature rework to autoload Ultravisor module when CPU
         facility 158 is available.
      
       - Add ELF note type for encrypted CPU state of a protected virtual CPU.
         The zgetdump tool from s390-tools package will decrypt the CPU state
         using a Customer Communication Key and overwrite respective notes to
         make the data accessible for crash and other debugging tools.
      
       - Use vzalloc() instead of vmalloc() + memset() in ChaCha20 crypto
         test.
      
       - Fix incorrect recovery of kretprobe modified return address in
         stacktrace.
      
       - Switch the NMI handler to use generic irqentry_nmi_enter() and
         irqentry_nmi_exit() helper functions.
      
       - Rework the cryptographic Adjunct Processors (AP) pass-through design
         to support dynamic changes to the AP matrix of a running guest as
         well as to implement more of the AP architecture.
      
       - Minor boot code cleanups.
      
       - Grammar and typo fixes to hmcdrv and tape drivers.
      
      * tag 's390-5.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (46 commits)
        Revert "s390/smp: enforce lowcore protection on CPU restart"
        Revert "s390/smp: rework absolute lowcore access"
        Revert "s390/smp,ptdump: add absolute lowcore markers"
        s390/unwind: fix fgraph return address recovery
        s390/nmi: use irqentry_nmi_enter()/irqentry_nmi_exit()
        s390: add ELF note type for encrypted CPU state of a PV VCPU
        s390/smp,ptdump: add absolute lowcore markers
        s390/smp: rework absolute lowcore access
        s390/setup: rearrange absolute lowcore initialization
        s390/boot: cleanup adjust_to_uv_max() function
        s390/smp: enforce lowcore protection on CPU restart
        s390/tape: fix comment typo
        s390/hmcdrv: fix Kconfig "its" grammar
        s390/docs: fix warnings for vfio_ap driver doc
        s390/docs: fix warnings for vfio_ap driver lock usage doc
        s390/crash: support multi-segment iterators
        s390/crash: use static swap buffer for copy_to_user_real()
        s390/crash: move copy_to_user_real() to crash_dump.c
        s390/zcore: fix race when reading from hardware system area
        s390/crash: fix incorrect number of bytes to copy to user space
        ...
      24cb9586
  3. 06 Aug, 2022 5 commits
    • Linus Torvalds's avatar
      Merge tag 'mips_6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · d77771c9
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
      
       - added support for Netgear WNR3500L v2
      
       - removed support for VR41xx SoC and platforms based on it
      
       - cleanups and fixes
      
      * tag 'mips_6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (25 commits)
        MIPS: tlbex: Explicitly compare _PAGE_NO_EXEC against 0
        Revert "MIPS: octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32"
        MIPS: Introduce CAVIUM_RESERVE32 Kconfig option
        MIPS: msi-octeon: eliminate kernel-doc warnings
        MIPS: Fix comment typo
        MIPS: BMIPS: Utilize cfe_die() for invalid DTB
        MIPS: CFE: Add cfe_die()
        MIPS: Fixed __debug_virt_addr_valid()
        MIPS: BCM47XX: Add support for Netgear WNR3500L v2
        MIPS: Remove VR41xx support
        MIPS: dts: align gpio-key node names with dtschema
        MIPS: dts: correct gpio-keys names and properties
        MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK
        MIPS: Make phys_to_virt utilize __va()
        MIPS: vdso: Utilize __pa() for gic_pfn
        MIPS: mm: Use the bitmap API to allocate bitmaps
        MIPS: math-emu: Use the bitmap API to allocate bitmaps
        MIPS: Loongson64: Fix section mismatch warning
        mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start
        MIPS: mscc: ocelot: enable FDMA usage
        ...
      d77771c9
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · cae4199f
      Linus Torvalds authored
      Pull powerpc updates from Michael Ellerman:
      
       - Add support for syscall stack randomization
      
       - Add support for atomic operations to the 32 & 64-bit BPF JIT
      
       - Full support for KASAN on 64-bit Book3E
      
       - Add a watchdog driver for the new PowerVM hypervisor watchdog
      
       - Add a number of new selftests for the Power10 PMU support
      
       - Add a driver for the PowerVM Platform KeyStore
      
       - Increase the NMI watchdog timeout during live partition migration, to
         avoid timeouts due to increased memory access latency
      
       - Add support for using the 'linux,pci-domain' device tree property for
         PCI domain assignment
      
       - Many other small features and fixes
      
      Thanks to Alexey Kardashevskiy, Andy Shevchenko, Arnd Bergmann, Athira
      Rajeev, Bagas Sanjaya, Christophe Leroy, Erhard Furtner, Fabiano Rosas,
      Greg Kroah-Hartman, Greg Kurz, Haowen Bai, Hari Bathini, Jason A.
      Donenfeld, Jason Wang, Jiang Jian, Joel Stanley, Juerg Haefliger, Kajol
      Jain, Kees Cook, Laurent Dufour, Madhavan Srinivasan, Masahiro Yamada,
      Maxime Bizon, Miaoqian Lin, Murilo Opsfelder Araújo, Nathan Lynch,
      Naveen N.  Rao, Nayna Jain, Nicholas Piggin, Ning Qiang, Pali Rohár,
      Petr Mladek, Rashmica Gupta, Sachin Sant, Scott Cheloha, Segher
      Boessenkool, Stephen Rothwell, Uwe Kleine-König, Wolfram Sang, Xiu
      Jianfeng, and Zhouyi Zhou.
      
      * tag 'powerpc-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (191 commits)
        powerpc/64e: Fix kexec build error
        EDAC/ppc_4xx: Include required of_irq header directly
        powerpc/pci: Fix PHB numbering when using opal-phbid
        powerpc/64: Init jump labels before parse_early_param()
        selftests/powerpc: Avoid GCC 12 uninitialised variable warning
        powerpc/cell/axon_msi: Fix refcount leak in setup_msi_msg_address
        powerpc/xive: Fix refcount leak in xive_get_max_prio
        powerpc/spufs: Fix refcount leak in spufs_init_isolated_loader
        powerpc/perf: Include caps feature for power10 DD1 version
        powerpc: add support for syscall stack randomization
        powerpc: Move system_call_exception() to syscall.c
        powerpc/powernv: rename remaining rng powernv_ functions to pnv_
        powerpc/powernv/kvm: Use darn for H_RANDOM on Power9
        powerpc/powernv: Avoid crashing if rng is NULL
        selftests/powerpc: Fix matrix multiply assist test
        powerpc/signal: Update comment for clarity
        powerpc: make facility_unavailable_exception 64s
        powerpc/platforms/83xx/suspend: Remove write-only global variable
        powerpc/platforms/83xx/suspend: Prevent unloading the driver
        powerpc/platforms/83xx/suspend: Reorder to get rid of a forward declaration
        ...
      cae4199f
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.20-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 4d1044fc
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
      
       - Enabling the FPU is now a static_key
      
       - Improvements to the Svpbmt support
      
       - CPU topology bindings for a handful of systems
      
       - Support for systems with 64-bit hart IDs
      
       - Many settings have been enabled in the defconfig, including both
         support for the StarFive systems and many of the Docker requirements
      
      There are also a handful of cleanups and improvements, as usual.
      
      * tag 'riscv-for-linus-5.20-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (28 commits)
        riscv: enable Docker requirements in defconfig
        riscv: convert the t-head pbmt errata to use the __nops macro
        riscv: introduce nops and __nops macros for NOP sequences
        RISC-V: Add fast call path of crash_kexec()
        riscv: mmap with PROT_WRITE but no PROT_READ is invalid
        riscv/efi_stub: Add 64bit boot-hartid support on RV64
        riscv: cpu: Add 64bit hartid support on RV64
        riscv: smp: Add 64bit hartid support on RV64
        riscv: spinwait: Fix hartid variable type
        riscv: cpu_ops_sbi: Add 64bit hartid support on RV64
        riscv: dts: sifive: "fix" pmic watchdog node name
        riscv: dts: canaan: Add k210 topology information
        riscv: dts: sifive: Add fu740 topology information
        riscv: dts: sifive: Add fu540 topology information
        riscv: dts: starfive: Add JH7100 CPU topology
        RISC-V: Add CONFIG_{NON,}PORTABLE
        riscv: config: enable SOC_STARFIVE in defconfig
        riscv: dts: microchip: Add mpfs' topology information
        riscv: Kconfig.socs: Add comments
        riscv: Kconfig.erratas: Add comments
        ...
      4d1044fc
    • Linus Torvalds's avatar
      Merge tag '9p-for-5.20' of https://github.com/martinetd/linux · ea0c3926
      Linus Torvalds authored
      Pull 9p updates from Dominique Martinet:
      
       - a couple of fixes
      
       - add a tracepoint for fid refcounting
      
       - some cleanup/followup on fid lookup
      
       - some cleanup around req refcounting
      
      * tag '9p-for-5.20' of https://github.com/martinetd/linux:
        net/9p: Initialize the iounit field during fid creation
        net: 9p: fix refcount leak in p9_read_work() error handling
        9p: roll p9_tag_remove into p9_req_put
        9p: Add client parameter to p9_req_put()
        9p: Drop kref usage
        9p: Fix some kernel-doc comments
        9p fid refcount: cleanup p9_fid_put calls
        9p fid refcount: add a 9p_fid_ref tracepoint
        9p fid refcount: add p9_fid_get/put wrappers
        9p: Fix minor typo in code comment
        9p: Remove unnecessary variable for old fids while walking from d_parent
        9p: Make the path walk logic more clear about when cloning is required
        9p: Track the root fid with its own variable during lookups
      ea0c3926
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v5.19-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · c42b729e
      Linus Torvalds authored
      Pull gfs2 updates from Andreas Gruenbacher:
      
       - Instantiate glocks ouside of the glock state engine, in the contect
         of the process taking the glock. This moves unnecessary complexity
         out of the core glock code. Clean up the instantiate logic to be more
         sensible.
      
       - In gfs2_glock_async_wait(), cancel pending locking request upon
         failure. Make sure all glocks are left in a consistent state.
      
       - Various other minor cleanups and fixes.
      
      * tag 'gfs2-v5.19-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: List traversal in do_promote is safe
        gfs2: do_promote glock holder stealing fix
        gfs2: Use better variable name
        gfs2: Make go_instantiate take a glock
        gfs2: Add new go_held glock operation
        gfs2: Revert 'Fix "truncate in progress" hang'
        gfs2: Instantiate glocks ouside of glock state engine
        gfs2: Fix up gfs2_glock_async_wait
        gfs2: Minor gfs2_glock_nq_m cleanup
        gfs2: Fix spelling mistake in comment
        gfs2: Rewrap overlong comment in do_promote
        gfs2: Remove redundant NULL check before kfree
      c42b729e