Linux/linux 45db3abfs/smb/server oplock.c vfs_cache.c

Merge tag '6.9-rc7-ksmbd-fixes' of git://git.samba.org/ksmbd

Pull smb server fixes from Steve French:
 "Five ksmbd server fixes, all also for stable

   - Three fixes related to SMB3 leases (fixes two xfstests, and a
     locking issue)

   - Unitialized variable fix

   - Socket creation fix when bindv6only is set"

* tag '6.9-rc7-ksmbd-fixes' of git://git.samba.org/ksmbd:
  ksmbd: do not grant v2 lease if parent lease key and epoch are not set
  ksmbd: use rwsem instead of rwlock for lease break
  ksmbd: avoid to send duplicate lease break notifications
  ksmbd: off ipv6only for both ipv4/ipv6 binding
  ksmbd: fix uninitialized symbol 'share' in smb2_tree_connect()
DeltaFile
+35-30fs/smb/server/oplock.c
+14-14fs/smb/server/vfs_cache.c
+4-4fs/smb/server/smb2pdu.c
+4-0fs/smb/server/transport_tcp.c
+2-2fs/smb/server/smb_common.c
+1-1fs/smb/server/vfs_cache.h
+60-516 files

Linux/linux 065a057fs/fuse passthrough.c virtio_fs.c

Merge tag 'fuse-fixes-6.9-final' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse

Pull fuse fixes from Miklos Szeredi:
 "Two one-liner fixes for issues introduced in -rc1"

* tag 'fuse-fixes-6.9-final' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
  virtiofs: include a newline in sysfs tag
  fuse: verify zero padding in fuse_backing_map
DeltaFile
+1-1fs/fuse/passthrough.c
+1-1fs/fuse/virtio_fs.c
+2-22 files

Linux/linux fe35bf2fs/exfat file.c dir.c

Merge tag 'exfat-for-6.9-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat

Pull exfat fixes from Namjae Jeon:

 - Fix xfstests generic/013 test failure with dirsync mount option

 - Initialize the reserved fields of deleted file and stream extension
   dentries to zero

* tag 'exfat-for-6.9-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
  exfat: zero the reserved fields of file and stream extension dentries
  exfat: fix timing of synchronizing bitmap and inode
DeltaFile
+4-5fs/exfat/file.c
+2-0fs/exfat/dir.c
+6-52 files

Linux/linux f5fcbc8fs/bcachefs super-io.c io_write.c

Merge tag 'bcachefs-2024-05-07.2' of https://evilpiepirate.org/git/bcachefs

Pull bcachefs fixes from Kent Overstreet:

 - Various syzbot fixes; mainly small gaps in validation

 - Fix an integer overflow in fiemap() which was preventing filefrag
   from returning the full list of extents

 - Fix a refcounting bug on the device refcount, turned up by new
   assertions in the development branch

 - Fix a device removal/readd bug; write_super() was repeatedly dropping
   and retaking bch_dev->io_ref references

* tag 'bcachefs-2024-05-07.2' of https://evilpiepirate.org/git/bcachefs:
  bcachefs: Add missing sched_annotate_sleep() in bch2_journal_flush_seq_async()
  bcachefs: Fix race in bch2_write_super()
  bcachefs: BCH_SB_LAYOUT_SIZE_BITS_MAX

    [17 lines not shown]
DeltaFile
+34-17fs/bcachefs/super-io.c
+20-10fs/bcachefs/io_write.c
+14-8fs/bcachefs/move.c
+9-6fs/bcachefs/super.c
+10-4fs/bcachefs/backpointers.h
+14-0fs/bcachefs/sb-clean.c
+101-4514 files not shown
+149-7020 files

Linux/linux 6d7ddd8arch/arm64/boot/dts/qcom sa8155p-adp.dts, drivers/cache sifive_ccache.c

Merge tag 'soc-fixes-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc

Pull ARM SoC fixes from Arnd Bergmann:
 "These are a couple of last minute fixes that came in over the previous
  week, addressing:

   - A pin configuration bug on a qualcomm board that caused issues with
     ethernet and mmc

   - Two minor code fixes for misleading console output in the microchip
     firmware driver

   - A build warning in the sifive cache driver"

* tag 'soc-fixes-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
  firmware: microchip: clarify that sizes and addresses are in hex
  firmware: microchip: don't unconditionally print validation success
  arm64: dts: qcom: sa8155p-adp: fix SDHC2 CD pin configuration
  cache: sifive_ccache: Silence unused variable warning
