[GIT PULL] ksmbd server fixes for 7.4-rc5
From: Namjae Jeon
Date: Sun Nov 29 2026 - 01:05:44 EST
Hi Linus,
This is ksmbd server fixes pull request for v7.4-rc5. I add a description of
this pull request below. Please pull ksmbd with following ones.
Thanks!
The following changes since commit 23c62304dde29abe92013d85910d03a77dada35d:
Merge tag 'for-linus-7.4a-rc3-tag' of
git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip (2026-11-14
10:59:13 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/smb.git
tags/ksmbd-for-7.4-rc5
for you to fetch changes up to f2f961e0983c8f339f842e1a8c351e6963793868:
ksmbd: fix negative timestamps being saved to disk (2026-11-15 10:08:13 +0900)
----------------------------------------------------------------
- Validate SMB2 LOCK requests before checking the unlock-only rule for
expired Kerberos sessions. This prevents an out-of-bounds read while
allowing clients to release existing byte-range locks.
- Align and sign the final response when an SMB2 compound ends early so
clients can verify the compound response.
- Process the SMB2 CREATE allocation-size context only on writable
shares, preventing disk space reservations through read-only shares.
- Normalize timestamps before the Unix epoch during NT-to-Unix
conversion so the nanosecond field is valid when written to disk.
- Recognize the -1 and -2 timestamp sentinels in FileBasicInformation
to prevent corruption of inode and DOS xattr timestamps.
- Use filesystem birth time as the default creation time in directory
entries, with inode change time as the fallback.
----------------------------------------------------------------
Ian Bridges (2):
ksmbd: fix out-of-bounds read in expired-session LOCK check
ksmbd: ignore the allocation size create context on a read-only share
Michail Andreas Michalopoulos (1):
ksmbd: sign the last response of a compound that ends early
koraynilay (3):
ksmbd: set create_time to btime in ksmbd_vfs_fill_dentry_attrs()
ksmbd: fix timestamp corruption on special values
ksmbd: fix negative timestamps being saved to disk
fs/smb/server/misc.c | 3 +-
fs/smb/server/smb2pdu.c | 94 ++++++++++++++++++++++++-------------------------
fs/smb/server/vfs.c | 5 ++-
3 files changed, 52 insertions(+), 50 deletions(-)