1. 09 Aug, 2022 10 commits
  2. 08 Aug, 2022 12 commits
    • 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
    • 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
    • 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
  3. 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
  4. 06 Aug, 2022 9 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
    • Linus Torvalds's avatar
      Revert "iommu/dma: Add config for PCI SAC address trick" · af3e9579
      Linus Torvalds authored
      This reverts commit 4bf7fda4.
      
      It turns out that it was hopelessly naive to think that this would work,
      considering that we've always done this.  The first machine I actually
      tested this on broke at bootup, getting to
      
          Reached target cryptsetup.target - Local Encrypted Volumes.
      
      and then hanging.  It's unclear what actually fails, since there's a lot
      else going on around that time (eg amdgpu probing also happens around
      that same time, but it could be some other random init thing that didn't
      complete earlier and just caused the boot to hang at that point).
      
      The expectations that we should default to some unsafe and untested mode
      seems entirely unfounded, and the belief that this wouldn't affect
      modern systems is clearly entirely false.  The machine in question is
      about two years old, so it's not exactly shiny, but it's also not some
      dusty old museum piece PDP-11 in a closet.
      
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: John Garry <john.garry@huawei.com>
      Cc: Joerg Roedel <jroedel@suse.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      af3e9579
    • Linus Torvalds's avatar
      Merge tag 'for-6.0/dm-changes-2' of... · 20cf903a
      Linus Torvalds authored
      Merge tag 'for-6.0/dm-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull more device mapper updates from Mike Snitzer:
      
       - Add flags argument to dm_bufio_client_create and introduce
         DM_BUFIO_CLIENT_NO_SLEEP flag to have dm-bufio use spinlock rather
         than mutex for its locking.
      
       - Add optional "try_verify_in_tasklet" feature to DM verity target.
         This feature gives users the option to improve IO latency by using a
         tasklet to verify, using hashes in bufio's cache, rather than wait to
         schedule a work item via workqueue. But if there is a bufio cache
         miss, or an error, then the tasklet will fallback to using workqueue.
      
       - Incremental changes to both dm-bufio and the DM verity target to use
         jump_label to minimize cost of branching associated with the niche
         "try_verify_in_tasklet" feature. DM-bufio in particular is used by
         quite a few other DM targets so it doesn't make sense to incur
         additional bufio cost in those targets purely for the benefit of this
         niche verity feature if the feature isn't ever used.
      
       - Optimize verity_verify_io, which is used by both workqueue and
         tasklet based verification, if FEC is not configured or tasklet based
         verification isn't used.
      
       - Remove DM verity target's verify_wq's use of the WQ_CPU_INTENSIVE
         flag since it uses WQ_UNBOUND. Also, use the WQ_HIGHPRI flag if
         "try_verify_in_tasklet" is specified.
      
      * tag 'for-6.0/dm-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm verity: have verify_wq use WQ_HIGHPRI if "try_verify_in_tasklet"
        dm verity: remove WQ_CPU_INTENSIVE flag since using WQ_UNBOUND
        dm verity: only copy bvec_iter in verity_verify_io if in_tasklet
        dm verity: optimize verity_verify_io if FEC not configured
        dm verity: conditionally enable branching for "try_verify_in_tasklet"
        dm bufio: conditionally enable branching for DM_BUFIO_CLIENT_NO_SLEEP
        dm verity: allow optional args to alter primary args handling
        dm verity: Add optional "try_verify_in_tasklet" feature
        dm bufio: Add DM_BUFIO_CLIENT_NO_SLEEP flag
        dm bufio: Add flags argument to dm_bufio_client_create
      20cf903a
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.20-2022-08-06' of git://git.infradead.org/users/hch/dma-mapping · c993e07b
      Linus Torvalds authored
      Pull dma-mapping updates from Christoph Hellwig:
      
       - convert arm32 to the common dma-direct code (Arnd Bergmann, Robin
         Murphy, Christoph Hellwig)
      
       - restructure the PCIe peer to peer mapping support (Logan Gunthorpe)
      
       - allow the IOMMU code to communicate an optional DMA mapping length
         and use that in scsi and libata (John Garry)
      
       - split the global swiotlb lock (Tianyu Lan)
      
       - various fixes and cleanup (Chao Gao, Dan Carpenter, Dongli Zhang,
         Lukas Bulwahn, Robin Murphy)
      
      * tag 'dma-mapping-5.20-2022-08-06' of git://git.infradead.org/users/hch/dma-mapping: (45 commits)
        swiotlb: fix passing local variable to debugfs_create_ulong()
        dma-mapping: reformat comment to suppress htmldoc warning
        PCI/P2PDMA: Remove pci_p2pdma_[un]map_sg()
        RDMA/rw: drop pci_p2pdma_[un]map_sg()
        RDMA/core: introduce ib_dma_pci_p2p_dma_supported()
        nvme-pci: convert to using dma_map_sgtable()
        nvme-pci: check DMA ops when indicating support for PCI P2PDMA
        iommu/dma: support PCI P2PDMA pages in dma-iommu map_sg
        iommu: Explicitly skip bus address marked segments in __iommu_map_sg()
        dma-mapping: add flags to dma_map_ops to indicate PCI P2PDMA support
        dma-direct: support PCI P2PDMA pages in dma-direct map_sg
        dma-mapping: allow EREMOTEIO return code for P2PDMA transfers
        PCI/P2PDMA: Introduce helpers for dma_map_sg implementations
        PCI/P2PDMA: Attempt to set map_type if it has not been set
        lib/scatterlist: add flag for indicating P2PDMA segments in an SGL
        swiotlb: clean up some coding style and minor issues
        dma-mapping: update comment after dmabounce removal
        scsi: sd: Add a comment about limiting max_sectors to shost optimal limit
        ata: libata-scsi: cap ata_device->max_sectors according to shost->max_sectors
        scsi: scsi_transport_sas: cap shost opt_sectors according to DMA optimal limit
        ...
      c993e07b
    • Linus Torvalds's avatar
      Merge tag 'iommu-updates-v5.20-or-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 1d239c1e
      Linus Torvalds authored
      Pull iommu updates from Joerg Roedel:
      
       - The most intrusive patch is small and changes the default allocation
         policy for DMA addresses.
      
         Before the change the allocator tried its best to find an address in
         the first 4GB. But that lead to performance problems when that space
         gets exhaused, and since most devices are capable of 64-bit DMA these
         days, we changed it to search in the full DMA-mask range from the
         beginning.
      
         This change has the potential to uncover bugs elsewhere, in the
         kernel or the hardware. There is a Kconfig option and a command line
         option to restore the old behavior, but none of them is enabled by
         default.
      
       - Add Robin Murphy as reviewer of IOMMU code and maintainer for the
         dma-iommu and iova code
      
       - Chaning IOVA magazine size from 1032 to 1024 bytes to save memory
      
       - Some core code cleanups and dead-code removal
      
       - Support for ACPI IORT RMR node
      
       - Support for multiple PCI domains in the AMD-Vi driver
      
       - ARM SMMU changes from Will Deacon:
            - Add even more Qualcomm device-tree compatible strings
            - Support dumping of IMP DEF Qualcomm registers on TLB sync
              timeout
            - Fix reference count leak on device tree node in Qualcomm driver
      
       - Intel VT-d driver updates from Lu Baolu:
            - Make intel-iommu.h private
            - Optimize the use of two locks
            - Extend the driver to support large-scale platforms
            - Cleanup some dead code
      
       - MediaTek IOMMU refactoring and support for TTBR up to 35bit
      
       - Basic support for Exynos SysMMU v7
      
       - VirtIO IOMMU driver gets a map/unmap_pages() implementation
      
       - Other smaller cleanups and fixes
      
      * tag 'iommu-updates-v5.20-or-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (116 commits)
        iommu/amd: Fix compile warning in init code
        iommu/amd: Add support for AVIC when SNP is enabled
        iommu/amd: Simplify and Consolidate Virtual APIC (AVIC) Enablement
        ACPI/IORT: Fix build error implicit-function-declaration
        drivers: iommu: fix clang -wformat warning
        iommu/arm-smmu: qcom_iommu: Add of_node_put() when breaking out of loop
        iommu/arm-smmu-qcom: Add SM6375 SMMU compatible
        dt-bindings: arm-smmu: Add compatible for Qualcomm SM6375
        MAINTAINERS: Add Robin Murphy as IOMMU SUBSYTEM reviewer
        iommu/amd: Do not support IOMMUv2 APIs when SNP is enabled
        iommu/amd: Do not support IOMMU_DOMAIN_IDENTITY after SNP is enabled
        iommu/amd: Set translation valid bit only when IO page tables are in use
        iommu/amd: Introduce function to check and enable SNP
        iommu/amd: Globally detect SNP support
        iommu/amd: Process all IVHDs before enabling IOMMU features
        iommu/amd: Introduce global variable for storing common EFR and EFR2
        iommu/amd: Introduce Support for Extended Feature 2 Register
        iommu/amd: Change macro for IOMMU control register bit shift to decimal value
        iommu/exynos: Enable default VM instance on SysMMU v7
        iommu/exynos: Add SysMMU v7 register set
        ...
      1d239c1e