DeltaFile
+13-17arch/arm64/boot/dts/qcom/sa8155p-adp.dts
+5-3drivers/firmware/microchip/mpfs-auto-update.c
+1-1drivers/cache/sifive_ccache.c
+19-213 files

Linux/linux 1ab1a19Documentation/admin-guide kernel-parameters.txt, drivers/pci/pcie aspm.c

Merge tag 'pci-v6.9-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci

Pull pci fixes from Bjorn Helgaas:

 - Update kernel-parameters doc to describe "pcie_aspm=off" more
   accurately (Bjorn Helgaas)

 - Restore the parent's (not the child's) ASPM state to the parent
   during resume, which fixes a reboot during resume (Kai-Heng Feng)

* tag 'pci-v6.9-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
  PCI/ASPM: Restore parent state to parent, child state to child
  PCI/ASPM: Clarify that pcie_aspm=off means leave ASPM untouched
DeltaFile
+3-2Documentation/admin-guide/kernel-parameters.txt
+2-2drivers/pci/pcie/aspm.c
+5-42 files

Linux/linux 96d88f6fs/fuse virtio_fs.c

virtiofs: include a newline in sysfs tag

The internal tag string doesn't contain a newline. Append one when
emitting the tag via sysfs.

[Stefan] Orthogonal to the newline issue, sysfs_emit(buf, "%s", fs->tag) is
needed to prevent format string injection.

Signed-off-by: Brian Foster <bfoster at redhat.com>
Fixes: a8f62f50b4e4 ("virtiofs: export filesystem tags through sysfs")
Signed-off-by: Miklos Szeredi <mszeredi at redhat.com>
DeltaFile
+1-1fs/fuse/virtio_fs.c
+1-11 files

Linux/linux 6e297a7fs/bcachefs journal.c

bcachefs: Add missing sched_annotate_sleep() in bch2_journal_flush_seq_async()

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+6-0fs/bcachefs/journal.c
+6-01 files

Linux/linux 54541c1fs/bcachefs super-io.c

bcachefs: Fix race in bch2_write_super()

bch2_write_super() was looping over online devices multiple times -
dropping and retaking io_ref each time.

This meant it could race with device removal; it could increment the
sequence number on a device but fail to write it - and then if the
device was re-added, it would get confused the next time around thinking
a superblock write was silently dropped.

Fix this by taking io_ref once, and stashing pointers to online devices
in a darray.

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+32-15fs/bcachefs/super-io.c
+32-151 files

Linux/linux 5549d1earch/arm64/boot/dts/qcom sa8155p-adp.dts

Merge tag 'qcom-arm64-fixes-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/fixes

One more Qualcomm Arm64 DeviceTree fix for v6.9

On ths SA8155P automotive platform, the wrong gpio controller is defined
for the SD-card detect pin, which depending on probe ordering of things
cause ethernet to be broken. The card detect pin reference is corrected
to solve this problem.

* tag 'qcom-arm64-fixes-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux:
  arm64: dts: qcom: sa8155p-adp: fix SDHC2 CD pin configuration

Link: https://lore.kernel.org/r/20240427153817.1430382-1-andersson@kernel.org
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
DeltaFile
+13-17arch/arm64/boot/dts/qcom/sa8155p-adp.dts
+13-171 files

Linux/linux dccb07ffs/btrfs tree-checker.c qgroup.c

Merge tag 'for-6.9-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux

Pull btrfs fixes from David Sterba:
 "Two more fixes, both have some visible effects on user space:

   - add check if quotas are enabled when passing qgroup inheritance
     info, this affects snapper that could fail to create a snapshot

   - do check for leaf/node flag WRITTEN earlier so that nodes are
     completely validated before access, this used to be done by
     integrity checker but it's been removed and left an unhandled case"

* tag 'for-6.9-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
  btrfs: make sure that WRITTEN is set on all metadata blocks
  btrfs: qgroup: do not check qgroup inherit if qgroup is disabled
DeltaFile
+15-15fs/btrfs/tree-checker.c
+2-0fs/btrfs/qgroup.c
+1-0fs/btrfs/tree-checker.h
+18-153 files

Linux/linux 3628e03drivers/gpu/drm/qxl qxl_release.c, include/linux dma-fence.h

Reapply "drm/qxl: simplify qxl_fence_wait"

