1. 01 Jun, 2023 1 commit
    • Linus Torvalds's avatar
      Merge tag '6.4-rc4-smb3-server-fixes' of git://git.samba.org/ksmbd · 88280037
      Linus Torvalds authored
      Pull smb server fixes from Steve French:
       "Eight server fixes (most also for stable):
      
         - Two fixes for uninitialized pointer reads (rename and link)
      
         - Fix potential UAF in oplock break
      
         - Two fixes for potential out of bound reads in negotiate
      
         - Fix crediting bug
      
         - Two fixes for xfstests (allocation size fix for test 694 and lookup
           issue shown by test 464)"
      
      * tag '6.4-rc4-smb3-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: call putname after using the last component
        ksmbd: fix incorrect AllocationSize set in smb2_get_info
        ksmbd: fix UAF issue from opinfo->conn
        ksmbd: fix multiple out-of-bounds read during context decoding
        ksmbd: fix slab-out-of-bounds read in smb2_handle_negotiate
        ksmbd: fix credit count leakage
        ksmbd: fix uninitialized pointer read in smb2_create_link()
        ksmbd: fix uninitialized pointer read in ksmbd_vfs_rename()
      88280037
  2. 31 May, 2023 3 commits
    • Linus Torvalds's avatar
      Merge tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 929ed21d
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
       "Four small smb3 client fixes:
      
         - two small fixes suggested by kernel test robot
      
         - small cleanup fix
      
         - update Paulo's email address in the maintainer file"
      
      * tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: address unused variable warning
        smb: delete an unnecessary statement
        smb3: missing null check in SMB2_change_notify
        smb3: update a reviewer email in MAINTAINERS file
      929ed21d
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 884fe9da
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
      
       - Fix 64K ARM page size support in bnxt_re and efa
      
       - bnxt_re fixes for a memory leak, incorrect error handling and a
         remove a bogus FW failure when running on a VF
      
       - Update MAINTAINERS for hns and efa
      
       - Fix two rxe regressions added this merge window in error unwind and
         incorrect spinlock primitives
      
       - hns gets a better algorithm for allocating page tables to avoid
         running out of resources, and a timeout adjustment
      
       - Fix a text case failure in hns
      
       - Use after free in irdma and fix incorrect construction of a WQE
         causing mis-execution
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/irdma: Fix Local Invalidate fencing
        RDMA/irdma: Prevent QP use after free
        MAINTAINERS: Update maintainer of Amazon EFA driver
        RDMA/bnxt_re: Do not enable congestion control on VFs
        RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx
        RDMA/bnxt_re: Fix a possible memory leak
        RDMA/hns: Modify the value of long message loopback slice
        RDMA/hns: Fix base address table allocation
        RDMA/hns: Fix timeout attr in query qp for HIP08
        RDMA/efa: Fix unsupported page sizes in device
        RDMA/rxe: Convert spin_{lock_bh,unlock_bh} to spin_{lock_irqsave,unlock_irqrestore}
        RDMA/rxe: Fix double unlock in rxe_qp.c
        MAINTAINERS: Update maintainers of HiSilicon RoCE
        RDMA/bnxt_re: Fix the page_size used during the MR creation
      884fe9da
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · fd2186d1
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "Fix two regressions in ext4 and a number of issues reported by syzbot"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: enable the lazy init thread when remounting read/write
        ext4: fix fsync for non-directories
        ext4: add lockdep annotations for i_data_sem for ea_inode's
        ext4: disallow ea_inodes with extended attributes
        ext4: set lockdep subclass for the ea_inode in ext4_xattr_inode_cache_find()
        ext4: add EA_INODE checking to ext4_iget()
      fd2186d1
  3. 30 May, 2023 10 commits
    • Linus Torvalds's avatar
      Merge tag 'for-6.4-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 48b1320a
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "One bug fix and two build warning fixes:
      
         - call proper end bio callback for metadata RAID0 in a rare case of
           an unaligned block
      
         - fix uninitialized variable (reported by gcc 10.2)
      
         - fix warning about potential access beyond array bounds on mips64
           with 64k pages (runtime check would not allow that)"
      
      * tag 'for-6.4-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix csum_tree_block page iteration to avoid tripping on -Werror=array-bounds
        btrfs: fix an uninitialized variable warning in btrfs_log_inode
        btrfs: call btrfs_orig_bbio_end_io in btrfs_end_bio_work
      48b1320a
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.4-2-2023-05-30' of... · afead42f
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.4-2-2023-05-30' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix BPF CO-RE naming convention for checking the availability of
         fields on 'union perf_mem_data_src' on the running kernel
      
       - Remove the use of llvm-strip on BPF skel object files, not needed,
         fixes a build breakage when the llvm package, that contains it in
         most distros, isn't installed
      
       - Fix tools that use both evsel->{bpf_counter_list,bpf_filters},
         removing them from a union
      
       - Remove extra "--" from the 'perf ftrace latency' --use-nsec option,
         previously it was working only when using the '-n' alternative
      
       - Don't stop building when both binutils-devel and a C++ compiler isn't
         available to compile the alternative C++ demangle support code,
         disable that feature instead
      
       - Sync the linux/in.h and coresight-pmu.h header copies with the kernel
         sources
      
       - Fix relative include path to cs-etm.h
      
      * tag 'perf-tools-fixes-for-v6.4-2-2023-05-30' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf evsel: Separate bpf_counter_list and bpf_filters, can be used at the same time
        tools headers UAPI: Sync the linux/in.h with the kernel sources
        perf cs-etm: Copy kernel coresight-pmu.h header
        perf bpf: Do not use llvm-strip on BPF binary
        perf build: Don't compile demangle-cxx.cpp if not necessary
        perf arm: Fix include path to cs-etm.h
        perf bpf filter: Fix a broken perf sample data naming for BPF CO-RE
        perf ftrace latency: Remove unnecessary "--" from --use-nsec option
      afead42f
    • Linus Torvalds's avatar
      Merge tag 'regmap-fix-v6.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 1683c329
      Linus Torvalds authored
      Pull regmap fixes from Mark Brown:
       "The most important fix here is for missing dropping of the RCU read
        lock when syncing maple tree register caches, the physical devices I
        have that use the code don't do any syncing so I'd only ever tested
        this with virtual devices and missed the fact that we need to drop the
        lock in order to write to buses that need to sleep.
      
        Otherwise there's a fix for an edge case when splitting up large batch
        writes which has been lurking for a long time, a check to make sure
        nobody writes new drivers with a bug that was found in several
        SoundWire drivers and a tweak to the way the new kunit tests are
        enabled to ensure they don't cause regmap to be enabled when it
        wouldn't otherwise be"
      
      * tag 'regmap-fix-v6.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: maple: Drop the RCU read lock while syncing registers
        regmap: sdw: check for invalid multi-register writes config
        regmap: Account for register length when chunking
        regmap: REGMAP_KUNIT should not select REGMAP
      1683c329
    • Linus Torvalds's avatar
      Merge tag 'modules-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · 6d86b56f
      Linus Torvalds authored
      Pull modules fix from Luis Chamberlain:
       "A fix is provided for ia64. Even though ia64 is on life support it
        helps to fix issues if we can. Thanks to Linus for doing tons of the
        ia64 debugging"
      
      * tag 'modules-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        module: fix module load for ia64
      6d86b56f
    • Theodore Ts'o's avatar
      ext4: enable the lazy init thread when remounting read/write · eb1f822c
      Theodore Ts'o authored
      In commit a44be64b ("ext4: don't clear SB_RDONLY when remounting
      r/w until quota is re-enabled") we defer clearing tyhe SB_RDONLY flag
      in struct super.  However, we didn't defer when we checked sb_rdonly()
      to determine the lazy itable init thread should be enabled, with the
      next result that the lazy inode table initialization would not be
      properly started.  This can cause generic/231 to fail in ext4's
      nojournal mode.
      
      Fix this by moving when we decide to start or stop the lazy itable
      init thread to after we clear the SB_RDONLY flag when we are
      remounting the file system read/write.
      
      Fixes a44be64b ("ext4: don't clear SB_RDONLY when remounting r/w until...")
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      Link: https://lore.kernel.org/r/20230527035729.1001605-1-tytso@mit.eduSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      eb1f822c
    • Jan Kara's avatar
      ext4: fix fsync for non-directories · 1077b2d5
      Jan Kara authored
      Commit e360c6ed ("ext4: Drop special handling of journalled data
      from ext4_sync_file()") simplified ext4_sync_file() by dropping special
      handling of journalled data mode as it was not needed anymore. However
      that branch was also used for directories and symlinks and since the
      fastcommit code does not track metadata changes to non-regular files, the
      change has caused e.g. fsync(2) on directories to not commit transaction
      as it should. Fix the problem by adding handling for non-regular files.
      
      Fixes: e360c6ed ("ext4: Drop special handling of journalled data from ext4_sync_file()")
      Reported-by: default avatarEric Whitney <enwlinux@gmail.com>
      Link: https://lore.kernel.org/all/ZFqO3xVnmhL7zv1x@debian-BULLSEYE-live-builder-AMD64Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Tested-by: default avatarEric Whitney <enwlinux@gmail.com>
      Link: https://lore.kernel.org/r/20230524104453.8734-1-jack@suse.czSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      1077b2d5
    • Theodore Ts'o's avatar
      ext4: add lockdep annotations for i_data_sem for ea_inode's · aff3bea9
      Theodore Ts'o authored
      Treat i_data_sem for ea_inodes as being in their own lockdep class to
      avoid lockdep complaints about ext4_setattr's use of inode_lock() on
      normal inodes potentially causing lock ordering with i_data_sem on
      ea_inodes in ext4_xattr_inode_write().  However, ea_inodes will be
      operated on by ext4_setattr(), so this isn't a problem.
      
      Cc: stable@kernel.org
      Link: https://syzkaller.appspot.com/bug?extid=298c5d8fb4a128bc27b0
      Reported-by: syzbot+298c5d8fb4a128bc27b0@syzkaller.appspotmail.com
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      Link: https://lore.kernel.org/r/20230524034951.779531-5-tytso@mit.eduSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      aff3bea9
    • Theodore Ts'o's avatar
      ext4: disallow ea_inodes with extended attributes · 2bc7e7c1
      Theodore Ts'o authored
      An ea_inode stores the value of an extended attribute; it can not have
      extended attributes itself, or this will cause recursive nightmares.
      Add a check in ext4_iget() to make sure this is the case.
      
      Cc: stable@kernel.org
      Reported-by: syzbot+e44749b6ba4d0434cd47@syzkaller.appspotmail.com
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      Link: https://lore.kernel.org/r/20230524034951.779531-4-tytso@mit.eduSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      2bc7e7c1
    • Theodore Ts'o's avatar
      ext4: set lockdep subclass for the ea_inode in ext4_xattr_inode_cache_find() · b928dfdc
      Theodore Ts'o authored
      If the ea_inode has been pushed out of the inode cache while there is
      still a reference in the mb_cache, the lockdep subclass will not be
      set on the inode, which can lead to some lockdep false positives.
      
      Fixes: 33d201e0 ("ext4: fix lockdep warning about recursive inode locking")
      Cc: stable@kernel.org
      Reported-by: syzbot+d4b971e744b1f5439336@syzkaller.appspotmail.com
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      Link: https://lore.kernel.org/r/20230524034951.779531-3-tytso@mit.eduSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      b928dfdc
    • Song Liu's avatar
      module: fix module load for ia64 · db3e33dd
      Song Liu authored
      Frank reported boot regression in ia64 as:
      
      ELILO v3.16 for EFI/IA-64
      ..
      Uncompressing Linux... done
      Loading file AC100221.initrd.img...done
      [    0.000000] Linux version 6.4.0-rc3 (root@x4270) (ia64-linux-gcc
      (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39) #1 SMP Thu May 25 15:52:20
      CEST 2023
      [    0.000000] efi: EFI v1.1 by HP
      [    0.000000] efi: SALsystab=0x3ee7a000 ACPI 2.0=0x3fe2a000
      ESI=0x3ee7b000 SMBIOS=0x3ee7c000 HCDP=0x3fe28000
      [    0.000000] PCDP: v3 at 0x3fe28000
      [    0.000000] earlycon: uart8250 at MMIO 0x00000000f4050000 (options
      '9600n8')
      [    0.000000] printk: bootconsole [uart8250] enabled
      [    0.000000] ACPI: Early table checksum verification disabled
      [    0.000000] ACPI: RSDP 0x000000003FE2A000 000028 (v02 HP    )
      [    0.000000] ACPI: XSDT 0x000000003FE2A02C 0000CC (v01 HP     rx2620
      00000000 HP   00000000)
      [...]
      [    3.793350] Run /init as init process
      Loading, please wait...
      Starting systemd-udevd version 252.6-1
      [    3.951100] ------------[ cut here ]------------
      [    3.951100] WARNING: CPU: 6 PID: 140 at kernel/module/main.c:1547
      __layout_sections+0x370/0x3c0
      [    3.949512] Unable to handle kernel paging request at virtual address
      1000000000000000
      [    3.951100] Modules linked in:
      [    3.951100] CPU: 6 PID: 140 Comm: (udev-worker) Not tainted 6.4.0-rc3 #1
      [    3.956161] (udev-worker)[142]: Oops 11003706212352 [1]
      [    3.951774] Hardware name: hp server rx2620                   , BIOS
      04.29
      11/30/2007
      [    3.951774]
      [    3.951774] Call Trace:
      [    3.958339] Unable to handle kernel paging request at virtual address
      1000000000000000
      [    3.956161] Modules linked in:
      [    3.951774]  [<a0000001000156d0>] show_stack.part.0+0x30/0x60
      [    3.951774]                                 sp=e000000183a67b20
      bsp=e000000183a61628
      [    3.956161]
      [    3.956161]
      
      which bisect to module_memory change [1].
      
      Debug showed that ia64 uses some special sections:
      
      __layout_sections: section .got (sh_flags 10000002) matched to MOD_INVALID
      __layout_sections: section .sdata (sh_flags 10000003) matched to MOD_INVALID
      __layout_sections: section .sbss (sh_flags 10000003) matched to MOD_INVALID
      
      All these sections are loaded to module core memory before [1].
      
      Fix ia64 boot by loading these sections to MOD_DATA (core rw data).
      
      [1] commit ac3b4328 ("module: replace module_layout with module_memory")
      
      Fixes: ac3b4328 ("module: replace module_layout with module_memory")
      Reported-by: default avatarFrank Scheiner <frank.scheiner@web.de>
      Closes: https://lists.debian.org/debian-ia64/2023/05/msg00010.html
      Closes: https://marc.info/?l=linux-ia64&m=168509859125505
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarSong Liu <song@kernel.org>
      Tested-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
      db3e33dd
  4. 29 May, 2023 12 commits
  5. 28 May, 2023 10 commits
  6. 27 May, 2023 4 commits