Linux/linux 71b1543fs/smb/common smb2pdu.h, fs/smb/server ksmbd_netlink.h smb2pdu.c

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

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

   - rename fix

   - two fixes for potential out of bounds

   - fix for connections from MacOS (padding in close response)

   - fix for when to enable persistent handles"

* tag '6.9-rc5-ksmbd-fixes' of git://git.samba.org/ksmbd:
  ksmbd: add continuous availability share parameter
  ksmbd: common: use struct_group_attr instead of struct_group for network_open_info
  ksmbd: clear RENAME_NOREPLACE before calling vfs_rename
  ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
  ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
DeltaFile
+18-17fs/smb/server/ksmbd_netlink.h
+13-2fs/smb/server/smb2pdu.c
+5-8fs/smb/server/server.c
+5-0fs/smb/server/vfs.c
+1-1fs/smb/common/smb2pdu.h
+42-285 files

Linux/linux a2c63a3fs/bcachefs journal_io.c btree_key_cache.c

Merge tag 'bcachefs-2024-04-22' of https://evilpiepirate.org/git/bcachefs

Pull bcachefs fixes from Kent Overstreet:
 "Nothing too crazy in this one, and it looks like (fingers crossed) the
  recovery and repair issues are settling down - although there's going
  to be a long tail there, as we've still yet to really ramp up on error
  injection or syzbot.

   - fix a few more deadlocks in recovery

   - fix u32/u64 issues in mi_btree_bitmap

   - btree key cache shrinker now actually frees, with more
     instrumentation coming so we can verify that it's working
     correctly more easily in the future"

* tag 'bcachefs-2024-04-22' of https://evilpiepirate.org/git/bcachefs:
  bcachefs: If we run merges at a lower watermark, they must be nonblocking
  bcachefs: Fix inode early destruction path

    [13 lines not shown]
DeltaFile
+42-18fs/bcachefs/journal_io.c
+4-15fs/bcachefs/btree_key_cache.c
+13-2fs/bcachefs/thread_with_file.c
+6-3fs/bcachefs/fs.c
+8-0fs/bcachefs/sb-clean.c
+5-1fs/bcachefs/btree_update_interior.c
+78-3913 files not shown
+105-5219 files

Linux/linux 1c582ecinclude/linux/sunrpc svc_rdma.h, net/sunrpc/xprtrdma svc_rdma_rw.c svc_rdma_sendto.c

Merge tag 'nfsd-6.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux

Pull nfsd fix from Chuck Lever:

 - Fix an NFS/RDMA performance regression in v6.9-rc

* tag 'nfsd-6.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
  Revert "svcrdma: Add Write chunk WRs to the RPC's Send WR chain"
DeltaFile
+22-64net/sunrpc/xprtrdma/svc_rdma_rw.c
+3-10include/linux/sunrpc/svc_rdma.h
+1-4net/sunrpc/xprtrdma/svc_rdma_sendto.c
+26-783 files

Linux/linux 4d20084Documentation/admin-guide verify-bugs-and-bisect-regressions.rst

Merge tag 'docs-6.9-fixes2' of git://git.lwn.net/linux

Pull documentation fixes from Jonathan Corbet:
 "A set of updates from Thorsten to his (new) guide to verifying bugs
  and tracking down regressions"

* tag 'docs-6.9-fixes2' of git://git.lwn.net/linux:
  docs: verify/bisect: stable regressions: first stable, then mainline
  docs: verify/bisect: describe how to use a build host
  docs: verify/bisect: explain testing reverts, patches and newer code
  docs: verify/bisect: proper headlines and more spacing
  docs: verify/bisect: add and fetch stable branches ahead of time
  docs: verify/bisect: use git switch, tag kernel, and various fixes
DeltaFile
+417-180Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst
+417-1801 files

Linux/linux e858beefs/bcachefs btree_update_interior.c

bcachefs: If we run merges at a lower watermark, they must be nonblocking

Fix another deadlock related to the merge path; previously, we switched
to always running merges at a lower watermark (because they are
noncritical); but when we run at a lower watermark we also need to run
nonblocking or we've introduced a new deadlock.

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
Reported-and-tested-by: s at m-h.ug
DeltaFile
+5-1fs/bcachefs/btree_update_interior.c
+5-11 files

Linux/linux ed30a4a. Makefile

Linux 6.9-rc5
DeltaFile
+1-1Makefile
+1-11 files