This reverts commit 07ed11afb68d94eadd4ffc082b97c2331307c5ea.

Stephen Rostedt reports:
 "I went to run my tests on my VMs and the tests hung on boot up.
  Unfortunately, the most I ever got out was:

  [   93.607888] Testing event system initcall: OK
  [   93.667730] Running tests on all trace events:
  [   93.669757] Testing all events: OK
  [   95.631064] ------------[ cut here ]------------
  Timed out after 60 seconds"

and further debugging points to a possible circular locking dependency
between the console_owner locking and the worker pool locking.

Reverting the commit allows Steve's VM to boot to completion again.


    [16 lines not shown]
DeltaFile
+5-45drivers/gpu/drm/qxl/qxl_release.c
+0-7include/linux/dma-fence.h
+5-522 files

Linux/linux f3d049bdrivers/pci/pcie aspm.c

PCI/ASPM: Restore parent state to parent, child state to child

There's a typo that makes parent device uses child LNKCTL value and vice
versa. This causes Micron NVMe to trigger a reboot upon system resume.

Correct the typo to fix the issue.

Fixes: 64dbb2d70744 ("PCI/ASPM: Disable L1 before configuring L1 Substates")
Link: https://lore.kernel.org/r/20240506051602.1990743-1-kai.heng.feng@canonical.com
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
[bhelgaas: update subject]
Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
DeltaFile
+2-2drivers/pci/pcie/aspm.c
+2-21 files

Linux/linux ee5b455include/linux slab.h, mm slub.c

Merge tag 'slab-for-6.9-rc7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab

Pull slab fixes from Vlastimil Babka:

 - Fix for cleanup infrastructure (Dan Carpenter)

   This makes the __free(kfree) cleanup hooks not crash on error
   pointers.

 - SLUB fix for freepointer checking (Nicolas Bouchinet)

   This fixes a recently introduced bug that manifests when
   init_on_free, CONFIG_SLAB_FREELIST_HARDENED and consistency checks
   (slub_debug=F) are all enabled, and results in false-positive
   freepointer corrupt reports for caches that store freepointer outside
   of the object area.

* tag 'slab-for-6.9-rc7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
  mm/slab: make __free(kfree) accept error pointers
  mm/slub: avoid zeroing outside-object freepointer for single free
DeltaFile
+29-23mm/slub.c
+2-2include/linux/slab.h
+31-252 files

Linux/linux c73677cdrivers/auxdisplay Kconfig Makefile

Merge tag 'auxdisplay-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-auxdisplay

Pull auxdisplay fixes from Andy Shevchenko:

 - A couple of non-critical build fixes to Character LCD library

 - Miscellaneous fixes here and there

* tag 'auxdisplay-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-auxdisplay:
  auxdisplay: charlcd: Don't rebuild when CONFIG_PANEL_BOOT_MESSAGE=y
  auxdisplay: charlcd: Add missing MODULE_DESCRIPTION()
  auxdisplay: seg-led-gpio: Convert to platform remove callback returning void
  auxdisplay: linedisp: Group display drivers together
DeltaFile
+179-167drivers/auxdisplay/Kconfig
+5-5drivers/auxdisplay/Makefile
+2-4drivers/auxdisplay/seg-led-gpio.c
+3-0drivers/auxdisplay/charlcd.c
+189-1764 files

Linux/linux 18b4abcfs/bcachefs sb-members.h

bcachefs: Fix lifetime issue in device iterator helpers

bch2_get_next_dev() and bch2_get_next_online_dev() iterate over devices,
dropping and taking refs as they go; we can't access the previous device
(for ca->dev_idx) after we've dropped our ref to it, unless we take
rcu_read_lock() first.

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+2-2fs/bcachefs/sb-members.h
+2-21 files

Linux/linux a2ddaf9fs/bcachefs backpointers.h backpointers.c

bcachefs: bucket_pos_to_bp_noerror()

We don't want the assert when we're checking if the backpointer is
valid.

Reported-by: syzbot+bf7215c0525098e7747a at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+10-4fs/bcachefs/backpointers.h
+1-1fs/bcachefs/backpointers.c
+11-52 files

Linux/linux 2bb9600fs/bcachefs bkey_methods.c

bcachefs: Guard against unknown k.k->type in __bkey_invalid()

For forwards compatibility we have to allow unknown key types, and only
run the checks that make sense against them.

Fix a missing guard on k.k->type being known.

