1. Mar 03, 2023
  2. Mar 02, 2023
    • Linus Torvalds's avatar
      Merge tag 'nfsd-6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · ee3f96b1
      Linus Torvalds authored
      Pull nfsd fix from Chuck Lever:
      
       - Make new GSS Kerberos Kunit tests work on non-x86 platforms
      
      * tag 'nfsd-6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
        SUNRPC: Properly terminate test case arrays
        SUNRPC: Let Kunit tests run with some enctypes compiled out
      ee3f96b1
    • Arnd Bergmann's avatar
      power: supply: qcom_battmgr: remove bogus do_div() · 92304df8
      Arnd Bergmann authored
      
      
      The argument to do_div() is a 32-bit integer, and it was read from a
      32-bit register so there is no point in doing a 64-bit division on it.
      
      On 32-bit arm, do_div() causes a compile-time warning here:
      
          include/asm-generic/div64.h:238:22: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types]
            238 |   __rem = __div64_32(&(n), __base); \
                |                      ^~~~
                |                      |
                |                      unsigned int *
          drivers/power/supply/qcom_battmgr.c:1130:4: note: in expansion of macro 'do_div'
           1130 |    do_div(battmgr->status.percent, 100);
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Acked-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      92304df8
    • Linus Torvalds's avatar
      capability: just use a 'u64' instead of a 'u32[2]' array · f122a08b
      Linus Torvalds authored
      Back in 2008 we extended the capability bits from 32 to 64, and we did
      it by extending the single 32-bit capability word from one word to an
      array of two words.  It was then obfuscated by hiding the "2" behind two
      macro expansions, with the reasoning being that maybe it gets extended
      further some day.
      
      That reasoning may have been valid at the time, but the last thing we
      want to do is to extend the capability set any more.  And the array of
      values not only causes source code oddities (with loops to deal with
      it), but also results in worse code generation.  It's a lose-lose
      situation.
      
      So just change the 'u32[2]' into a 'u64' and be done with it.
      
      We still have to deal with the fact that the user space interface is
      designed around an array of these 32-bit values, but that was the case
      before too, since the array layouts were different (ie user space
      doesn't use an array of 32-bit values for individual capability masks,
      but an array of 32-bit slices o...
      f122a08b
    • Linus Torvalds's avatar
      Merge tag 'sh-for-v6.3-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux · 1d2aea1b
      Linus Torvalds authored
      Pull sh updates from John Paul Adrian Glaubitz:
      
       - regression fix in connection with the rtl8169 driver on SuperH boards
         that was introduced when the driver was switched to use
         devm_clk_get_optional_enabled() to simplify the code (Geert
         Uytterhoeven)
      
       - build warning fix to allow the kernel to be built with CONFIG_WERROR
         enabled (Michael Karcher)
      
      * tag 'sh-for-v6.3-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux:
        sh: clk: Fix clk_enable() to return 0 on NULL clk
        sh: intc: Avoid spurious sizeof-pointer-div warning
      1d2aea1b
    • Linus Torvalds's avatar
      Merge tag 'loongarch-6.3' of... · a8356cdb
      Linus Torvalds authored
      Merge tag 'loongarch-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch updates from Huacai Chen:
      
       - Make -mstrict-align configurable
      
       - Add kernel relocation and KASLR support
      
       - Add single kernel image implementation for kdump
      
       - Add hardware breakpoints/watchpoints support
      
       - Add kprobes/kretprobes/kprobes_on_ftrace support
      
       - Add LoongArch support for some selftests.
      
      * tag 'loongarch-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson: (23 commits)
        selftests/ftrace: Add LoongArch kprobe args string tests support
        selftests/seccomp: Add LoongArch selftesting support
        tools: Add LoongArch build infrastructure
        samples/kprobes: Add LoongArch support
        LoongArch: Mark some assembler symbols as non-kprobe-able
        LoongArch: Add kprobes on ftrace support
        LoongArch: Add kretprobes support
        LoongArch: Add kprobes support
        LoongArch: Simulate branch and PC* instructions
        LoongArch: ptrace: Add hardware single step support
       ...
      a8356cdb
    • Linus Torvalds's avatar
      Merge tag 'uml-for-linus-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux · 64e85168
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - Add support for rust (yay!)
      
       - Add support for LTO
      
       - Add platform bus support to virtio-pci
      
       - Various virtio fixes
      
       - Coding style, spelling cleanups
      
      * tag 'uml-for-linus-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux: (27 commits)
        Documentation: rust: Fix arch support table
        uml: vector: Remove unused definitions VECTOR_{WRITE,HEADERS}
        um: virt-pci: properly remove PCI device from bus
        um: virtio_uml: move device breaking into workqueue
        um: virtio_uml: mark device as unregistered when breaking it
        um: virtio_uml: free command if adding to virtqueue failed
        UML: define RUNTIME_DISCARD_EXIT
        virt-pci: add platform bus support
        um-virt-pci: Make max delay configurable
        um: virt-pci: implement pcibios_get_phb_of_node()
        um: Support LTO
        um: put power options in a menu
        um: Use CFLAGS_vmlinux
        um: Prevent building modules incomp...
      64e85168
    • Linus Torvalds's avatar
      Merge tag 'ubifs-for-linus-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · e31b283a
      Linus Torvalds authored
      Pull jffs2, ubi and ubifs updates from Richard Weinberger:
       "JFFS2:
         - Fix memory corruption in error path
         - Spelling and coding style fixes
      
        UBI:
         - Switch to BLK_MQ_F_BLOCKING in ubiblock
         - Wire up partent device (for sysfs)
         - Multiple UAF bugfixes
         - Fix for an infinite loop in WL error path
      
        UBIFS:
         - Fix for multiple memory leaks in error paths
         - Fixes for wrong space accounting
         - Minor cleanups
         - Spelling and coding style fixes"
      
      * tag 'ubifs-for-linus-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs: (36 commits)
        ubi: block: Fix a possible use-after-free bug in ubiblock_create()
        ubifs: make kobj_type structures constant
        mtd: ubi: block: wire-up device parent
        mtd: ubi: wire-up parent MTD device
        ubi: use correct names in function kernel-doc comments
        ubi: block: set BLK_MQ_F_BLOCKING
        jffs2: Fix list_del corruption if compressors initialized failed
        jffs2: Use function instead of macro when initialize compressors
        jffs2: fix spelling mistake "neccecary"->"necessary"
        ubifs: Fix kernel-doc
        ubifs: Fix some kernel-doc comments
        UBI: Fastmap: Fix kernel-doc
        ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed
        ubi: Fix UAF wear-leveling entry in eraseblk_count_seq_show()
        ubi: fastmap: Fix missed fm_anchor PEB in wear-leveling after disabling fastmap
        ubifs: ubifs_releasepage: Remove ubifs_assert(0) to valid this process
        ubifs: ubifs_writepage: Mark page dirty after writing inode failed
        ubifs: dirty_cow_znode: Fix memleak in error handling path
        ubifs: Re-statistic cleaned znode count if commit failed
        ubi: Fix permission display of the debugfs files
        ...
      e31b283a
    • Linus Torvalds's avatar
      Merge tag '9p-6.3-for-linus-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs · 3808330b
      Linus Torvalds authored
      Pull 9p updates from Eric Van Hensbergen:
      
       - some fixes and cleanup setting up for a larger set of performance
         patches I've been working on
      
       - a contributed fixes relating to 9p/rdma
      
       - some contributed fixes relating to 9p/xen
      
      * tag '9p-6.3-for-linus-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
        fs/9p: fix error reporting in v9fs_dir_release
        net/9p: fix bug in client create for .L
        9p/rdma: unmap receive dma buffer in rdma_request()/post_recv()
        9p/xen: fix connection sequence
        9p/xen: fix version parsing
        fs/9p: Expand setup of writeback cache to all levels
        net/9p: Adjust maximum MSIZE to account for p9 header
      3808330b
    • Linus Torvalds's avatar
      Merge tag 'jfs-6.3' of https://github.com/kleikamp/linux-shaggy · 6e110580
      Linus Torvalds authored
      Pull jfs update from Dave Kleikamp:
       "Just one simple sanity check"
      
      * tag 'jfs-6.3' of https://github.com/kleikamp/linux-shaggy:
        fs/jfs: fix shift exponent db_agl2size negative
      6e110580
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · e103eced
      Linus Torvalds authored
      Pull exfat updates from Namjae Jeon:
      
       - Handle vendor extension and allocation entries as unrecognized benign
         secondary entries
      
       - Fix wrong ->i_blocks on devices with non-512 byte sector
      
       - Add the check to avoid returning -EIO from exfat_readdir() at current
         position exceeding the directory size
      
       - Fix a bug that reach the end of the directory stream at a position
         not aligned with the dentry size
      
       - Redefine DIR_DELETED as 0xFFFFFFF7, the bad cluster number
      
       - Two cleanup fixes and fix cluster leakage in error handling
      
      * tag 'exfat-for-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        exfat: fix the newly allocated clusters are not freed in error handling
        exfat: don't print error log in normal case
        exfat: remove unneeded code from exfat_alloc_cluster()
        exfat: handle unreconized benign secondary entries
        exfat: fix inode->i_blocks for non-512 byte sector size device
        exfat: redefine DIR_DELETED as the bad cluster number
        exfat: fix reporting fs error when reading dir beyond EOF
        exfat: fix unexpected EOF while reading dir
      e103eced
  3. Mar 01, 2023
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.3-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · c0927a7a
      Linus Torvalds authored
      Pull moar xfs updates from Darrick Wong:
       "This contains a fix for a deadlock in the allocator. It continues the
        slow march towards being able to offline AGs, and it refactors the
        interface to the xfs allocator to be less indirection happy.
      
        Summary:
      
         - Fix a deadlock in the free space allocator due to the AG-walking
           algorithm forgetting to follow AG-order locking rules
      
         - Make the inode allocator prefer existing free inodes instead of
           failing to allocate new inode chunks when free space is low
      
         - Set minleft correctly when setting allocator parameters for bmap
           changes
      
         - Fix uninitialized variable access in the getfsmap code
      
         - Make a distinction between active and passive per-AG structure
           references. For now, active references are taken to perform some
           work in an AG on behalf of a high level operation; passive
           references are used by lower level code to finish operations
           started by other threads. Eventually this will become part of
           online shrink
      
         - Split out all the different allocator strategies into separate
           functions to move us away from design antipattern of filling out a
           huge structure for various differentish things and issuing a single
           function multiplexing call
      
         - Various cleanups in the filestreams allocator code, which we might
           very well want to deprecate instead of continuing
      
         - Fix a bug with the agi rotor code that was introduced earlier in
           this series"
      
      * tag 'xfs-6.3-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (44 commits)
        xfs: restore old agirotor behavior
        xfs: fix uninitialized variable access
        xfs: refactor the filestreams allocator pick functions
        xfs: return a referenced perag from filestreams allocator
        xfs: pass perag to filestreams tracing
        xfs: use for_each_perag_wrap in xfs_filestream_pick_ag
        xfs: track an active perag reference in filestreams
        xfs: factor out MRU hit case in xfs_filestream_select_ag
        xfs: remove xfs_filestream_select_ag() longest extent check
        xfs: merge new filestream AG selection into xfs_filestream_select_ag()
        xfs: merge filestream AG lookup into xfs_filestream_select_ag()
        xfs: move xfs_bmap_btalloc_filestreams() to xfs_filestreams.c
        xfs: use xfs_bmap_longest_free_extent() in filestreams
        xfs: get rid of notinit from xfs_bmap_longest_free_extent
        xfs: factor out filestreams from xfs_bmap_btalloc_nullfb
        xfs: convert trim to use for_each_perag_range
        xfs: convert xfs_alloc_vextent_iterate_ags() to use perag walker
        xfs: move the minimum agno checks into xfs_alloc_vextent_check_args
        xfs: fold xfs_alloc_ag_vextent() into callers
        xfs: move allocation accounting to xfs_alloc_vextent_set_fsbno()
        ...
      c0927a7a
    • Linus Torvalds's avatar
      Merge tag 'i3c/for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux · 1899946a
      Linus Torvalds authored
      Pull i3c updates from Alexandre Belloni:
       "Subsystem:
         - transfer pid from boardinfo to device info
      
        Drivers:
         - dw-i3c-master: stop hardcoding initial speed"
      
      * tag 'i3c/for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux:
        i3c: master: dw: stop hardcoding initial speed
        i3c: transfer pid from boardinfo to device info
      1899946a
    • Linus Torvalds's avatar
      Merge tag 'docs-6.3-2' of git://git.lwn.net/linux · b1f1382a
      Linus Torvalds authored
      Pull Documentation stragglers from Jonathan Corbet:
       "A handful of documentation patches that were ready before the merge
        window, but which I didn't get merged for the first round:
      
         - A recommendation from Thorsten (also akpm) on use of Link tags to
           point out problem reports
      
         - Some front-page formatting tweaks
      
         - Another Spanish translation
      
         - One typo(ish) fix"
      
      * tag 'docs-6.3-2' of git://git.lwn.net/linux:
        docs: recommend using Link: whenever using Reported-by:
        Documentation: front page: use recommended heading adornments
        docs/sp_SP: Add process programming-language translation
        docs: locking: refer to the actual existing config names
      b1f1382a
    • Jack Chen's avatar
      i3c: master: dw: stop hardcoding initial speed · 510d2358
      Jack Chen authored
      
      
      Bus-speed could be default(12.5MHz) or defined by users in dts.
      Dw-i3c-master should not hard-code the initial speed to be
      I3C_BUS_TYP_I3C_SCL_RATE (12.5MHz)
      And because of Synopsys's I3C controller limit (hcnt/lcnt register
      length) and core-clk provided, there is a limit to bus speed, too.
      For example, when core-clk is 250 MHz, the bus speed cannot be
      lowered below 1MHz.
      
      Tested: tested with an i3c sensor and captured with a logic analyzer.
      
      Signed-off-by: default avatarJack Chen <zenghuchen@google.com>
      Link: https://lore.kernel.org/r/20230216151057.293764-1-zenghuchen@google.com
      
      
      Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
      510d2358
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-6.3-rc1' of... · e492250d
      Linus Torvalds authored
      Merge tag 'pwm/for-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm updates from Thierry Reding:
       "This rather small set of changes includes some minor fixes and
        improvements.
      
        The AB8500 driver gained support for reading the initial hardware
        state and the Synopsys DesignWare driver received some work to prepare
        for device tree and platform support"
      
      * tag 'pwm/for-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
        pwm: dwc: Use devm_pwmchip_add()
        pwm: dwc: Move memory allocation to own function
        pwm: dwc: Change &pci->dev to dev in probe
        dt-bindings: pwm: Document Synopsys DesignWare snps,pwm-dw-apb-timers-pwm2
        pwm: iqs620a: Replace one remaining instance of regmap_update_bits()
        pwm: ab8500: Implement .get_state()
        pwm: ab8500: Fix calculation of duty and period
        pwm: lp3943: Drop unused i2c include
        dt-bindings: pwm: mediatek: Convert pwm-mediatek to DT schema
        pwm: stm32-lp: fix the check on arr and cmp registers update
        pwm: Move pwm_capture() dummy to restore order
        pwm: sifive: Always let the first pwm_apply_state succeed
      e492250d
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · b07ce43d
      Linus Torvalds authored
      Pull ext4 updates from Ted Ts'o:
       "Improve performance for ext4 by allowing multiple process to perform
        direct I/O writes to preallocated blocks by using a shared inode lock
        instead of taking an exclusive lock.
      
        In addition, multiple bug fixes and cleanups"
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix incorrect options show of original mount_opt and extend mount_opt2
        ext4: Fix possible corruption when moving a directory
        ext4: init error handle resource before init group descriptors
        ext4: fix task hung in ext4_xattr_delete_inode
        jbd2: fix data missing when reusing bh which is ready to be checkpointed
        ext4: update s_journal_inum if it changes after journal replay
        ext4: fail ext4_iget if special inode unallocated
        ext4: fix function prototype mismatch for ext4_feat_ktype
        ext4: remove unnecessary variable initialization
        ext4: fix inode tree inconsistency caused by ENOMEM
        ext4: refuse to create ea block when umounted
        ext4: optimize ea_inode block expansion
        ext4: remove dead code in updating backup sb
        ext4: dio take shared inode lock when overwriting preallocated blocks
        ext4: don't show commit interval if it is zero
        ext4: use ext4_fc_tl_mem in fast-commit replay path
        ext4: improve xattr consistency checking and error reporting
      b07ce43d
  4. Feb 28, 2023