Linux/linux 48cf398drivers/android binder.c, drivers/comedi/drivers vmk80xx.c

Merge tag 'char-misc-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char / misc driver fixes from Greg KH:
 "Here are some small char/misc and other driver fixes for 6.9-rc5.
  Included in here are the following:

   - binder driver fix for reported problem

   - speakup crash fix

   - mei driver fixes for reported problems

   - comdei driver fix

   - interconnect driver fixes

   - rtsx driver fix

   - peci.h kernel doc fix

    [15 lines not shown]
DeltaFile
+59-25drivers/misc/mei/vsc-tp.c
+12-23drivers/comedi/drivers/vmk80xx.c
+0-26drivers/interconnect/qcom/x1e80100.c
+16-1drivers/misc/mei/platform-vsc.c
+8-0drivers/interconnect/core.c
+3-1drivers/android/binder.c
+98-765 files not shown
+104-8011 files

Linux/linux 4e90ba7Documentation/process embargoed-hardware-issues.rst, fs/sysfs file.c

Merge tag 'driver-core-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core

Pull kernfs bugfix and documentation update from Greg KH:
 "Here are two changes for 6.9-rc5 that deal with "driver core" stuff,
  that do the following:

   - sysfs reference leak fix

   - embargoed-hardware-issues.rst update for Power

  Both of these have been in linux-next for over a week with no reported
  issues"

* tag 'driver-core-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
  Documentation: embargoed-hardware-issues.rst: Add myself for Power
  fs: sysfs: Fix reference leak in sysfs_break_active_protection()
DeltaFile
+1-1Documentation/process/embargoed-hardware-issues.rst
+2-0fs/sysfs/file.c
+3-12 files

Linux/linux c0c6b5cdrivers/tty/serial serial_port.c serial_core.c, drivers/tty/serial/8250 8250_dw.c

Merge tag 'tty-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull tty/serial driver fixes from Greg KH:
 "Here are some small tty and serial driver fixes for 6.9-rc5 that
  resolve a bunch of reported problems. Included in here are:

   - MAINTAINERS and .mailmap update for Richard Genoud

   - serial core regression fixes from 6.9-rc1 changes

   - pci id cleanups

   - serial core crash fix

   - stm32 driver fixes

   - 8250 driver fixes

  All of these have been in linux-next for a while with no reported

    [14 lines not shown]
DeltaFile
+34-0drivers/tty/serial/serial_port.c
+19-4drivers/tty/serial/serial_core.c
+0-14drivers/tty/serial/pmac_zilog.c
+11-2drivers/tty/serial/stm32-usart.c
+6-2drivers/tty/serial/mxs-auart.c
+3-3drivers/tty/serial/8250/8250_dw.c
+73-256 files not shown
+81-3412 files

Linux/linux 5fa0ab4drivers/thunderbolt switch.c usb4.c, drivers/usb/gadget/function f_fs.c

Merge tag 'usb-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb

Pull USB / Thunderbolt driver fixes from Greg KH:
 "Here are some small USB and Thunderbolt driver fixes for 6.9-rc5.
  Included in here are:

   - MAINTAINER file update for invalid email address

   - usb-serial device id updates

   - typec driver fixes

   - thunderbolt / usb4 driver fixes

   - usb core shutdown fixes

   - cdc-wdm driver revert for reported problem in -rc1

   - usb gadget driver fixes

    [28 lines not shown]
DeltaFile
+40-10drivers/thunderbolt/switch.c
+40-0drivers/usb/serial/option.c
+16-13drivers/usb/gadget/function/f_fs.c
+7-6drivers/thunderbolt/usb4.c
+5-7drivers/usb/host/xhci-trace.h
+8-2drivers/thunderbolt/tb.c
+116-3813 files not shown
+148-6519 files

Linux/linux 3b68086arch/x86/include/asm barrier.h, include/asm-generic barrier.h

Merge tag 'sched_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Borislav Petkov:

 - Add a missing memory barrier in the concurrency ID mm switching

* tag 'sched_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched: Add missing memory barrier in switch_mm_cid
DeltaFile
+14-6kernel/sched/sched.h
+8-0include/asm-generic/barrier.h
+3-0arch/x86/include/asm/barrier.h
+25-63 files

Linux/linux d07a0b8arch/x86/entry common.c entry_fred.c, arch/x86/kernel/cpu bugs.c cpuid-deps.c