Reported-by: syzbot+ae4dc916da3ce51f284f at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+2-2fs/bcachefs/bkey_methods.c
+2-21 files

Linux/linux 9a0ec04fs/bcachefs fs.c

bcachefs: fix overflow in fiemap

filefrag (and potentially other utilities that call fiemap) sometimes
pass ULONG_MAX as the length.  fiemap_prep clamps excessively large
lengths - but the calculation of end can overflow if it occurs before
calling fiemap_prep.  When this happens, filefrag assumes it has read to
the end and exits.

Signed-off-by: Reed Riley <reed at riley.engineer>
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+1-1fs/bcachefs/fs.c
+1-11 files

Linux/linux feb077cfs/bcachefs super-io.c

bcachefs: Fix refcount put in sb_field_resize error path

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+1-1fs/bcachefs/super-io.c
+1-11 files

Linux/linux 7ffec9cfs/bcachefs recovery.c

bcachefs: don't free error pointers

Reported-by: syzbot+3333603f569fc2ef258c at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+2-1fs/bcachefs/recovery.c
+2-11 files

Linux/linux 88ab101fs/bcachefs checksum.c

bcachefs: Add missing skcipher_request_set_callback() call

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+1-0fs/bcachefs/checksum.c
+1-01 files

Linux/linux 3a2d025fs/bcachefs super.c

bcachefs: Fix bch2_dev_lookup() refcounting

bch2_dev_lookup() is supposed to take a ref on the device it returns, but
for_each_member_device() takes refs as it iterates,
for_each_member_device_rcu() does not.

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+2-6fs/bcachefs/super.c
+2-61 files

Linux/linux 71dac24fs/bcachefs bcachefs_format.h super-io.c

bcachefs: BCH_SB_LAYOUT_SIZE_BITS_MAX

Define a constant for the max superblock size, to avoid a too-large
shift.

Reported-by: syzbot+a8b0fb419355c91dda7f at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+2-0fs/bcachefs/bcachefs_format.h
+1-1fs/bcachefs/super-io.c
+3-12 files

Linux/linux 8060bf1fs/bcachefs quota.c

bcachefs: Fix snapshot_t() usage in bch2_fs_quota_read_inode()

bch2_fs_quota_read_inode() wasn't entirely updated to the
bch2_snapshot_tree() helper, which takes rcu lock.

Reported-by: syzbot+a3a9a61224ed3b7f0010 at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+3-5fs/bcachefs/quota.c
+3-51 files

Linux/linux 0ec5b3bfs/bcachefs move.c

bcachefs: Fix shift-by-64 in bformat_needs_redo()

Ancient versions of bcachefs produced packed formats that could
represent keys that our in memory format cannot represent;
bformat_needs_redo() has some tricky shifts to check for this sort of
overflow.

Reported-by: syzbot+594427aebfefeebe91c6 at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+14-8fs/bcachefs/move.c
+14-81 files

Linux/linux 6b8cbfcfs/bcachefs alloc_background.h alloc_background.c

bcachefs: Fix assert in bch2_alloc_v4_invalid()

Reported-by: syzbot+10827fa6b176e1acf1d0 at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+6-2fs/bcachefs/alloc_background.h
+2-2fs/bcachefs/alloc_background.c
+8-42 files

Linux/linux db42549fs/bcachefs super.c bcachefs_format.h

bcachefs: Add a better limit for maximum number of buckets

The bucket_gens array is a single array allocation (one byte per
bucket), and kernel allocations are still limited to INT_MAX.

Check this limit to avoid failing the bucket_gens array allocation.

Reported-by: syzbot+b29f436493184ea42e2b at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+7-0fs/bcachefs/super.c
+6-0fs/bcachefs/bcachefs_format.h
+3-3fs/bcachefs/sb-members.c
+1-0fs/bcachefs/errcode.h
+17-34 files

Linux/linux 1267df4fs/bcachefs io_write.c

bcachefs: Initialize bch_write_op->failed in inline data path

Normally this is initialized in __bch2_write(), which is executed in a
loop, but the inline data path skips this.

Reported-by: syzbot+fd3ccb331eb21f05d13b at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+2-0fs/bcachefs/io_write.c
+2-01 files

Linux/linux 4a8521bfs/bcachefs io_write.c

bcachefs: Inodes need extra padding for varint_decode_fast()

Reported-by: syzbot+66b9b74f6520068596a9 at syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+18-10fs/bcachefs/io_write.c
+18-101 files