Merge tag 'x86_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Borislav Petkov:

 - Fix CPU feature dependencies of GFNI, VAES, and VPCLMULQDQ

 - Print the correct error code when FRED reports a bad event type

 - Add a FRED-specific INT80 handler without the special dances that
   need to happen in the current one

 - Enable the using-the-default-return-thunk-but-you-should-not warning
   only on configs which actually enable those special return thunks

 - Check the proper feature flags when selecting BHI retpoline
   mitigation

* tag 'x86_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/cpufeatures: Fix dependencies for GFNI, VAES, and VPCLMULQDQ

    [4 lines not shown]
DeltaFile
+65-0arch/x86/entry/common.c
+7-4arch/x86/kernel/cpu/bugs.c
+5-5arch/x86/entry/entry_fred.c
+7-0arch/x86/lib/retpoline.S
+3-3arch/x86/kernel/cpu/cpuid-deps.c
+87-125 files

Linux/linux 0e42f38fs/bcachefs fs.c

bcachefs: Fix inode early destruction path

discard_new_inode() is the wrong interface to use when we need to free
an inode that was never inserted into the inode hash table; we can
bypass the whole iput() -> evict() path and replace it with
__destroy_inode(); kmem_cache_free() - this fixes a WARN_ON() about
I_NEW.

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

Linux/linux 85ab365fs/bcachefs journal_io.c

bcachefs: Fix deadlock in journal write path

bch2_journal_write() was incorrectly waiting on earlier journal writes
synchronously; this usually worked because most of the time we'd be
running in the context of a thread that did a journal_buf_put(), but
sometimes we'd be running out of the same workqueue that completes those
prior journal writes.

Additionally, this makes sure to punt to a workqueue before submitting
preflushes - we really don't want to be calling submit_bio() in the main
transaction commit path.

Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+42-18fs/bcachefs/journal_io.c
+42-181 files

Linux/linux adfe935fs/bcachefs btree_key_cache.c

bcachefs: Tweak btree key cache shrinker so it actually frees

Freeing key cache items is a multi stage process; we need to wait for an
SRCU grace period to elapse, and we handle this ourselves - partially to
avoid callback overhead, but primarily so that when allocating we can
first allocate from the freed items waiting for an SRCU grace period.

Previously, the shrinker was counting the items on the 'waiting for SRCU
grace period' lists as items being scanned, but this meant that too many
items waiting for an SRCU grace period could prevent it from doing any
work at all.

After this, we're seeing that items skipped due to the accessed bit are
the main cause of the shrinker not making any progress, and we actually
want the key cache shrinker to run quite aggressively because reclaimed
items will still generally be found (more compactly) in the btree node
cache - so we also tweak the shrinker to not count those against
nr_to_scan.

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

Linux/linux 6e4d9bdfs/bcachefs btree_types.h

bcachefs: bkey_cached.btree_trans_barrier_seq needs to be a ulong

this stores the SRCU sequence number, which we use to check if an SRCU
barrier has elapsed; this is a partial fix for the key cache shrinker
not actually freeing.

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

Linux/linux 977b1efblock bdev.c blk-iocost.c, include/linux blkdev.h

Merge tag 'block-6.9-20240420' of git://git.kernel.dk/linux

Pull block fixes from Jens Axboe:
 "Just two minor fixes that should go into the 6.9 kernel release, one
  fixing a regression with partition scanning errors, and one fixing a
  WARN_ON() that can get triggered if we race with a timer"

* tag 'block-6.9-20240420' of git://git.kernel.dk/linux:
  blk-iocost: do not WARN if iocg was already offlined
  block: propagate partition scanning errors to the BLKRRPART ioctl
DeltaFile
+19-10block/bdev.c
+5-2block/blk-iocost.c
+2-1block/ioctl.c
+2-0include/linux/blkdev.h
+28-134 files

Linux/linux 39316e5. MAINTAINERS

Merge tag 'email' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull email address update from James Bottomley:
 "My IBM email has stopped working, so update to a working email
  address"

* tag 'email' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  MAINTAINERS: update to working email address
DeltaFile
+2-2MAINTAINERS
+2-21 files

Linux/linux 8177722arch/x86/kvm/mmu tdp_mmu.c, arch/x86/kvm/svm vmenter.S

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull kvm fixes from Paolo Bonzini:
 "This is a bit on the large side, mostly due to two changes:

   - Changes to disable some broken PMU virtualization (see below for
     details under "x86 PMU")

   - Clean up SVM's enter/exit assembly code so that it can be compiled
     without OBJECT_FILES_NON_STANDARD. This fixes a warning "Unpatched
     return thunk in use. This should not happen!" when running KVM
     selftests.

  Everything else is small bugfixes and selftest changes:

   - Fix a mostly benign bug in the gfn_to_pfn_cache infrastructure
     where KVM would allow userspace to refresh the cache with a bogus
     GPA. The bug has existed for quite some time, but was exposed by a
     new sanity check added in 6.9 (to ensure a cache is either

    [63 lines not shown]
DeltaFile
+44-53arch/x86/kvm/svm/vmenter.S
+46-14tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c
+22-29arch/x86/kvm/mmu/tdp_mmu.c
+35-15virt/kvm/pfncache.c
+35-6arch/x86/kvm/vmx/vmx.c
+19-1tools/testing/selftests/kvm/x86_64/pmu_counters_test.c
+201-11819 files not shown
+267-15925 files

Linux/linux e43afaearch/powerpc/crypto chacha-p10-glue.c, arch/powerpc/kernel iommu.c

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

Pull powerpc fixes from Michael Ellerman:

 - Fix wireguard loading failure on pre-Power10 due to Power10 crypto
   routines

 - Fix papr-vpd selftest failure due to missing variable initialization

 - Avoid unnecessary get/put in spapr_tce_platform_iommu_attach_dev()

Thanks to Geetika Moolchandani, Jason Gunthorpe, Michal Suchánek, Nathan
Lynch, and Shivaprasad G Bhat.

* tag 'powerpc-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
  selftests/powerpc/papr-vpd: Fix missing variable initialization
  powerpc/crypto/chacha-p10: Fix failure on non Power10
  powerpc/iommu: Refactor spapr_tce_platform_iommu_attach_dev()
DeltaFile
+7-1arch/powerpc/crypto/chacha-p10-glue.c
+3-4arch/powerpc/kernel/iommu.c
+1-1tools/testing/selftests/powerpc/papr_vpd/papr_vpd.c
+11-63 files

Linux/linux 560d4e7drivers/clk clk.c, drivers/clk/mediatek clk-mtk.c clk-mt7988-infracfg.c

Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux

Pull clk fixes from Stephen Boyd:
 "A couple clk driver fixes, a build fix, and a deadlock fix:

   - Mediatek mt7988 has broken PCIe because the wrong parent is used

   - Mediatek clk drivers may deadlock when registering their clks
     because the clk provider device is repeatedly runtime PM resumed
     and suspended during probe and clk registration.

     Resuming the clk provider device deadlocks with an ABBA deadlock
     due to genpd_lock and the clk prepare_lock. The fix is to keep the
     device runtime resumed while registering clks.

   - Another runtime PM related deadlock, this time with disabling
     unused clks during late init.

     We get an ABBA deadlock where a device is runtime PM resuming (or

    [21 lines not shown]
DeltaFile
+135-38drivers/clk/clk.c
+15-0drivers/clk/mediatek/clk-mtk.c
+5-0include/linux/clk.h
+1-1drivers/clk/mediatek/clk-mt7988-infracfg.c
+156-394 files

Linux/linux 32cf5a4include/linux/sunrpc svc_rdma.h, net/sunrpc/xprtrdma svc_rdma_rw.c svc_rdma_sendto.c

Revert "svcrdma: Add Write chunk WRs to the RPC's Send WR chain"

Performance regression reported with NFS/RDMA using Omnipath,
bisected to commit e084ee673c77 ("svcrdma: Add Write chunk WRs to
the RPC's Send WR chain").

Tracing on the server reports:

  nfsd-7771  [060]  1758.891809: svcrdma_sq_post_err:
        cq.id=205 cid=226 sc_sq_avail=13643/851 status=-12

sq_post_err reports ENOMEM, and the rdma->sc_sq_avail (13643) is
larger than rdma->sc_sq_depth (851). The number of available Send
Queue entries is always supposed to be smaller than the Send Queue
depth. That seems like a Send Queue accounting bug in svcrdma.

As it's getting to be late in the 6.9-rc cycle, revert this commit.
It can be revisited in a subsequent kernel release.


    [3 lines not shown]
DeltaFile
+22-64net/sunrpc/xprtrdma/svc_rdma_rw.c
+3-10include/linux/sunrpc/svc_rdma.h
+1-4net/sunrpc/xprtrdma/svc_rdma_sendto.c
+26-783 files

Linux/linux 366c5ce. MAINTAINERS

MAINTAINERS: update to working email address

jejb at linux.ibm.com no longer works.

Signed-off-by: James Bottomley <James.Bottomley at HansenPartnership.com>
DeltaFile
+2-2MAINTAINERS
+2-21 files

Linux/linux ec438acfs/bcachefs super.c

bcachefs: Fix missing call to bch2_fs_allocator_background_exit()

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

Linux/linux fcdbc1dfs/bcachefs sb-clean.c sb-errors_types.h

bcachefs: Check for journal entries overruning end of sb clean section

Fix a missing bounds check in superblock validation.

Note that we don't yet have repair code for this case - repair code for
individual items is generally low priority, since the whole superblock
is checksummed, validated prior to write, and we have backups.

Reported-by: lei lu <llfamsec at gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet at linux.dev>
DeltaFile
+8-0fs/bcachefs/sb-clean.c
+2-1fs/bcachefs/sb-errors_types.h
+10-12 files

Linux/linux 0268a7cfs/smb/common smb2pdu.h

ksmbd: common: use struct_group_attr instead of struct_group for network_open_info

4byte padding cause the connection issue with the applications of MacOS.
smb2_close response size increases by 4 bytes by padding, And the smb
client of MacOS check it and stop the connection. This patch use
struct_group_attr instead of struct_group for network_open_info to use
 __packed to avoid padding.

Fixes: 0015eb6e1238 ("smb: client, common: fix fortify warnings")
Cc: stable at vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon at kernel.org>
Signed-off-by: Steve French <stfrench at microsoft.com>
DeltaFile
+1-1fs/smb/common/smb2pdu.h
+1-11 files

Linux/linux e9d8c2ffs/smb/server ksmbd_netlink.h smb2pdu.c

ksmbd: add continuous availability share parameter

If capabilities of the share is not SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY,
ksmbd should not grant a persistent handle to the client.
This patch add continuous availability share parameter to control it.

Signed-off-by: Namjae Jeon <linkinjeon at kernel.org>
Signed-off-by: Steve French <stfrench at microsoft.com>
DeltaFile
+18-17fs/smb/server/ksmbd_netlink.h
+9-2fs/smb/server/smb2pdu.c
+27-192 files

Linux/linux 17cf0c2fs/smb/server smb2pdu.c

ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

The response buffer should be allocated in smb2_allocate_rsp_buf
before validating request. But the fields in payload as well as smb2 header
is used in smb2_allocate_rsp_buf(). This patch add simple buffer size
validation to avoid potencial out-of-bounds in request buffer.

Cc: stable at vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon at kernel.org>
Signed-off-by: Steve French <stfrench at microsoft.com>
DeltaFile
+4-0fs/smb/server/smb2pdu.c
+4-01 files

Linux/linux 4973b04fs/smb/server vfs.c

ksmbd: clear RENAME_NOREPLACE before calling vfs_rename

File overwrite case is explicitly handled, so it is not necessary to
pass RENAME_NOREPLACE to vfs_rename.

Clearing the flag fixes rename operations when the share is a ntfs-3g
mount. The latter uses an older version of fuse with no support for
flags in the ->rename op.

Cc: stable at vger.kernel.org
Signed-off-by: Marios Makassikis <mmakassikis at freebox.fr>
Acked-by: Namjae Jeon <linkinjeon at kernel.org>
Signed-off-by: Steve French <stfrench at microsoft.com>
DeltaFile
+5-0fs/smb/server/vfs.c
+5-01 files

Linux/linux c119f4efs/smb/server server.c

ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf

If ->ProtocolId is SMB2_TRANSFORM_PROTO_NUM, smb2 request size
validation could be skipped. if request size is smaller than
sizeof(struct smb2_query_info_req), slab-out-of-bounds read can happen in
smb2_allocate_rsp_buf(). This patch allocate response buffer after
decrypting transform request. smb3_decrypt_req() will validate transform
request size and avoid slab-out-of-bound in smb2_allocate_rsp_buf().

Reported-by: Norbert Szetei <norbert at doyensec.com>
Cc: stable at vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon at kernel.org>
Signed-off-by: Steve French <stfrench at microsoft.com>
DeltaFile
+5-8fs/smb/server/server.c
+5-81 files