All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] ksmbd server fixes
@ 2022-06-28 22:07 Steve French
  2022-06-29 16:44 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-06-28 22:07 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
f2906aa863381afb0015a9eb7fefad885d4e5a56:

  Linux 5.19-rc1 (2022-06-05 17:18:54 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.19-rc4-ksmbd-server-fixes

for you to fetch changes up to 067baa9a37b32b95fdeabccde4b0cb6a2cf95f96:

  ksmbd: use vfs_llseek instead of dereferencing NULL (2022-06-25
19:52:49 -0500)

----------------------------------------------------------------
Six ksmbd server fixes, including 3 for stable fixing:

- seek null check
- offset validation in FSCTL_SET_ZERO_DATA
- fallocate fix (relates e.g. to xfstests generic/091 and 263)
- two cleanup fixes
- fix socket settings on some arch

----------------------------------------------------------------
Christophe JAILLET (1):
      ksmbd: smbd: Remove useless license text when
SPDX-License-Identifier is already used

Hyunchul Lee (1):
      ksmbd: remove duplicate flag set in smb2_write

Jason A. Donenfeld (1):
      ksmbd: use vfs_llseek instead of dereferencing NULL

Namjae Jeon (3):
      ksmbd: use SOCK_NONBLOCK type for kernel_accept()
      ksmbd: set the range of bytes to zero without extending file
size in FSCTL_ZERO_DATA
      ksmbd: check invalid FileOffset and BeyondFinalZero in FSCTL_ZERO_DATA

 fs/ksmbd/smb2pdu.c        | 32 ++++++++++++++++++--------------
 fs/ksmbd/transport_rdma.c | 10 ----------
 fs/ksmbd/transport_tcp.c  |  2 +-
 fs/ksmbd/vfs.c            |  8 +++++---
 4 files changed, 24 insertions(+), 28 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-04-22 23:20 Steve French
  2024-04-22 23:51 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-04-22 23:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Namjae Jeon, CIFS

Please pull the following changes since commit
0bbac3facb5d6cc0171c45c9873a2dc96bea9680:

  Linux 6.9-rc4 (2024-04-14 13:38:39 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.9-rc5-ksmbd-fixes

for you to fetch changes up to e9d8c2f95ab8acaf3f4d4a53682a4afa3c263692:

  ksmbd: add continuous availability share parameter (2024-04-19 20:48:47 -0500)

----------------------------------------------------------------
Five ksmbd server fixes, most also for stable
- rename fix
- fix for two potential out of bounds
- fix for connections from MacOS (padding in close response)
- fix for when to enable persistent handles
----------------------------------------------------------------
Marios Makassikis (1):
      ksmbd: clear RENAME_NOREPLACE before calling vfs_rename

Namjae Jeon (4):
      ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
      ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
      ksmbd: common: use struct_group_attr instead of struct_group for
network_open_info
      ksmbd: add continuous availability share parameter

 fs/smb/common/smb2pdu.h       |  2 +-
 fs/smb/server/ksmbd_netlink.h | 35 ++++++++++++++++++-----------------
 fs/smb/server/server.c        | 13 +++++--------
 fs/smb/server/smb2pdu.c       | 15 +++++++++++++--
 fs/smb/server/vfs.c           |  5 +++++
 5 files changed, 42 insertions(+), 28 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-04-05  3:15 Steve French
  2024-04-05 17:09 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-04-05  3:15 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
39cd87c4eb2b893354f3b850f916353f2658ae6f:

  Linux 6.9-rc2 (2024-03-31 14:32:39 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.9-rc2-ksmbd-server-fixes

for you to fetch changes up to 5ed11af19e56f0434ce0959376d136005745a936:

  ksmbd: do not set SMB2_GLOBAL_CAP_ENCRYPTION for SMB 3.1.1
(2024-04-02 09:21:25 -0500)

----------------------------------------------------------------
3 ksmbd changesets, all also for stable
- encryption fix
- memory overrun fix
- oplock break fix
----------------------------------------------------------------
Namjae Jeon (3):
      ksmbd: don't send oplock break if rename fails
      ksmbd: validate payload size in ipc response
      ksmbd: do not set SMB2_GLOBAL_CAP_ENCRYPTION for SMB 3.1.1

 fs/smb/server/ksmbd_netlink.h     |  3 ++-
 fs/smb/server/mgmt/share_config.c |  7 ++++++-
 fs/smb/server/smb2ops.c           | 10 +++++-----
 fs/smb/server/smb2pdu.c           |  3 ++-
 fs/smb/server/transport_ipc.c     | 37 +++++++++++++++++++++++++++++++++++++
 5 files changed, 52 insertions(+), 8 deletions(-)


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-03-20 17:06 Steve French
  2024-03-20 23:46 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-03-20 17:06 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Namjae Jeon

Please pull the following changes since commit
e8f897f4afef0031fe618a8e94127a0934896aba:

  Linux 6.8 (2024-03-10 13:38:09 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/v6.9-rc-smb3-server-fixes

for you to fetch changes up to def30e72d8abaf68da10682767e584519c234c4c:

  ksmbd: remove module version (2024-03-18 21:21:38 -0500)

----------------------------------------------------------------
Nine ksmbd server changesets:
- Two patches that add support for durable file handles (an important
data integrity feature)
- Fixes for two potential out of bounds issues
- FIx possible null dereference in close
- Two getattr fixes
- Trivial typo fix and a minor cleanup fix
----------------------------------------------------------------
Colin Ian King (1):
      ksmbd: Fix spelling mistake "connction" -> "connection"

Marios Makassikis (3):
      ksmbd: replace generic_fillattr with vfs_getattr
      ksmbd: retrieve number of blocks using vfs_getattr in
set_file_allocation_info
      ksmbd: fix possible null-deref in smb_lazy_parent_lease_break_close

Namjae Jeon (5):
      ksmbd: mark SMB2_SESSION_EXPIRED to session when destroying
previous session
      ksmbd: add support for durable handles v1/v2
      ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
      ksmbd: fix potencial out-of-bounds when buffer offset is invalid
      ksmbd: remove module version

 fs/smb/server/glob.h              |   2 -
 fs/smb/server/ksmbd_netlink.h     |   1 +
 fs/smb/server/mgmt/user_session.c |  28 ++-
 fs/smb/server/mgmt/user_session.h |   3 +
 fs/smb/server/oplock.c            |  96 +++++++--
 fs/smb/server/oplock.h            |   7 +-
 fs/smb/server/server.c            |   1 -
 fs/smb/server/smb2misc.c          |  26 ++-
 fs/smb/server/smb2ops.c           |   6 +
 fs/smb/server/smb2pdu.c           | 509
++++++++++++++++++++++++++++++++++++----------
 fs/smb/server/smb2pdu.h           |  15 ++
 fs/smb/server/smb_common.c        |  11 +-
 fs/smb/server/vfs.c               |  12 +-
 fs/smb/server/vfs_cache.c         | 137 ++++++++++++-
 fs/smb/server/vfs_cache.h         |   9 +
 15 files changed, 716 insertions(+), 147 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-02-10  1:45 Steve French
  2024-02-10 16:26 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-02-10  1:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, Namjae Jeon, LKML

Please pull the following changes since commit
54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478:

  Linux 6.8-rc3 (2024-02-04 12:20:36 +0000)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.8-rc3-ksmbd-server-fixes

for you to fetch changes up to 108a020c64434fed4b69762879d78cd24088b4c7:

  ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails (2024-02-07
20:23:37 -0600)

----------------------------------------------------------------
Two small ksmbd server fixes:
- one for a memory leak
- the other a minor kernel-doc fix

----------------------------------------------------------------
Fedor Pchelkin (1):
      ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails

Yang Li (1):
      ksmbd: Add kernel-doc for ksmbd_extract_sharename() function

 fs/smb/server/misc.c    | 1 +
 fs/smb/server/smb2pdu.c | 8 ++++++--

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-01-27  7:20 Steve French
  2024-01-27 17:21 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-01-27  7:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
6613476e225e090cc9aad49be7fa504e290dd33d:

  Linux 6.8-rc1 (2024-01-21 14:11:32 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.8-rc2-smb3-server-fixes

for you to fetch changes up to ebeae8adf89d9a82359f6659b1663d09beec2faa:

  ksmbd: fix global oob in ksmbd_nl_policy (2024-01-25 00:16:54 -0600)

----------------------------------------------------------------
2 ksmbd fixes, including one for stable
- Fix netlink OOB
- Minor kernel doc fix

----------------------------------------------------------------
Lin Ma (1):
      ksmbd: fix global oob in ksmbd_nl_policy

Yang Li (1):
      smb: Fix some kernel-doc comments

 fs/smb/server/ksmbd_netlink.h | 3 ++-
 fs/smb/server/transport_ipc.c | 4 ++--
 fs/smb/server/transport_tcp.c | 2 ++
 3 files changed, 6 insertions(+), 3 deletions(-)

--
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-01-18  0:39 Steve French
  2024-01-19 18:03 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-01-18  0:39 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, Namjae Jeon, CIFS

Please pull the following changes since commit
6a31658aa1c0b757df652f6fcf3a001f90fda302:

  Merge tag '6.8-rc-smb-server-fixes' of git://git.samba.org/ksmbd
(2024-01-11 20:27:41 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.8-rc-smb-server-fixes-part2

for you to fetch changes up to 77bebd186442a7d703b796784db7495129cc3e70:

  ksmbd: only v2 leases handle the directory (2024-01-14 22:14:56 -0600)

----------------------------------------------------------------
Four ksmbd server fixes
- Fix for incorrect oplock break on directories when leases disabled
- UAF fix for race between create and destroy of tcp connection
- Important session setup SPNEGO fix
- Update ksmbd feature status summary

----------------------------------------------------------------
Namjae Jeon (4):
      ksmbd: update feature status in documentation
      ksmbd: validate mech token in session setup
      ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
      ksmbd: only v2 leases handle the directory

 Documentation/filesystems/smb/ksmbd.rst |  9 ++++++---
 fs/smb/server/asn1.c                    |  5 +++++
 fs/smb/server/connection.c              |  6 ------
 fs/smb/server/connection.h              |  2 +-
 fs/smb/server/oplock.c                  |  6 ++++++
 fs/smb/server/smb2pdu.c                 | 22 +++++++++++++++++-----
 fs/smb/server/transport_rdma.c          | 11 ++++++-----
 fs/smb/server/transport_tcp.c           | 13 +++++++------
 8 files changed, 48 insertions(+), 26 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2024-01-11 14:20 Steve French
  2024-01-12  5:07 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2024-01-11 14:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, Namjae Jeon, LKML

Please pull the following changes since commit
0dd3ee31125508cd67f7e7172247f05b7fd1753a:

  Linux 6.7 (2024-01-07 12:18:38 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.8-rc-smb-server-fixes

for you to fetch changes up to 8fb7b723924cc9306bc161f45496497aec733904:

  ksmbd: Add missing set_freezable() for freezable kthread (2024-01-09
20:01:16 -0600)

----------------------------------------------------------------
11 ksmbd server fixes
- memory allocation fix
- Three lease fixes, including important rename fix
- read only share fix
- thread freeze fix
- Three cleanup fixes (two kernel doc related)
- locking fix in setting EAs
- packet header validation fix

----------------------------------------------------------------
Christophe JAILLET (1):
      ksmbd: Remove usage of the deprecated ida_simple_xx() API

Fedor Pchelkin (1):
      ksmbd: free ppace array on error in parse_dacl

Kevin Hao (1):
      ksmbd: Add missing set_freezable() for freezable kthread

Li Nan (1):
      ksmbd: validate the zero field of packet header

Namjae Jeon (5):
      ksmbd: set v2 lease version on lease upgrade
      ksmbd: fix potential circular locking issue in smb2_set_ea()
      ksmbd: don't increment epoch if current state and request state are same
      ksmbd: don't allow O_TRUNC open on read-only share
      ksmbd: send lease break notification on FILE_RENAME_INFORMATION

Randy Dunlap (2):
      ksmbd: auth: fix most kernel-doc warnings
      ksmbd: vfs: fix all kernel-doc warnings

 fs/smb/server/auth.c           | 14 ++++++++------
 fs/smb/server/connection.c     |  1 +
 fs/smb/server/mgmt/ksmbd_ida.c | 21 ++++++---------------
 fs/smb/server/oplock.c         | 16 +++++++++++-----
 fs/smb/server/smb2pdu.c        | 31 ++++++++++++++-----------------
 fs/smb/server/smb_common.c     |  6 +++++-
 fs/smb/server/smbacl.c         | 11 +++++++----
 fs/smb/server/vfs.c            | 28 ++++++++++++++++++----------
 8 files changed, 70 insertions(+), 58 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-11-27 21:00 Steve French
  2023-11-28  1:26 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-11-27 21:00 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

[resending due to email bounce]

Please pull the following changes since commit
98b1cc82c4affc16f5598d4fa14b1858671b2263:

  Linux 6.7-rc2 (2023-11-19 15:02:14 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.7-rc3-smb3-server-fixes

for you to fetch changes up to cd80ce7e68f1624ac29cd0a6b057789d1236641e:

  ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error
(2023-11-23 20:50:45 -0600)

----------------------------------------------------------------
Seven ksmbd server fixes:
- Memory leak fix
- Fix possible deadlock in open
- Multiple SMB3 leasing (caching) fixes including:
     incorrect open count (found via xfstest generic/002 with leases)
     lease breaking incorrect serialization
     lease break error handling fix
     fix sending async response when lease pending
- Async command fix

----------------------------------------------------------------
Namjae Jeon (6):
      ksmbd: fix possible deadlock in smb2_open
      ksmbd: separately allocate ci per dentry
      ksmbd: move oplock handling after unlock parent dir
      ksmbd: release interim response after sending status pending response
      ksmbd: move setting SMB2_FLAGS_ASYNC_COMMAND and AsyncId
      ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error

Zongmin Zhou (1):
      ksmbd: prevent memory leak on error return

 fs/smb/server/ksmbd_work.c |  10 ++-
 fs/smb/server/oplock.c     |   3 +-
 fs/smb/server/smb2pdu.c    | 162 +++++++++++++++++++++++----------------------
 fs/smb/server/smbacl.c     |   7 +-
 fs/smb/server/smbacl.h     |   2 +-
 fs/smb/server/vfs.c        |  70 ++++++++++++--------
 fs/smb/server/vfs.h        |  10 ++-
 fs/smb/server/vfs_cache.c  |  33 ++++-----
 fs/smb/server/vfs_cache.h  |   6 +-
 9 files changed, 162 insertions(+), 141 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-11-10  7:16 Steve French
  2023-11-10 18:47 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-11-10  7:16 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, LKML, CIFS

Please pull the following changes since commit
766e9cf3bd64c45fcace3acc6f8b3df815448ea3:

  Merge tag '6.7-rc-smb3-client-fixes-part1' of
git://git.samba.org/sfrench/cifs-2.6 (2023-11-04 09:13:50 -1000)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.7-rc-smb3-server-part2

for you to fetch changes up to 5a5409d90bd05f87fe5623a749ccfbf3f7c7d400:

  ksmbd: handle malformed smb1 message (2023-11-07 18:54:25 -0600)

----------------------------------------------------------------
Three ksmbd server fixes (two also for stable):
- slab out of bounds fix in ACL handling
- fix malformed request oops
- minor doc fix
----------------------------------------------------------------
Namjae Jeon (3):
      ksmbd: fix slab out of bounds write in smb_inherit_dacl()
      ksmbd: fix kernel-doc comment of ksmbd_vfs_kern_path_locked()
      ksmbd: handle malformed smb1 message

 fs/smb/server/smb_common.c | 11 +++++++++++
 fs/smb/server/smbacl.c     | 29 ++++++++++++++++++++++++++---
 fs/smb/server/vfs.c        |  7 ++++---
 3 files changed, 41 insertions(+), 6 deletions(-)


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-11-02  2:46 Steve French
  2023-11-02 18:38 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-11-02  2:46 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1:

  Linux 6.6-rc7 (2023-10-22 12:11:21 -1000)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.7-rc-ksmbd-server-fixes

for you to fetch changes up to 67797da8a4b82446d42c52b6ee1419a3100d78ff:

  ksmbd: no need to wait for binded connection termination at logoff
(2023-10-30 21:58:12 -0500)

----------------------------------------------------------------
Seven ksmbd server fixes
- logoff improvement for multichannel bound connections
- unicode fix for surrogate pairs
- RDMA (smbdirect) fix for IB devices
- fix locking deadlock in kern_path_create during rename
- iov memory allocation fix
- Two minor cleanup patches (doc cleanup, and unused variable)

----------------------------------------------------------------
Cheng-Han Wu (1):
      ksmbd: Remove unused field in ksmbd_user struct

Kangjing Huang (1):
      ksmbd: fix missing RDMA-capable flag for IPoIB device in
ksmbd_rdma_capable_netdev()

Marios Makassikis (1):
      ksmbd: fix recursive locking in vfs helpers

Namjae Jeon (4):
      ksmbd: reorganize ksmbd_iov_pin_rsp()
      ksmbd: fix kernel-doc comment of ksmbd_vfs_setxattr()
      ksmbd: add support for surrogate pair conversion
      ksmbd: no need to wait for binded connection termination at logoff

 fs/smb/server/connection.c       |  16 ----
 fs/smb/server/ksmbd_work.c       |  43 ++++-----
 fs/smb/server/mgmt/user_config.h |   1 -
 fs/smb/server/transport_rdma.c   |  40 ++++++---
 fs/smb/server/unicode.c          | 187 +++++++++++++++++++++++++++++----------
 fs/smb/server/vfs.c              |  25 +-----
 6 files changed, 194 insertions(+), 118 deletions(-)


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-10-15  2:46 Steve French
  2023-10-15  2:52 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-10-15  2:46 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
94f6f0550c625fab1f373bb86a6669b45e9748b3:

  Linux 6.6-rc5 (2023-10-08 13:49:43 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git 6.6-rc5-ksmbd-server-fixes

for you to fetch changes up to 1903e6d0578118e9aab1ee23f4a9de55737d1d05:

  ksmbd: fix potential double free on smb2_read_pipe() error path
(2023-10-12 22:44:11 -0500)

----------------------------------------------------------------
Four SMB3 server fixes
- Fix for possible double free in RPC read
- Add additional check to clarify smb2_open path and quiet Coverity
- Fix incorrect error rsp in a compounding path
- Fix to properly fail open of file with pending delete on close
----------------------------------------------------------------
Namjae Jeon (4):
      ksmbd: not allow to open file if delelete on close bit is set
      ksmbd: fix wrong error response status by using set_smb2_rsp_status()
      ksmbd: fix Null pointer dereferences in ksmbd_update_fstate()
      ksmbd: fix potential double free on smb2_read_pipe() error path

 fs/smb/server/smb2pdu.c   | 11 ++++++-----
 fs/smb/server/vfs_cache.c |  7 +++++--
 2 files changed, 11 insertions(+), 7 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-10-08  4:27 Steve French
  2023-10-08 18:06 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-10-08  4:27 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
8a749fd1a8720d4619c91c8b6e7528c0a355c0aa:

  Linux 6.6-rc4 (2023-10-01 14:15:13 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.6-rc4-ksmbd-server-fixes

for you to fetch changes up to 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e:

  ksmbd: fix race condition between tree conn lookup and disconnect
(2023-10-04 21:56:28 -0500)

----------------------------------------------------------------
Six SMB3 server fixes for various races found by RO0T Lab of Huawei:
- Fix oops when race between oplock break ack and freeing file
- Simultaneous request fixes:for parallel logoffs, and for parallel
lock requests
- Fixes for tree disconnect race, session expire race, and close/open race

----------------------------------------------------------------
Namjae Jeon (5):
      ksmbd: fix race condition between session lookup and expire
      ksmbd: fix race condition with fp
      ksmbd: fix race condition from parallel smb2 logoff requests
      ksmbd: fix race condition from parallel smb2 lock requests
      ksmbd: fix race condition between tree conn lookup and disconnect

luosili (1):
      ksmbd: fix uaf in smb20_oplock_break_ack

 fs/smb/server/connection.c        |  2 +
 fs/smb/server/connection.h        |  1 +
 fs/smb/server/mgmt/tree_connect.c | 42 +++++++++++++++--
 fs/smb/server/mgmt/tree_connect.h | 11 ++++-
 fs/smb/server/mgmt/user_session.c | 11 +++--
 fs/smb/server/mgmt/user_session.h |  1 +
 fs/smb/server/server.c            |  2 +
 fs/smb/server/smb2pdu.c           | 94 +++++++++++++++++++++++++--------------
 fs/smb/server/vfs_cache.c         | 23 ++++++++--
 fs/smb/server/vfs_cache.h         |  9 ++++
 10 files changed, 151 insertions(+), 45 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-09-29 22:11 Steve French
  2023-09-29 23:59 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-09-29 22:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, Namjae Jeon

Please pull the following changes since commit
ce9ecca0238b140b88f43859b211c9fdfd8e5b70:

  Linux 6.6-rc2 (2023-09-17 14:40:24 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.6-rc3-ksmbd-server-fixes

for you to fetch changes up to 73f949ea87c7d697210653501ca21efe57295327:

  ksmbd: check iov vector index in ksmbd_conn_write() (2023-09-21
14:41:06 -0500)

----------------------------------------------------------------
Two SMB3 server fixes for null pointer dereferences
- one for invalid SMB3 request case (fixes issue found in testing the
read compound patch)
- one for handling null iovec error case in response processing

----------------------------------------------------------------
Namjae Jeon (2):
      ksmbd: return invalid parameter error response if smb2 request is invalid
      ksmbd: check iov vector index in ksmbd_conn_write()

 fs/smb/server/connection.c | 3 +++
 fs/smb/server/server.c     | 4 +++-
 fs/smb/server/smb2misc.c   | 4 +---
 3 files changed, 7 insertions(+), 4 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-09-17  1:55 Steve French
  2023-09-17 18:24 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-09-17  1:55 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
0bb80ecc33a8fb5a682236443c1e740d5c917d1d:

  Linux 6.6-rc1 (2023-09-10 16:28:41 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.6-rc1-ksmbd

for you to fetch changes up to 59d8d24f4610333560cf2e8fe3f44cafe30322eb:

  ksmbd: fix passing freed memory 'aux_payload_buf' (2023-09-13 10:21:05 -0500)

----------------------------------------------------------------
Two small ksmbd server fixes
- quiet smatch warning, clarifying aux_payload_buf freed
 (set explicitly to NULL)
- avoid duplicate call to mark_inode_dirty (when setting ACLs)
----------------------------------------------------------------
Namjae Jeon (2):
      ksmbd: remove unneeded mark_inode_dirty in set_info_sec()
      ksmbd: fix passing freed memory 'aux_payload_buf'

 fs/smb/server/smb2pdu.c | 2 +-
 fs/smb/server/smbacl.c  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-08-09 23:11 Steve French
  2023-08-10  5:02 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-08-09 23:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
5d0c230f1de8c7515b6567d9afba1f196fb4e2f4:

  Linux 6.5-rc4 (2023-07-30 13:23:47 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.5-rc5-ksmbd-server

for you to fetch changes up to 79ed288cef201f1f212dfb934bcaac75572fb8f6:

  ksmbd: fix wrong next length validation of ea buffer in
smb2_set_ea() (2023-08-05 20:57:00 -0500)

----------------------------------------------------------------
Two ksmbd server fixes, both also for stable
- improve buffer validation when multiple EAs returned
- missing check for command payload size
----------------------------------------------------------------
Long Li (1):
      ksmbd: validate command request size

Namjae Jeon (1):
      ksmbd: fix wrong next length validation of ea buffer in smb2_set_ea()

 fs/smb/server/smb2misc.c | 10 +++++-----
 fs/smb/server/smb2pdu.c  |  9 ++++++++-
 2 files changed, 13 insertions(+), 6 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-07-26  6:17 Steve French
  2023-07-26 18:42 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-07-26  6:17 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, LKML, CIFS

Please pull the following changes since commit
06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5:

  Linux 6.5-rc1 (2023-07-09 13:53:13 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.5-rc3-ksmbd-server-fixes

for you to fetch changes up to 536bb492d39bb6c080c92f31e8a55fe9934f452b:

  ksmbd: fix out of bounds in init_smb2_rsp_hdr() (2023-07-23 10:25:11 -0500)

----------------------------------------------------------------
Six ksmbd server fixes including for stable, and four reported by ZDI
- fixes for two possible out of bounds access (in negotiate, and in decrypt msg)
- fix unsigned compared to zero warning
- fix path lookup crossing a mountpoint
- fix case when first compound request is a tree connect
- fix memory leak if reads are compounded

----------------------------------------------------------------
Namjae Jeon (5):
      ksmbd: check if a mount point is crossed during path lookup
      ksmbd: fix out of bounds in smb3_decrypt_req()
      ksmbd: validate session id and tree id in compound request
      ksmbd: no response from compound read
      ksmbd: fix out of bounds in init_smb2_rsp_hdr()

Wang Ming (1):
      ksmbd: Fix unsigned expression compared with zero

 fs/smb/server/ksmbd_netlink.h |  3 ++-
 fs/smb/server/server.c        |  7 ++++++-
 fs/smb/server/smb2pdu.c       | 47
+++++++++++++++++++++++++++------------------
 fs/smb/server/smb_common.c    | 19 +++++++++++--------
 fs/smb/server/smb_common.h    |  2 +-
 fs/smb/server/vfs.c           | 65
++++++++++++++++++++++++++++++++++++---------------------------
 fs/smb/server/vfs.h           |  4 ++--
 7 files changed, 88 insertions(+), 59 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-06-30  5:59 Steve French
  2023-07-01  5:04 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-06-30  5:59 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
6995e2de6891c724bfeb2db33d7b87775f913ad1:

  Linux 6.4 (2023-06-25 16:29:58 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.5-rc-ksmbd-server-fixes-part1

for you to fetch changes up to 9cedc58bdbe9fff9aacd0ca19ee5777659f28fd7:

  ksmbd: avoid field overflow warning (2023-06-28 22:58:28 -0500)

----------------------------------------------------------------
11 ksmbd server fixes
- two fixes for compounding bugs (make sure no out of bound reads with
less common combinations of commands in the compound)
- eight minor cleanup patches (e.g. simplifying return values, replace one
element array, use of kzalloc where simpler)
- fix for clang warning on possible overflow in filename conversion
----------------------------------------------------------------
Arnd Bergmann (1):
      ksmbd: avoid field overflow warning

Gustavo A. R. Silva (2):
      ksmbd: Use struct_size() helper in ksmbd_negotiate_smb_dialect()
      ksmbd: Replace one-element array with flexible-array member

Lu Hongfei (2):
      ksmbd: Change the return value of ksmbd_vfs_query_maximal_access to void
      ksmbd: Replace the ternary conditional operator with min()

Namjae Jeon (6):
      ksmbd: remove unused ksmbd_tree_conn_share function
      ksmbd: use kzalloc() instead of __GFP_ZERO
      ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
      ksmbd: use kvzalloc instead of kvmalloc
      ksmbd: fix out of bounds read in smb2_sess_setup
      ksmbd: add missing compound request handing in some commands

 fs/smb/server/mgmt/tree_connect.c |  11 ----------
 fs/smb/server/mgmt/tree_connect.h |   3 ---
 fs/smb/server/smb2pdu.c           | 121
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------
 fs/smb/server/smb_common.c        |   8 ++++----
 fs/smb/server/smb_common.h        |   2 +-
 fs/smb/server/smbacl.c            |   2 +-
 fs/smb/server/transport_ipc.c     |   4 ++--
 fs/smb/server/vfs.c               |  12 ++++-------
 fs/smb/server/vfs.h               |   2 +-
 9 files changed, 88 insertions(+), 77 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-06-20  4:45 Steve French
  2023-06-20 19:01 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-06-20  4:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
858fd168a95c5b9669aac8db6c14a9aeab446375:

  Linux 6.4-rc6 (2023-06-11 14:35:30 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.4-rc6-smb3-server-fixes

for you to fetch changes up to 5005bcb4219156f1bf7587b185080ec1da08518e:

  ksmbd: validate session id and tree id in the compound request
(2023-06-16 21:04:51 -0500)

----------------------------------------------------------------
Four smb3 server fixes, all also for stable
- fix potential oops in parsing compounded requests
- fix various paths (mkdir, create etc) where mnt_want_write was not
checked first
- fix slab out of bounds in check_message and write
----------------------------------------------------------------
Namjae Jeon (4):
      ksmbd: validate command payload size
      ksmbd: add mnt_want_write to ksmbd vfs functions
      ksmbd: fix out-of-bound read in smb2_write
      ksmbd: validate session id and tree id in the compound request

 fs/smb/server/server.c    |  33 +++++++++++++---------
 fs/smb/server/smb2misc.c  |  33 +++++++++++++---------
 fs/smb/server/smb2pdu.c   |  70 ++++++++++++++++++++++++++++++++-------------
 fs/smb/server/smbacl.c    |  10 +++----
 fs/smb/server/vfs.c       | 117
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------
 fs/smb/server/vfs.h       |  17 ++++++-----
 fs/smb/server/vfs_cache.c |   2 +-
 7 files changed, 196 insertions(+), 86 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-06-11  1:59 Steve French
  2023-06-11 17:43 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-06-11  1:59 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, LKML, CIFS

Please pull the following changes since commit
8828003759391029fc45c15ac346622cdae19b6d:

  Merge tag '6.4-rc4-smb3-server-fixes' of git://git.samba.org/ksmbd
(2023-06-01 08:27:34 -0400)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.4-rc5-smb3-server-fixes

for you to fetch changes up to 1c1bcf2d3ea061613119b534f57507c377df20f9:

  ksmbd: validate smb request protocol id (2023-06-02 12:30:57 -0500)

----------------------------------------------------------------
Five smb3 server fixes, all also for stable
- Fix four slab out of bounds warnings: improve checks for protocol id,
   and for small packet length, and for create context parsing,
   and for negotiate context parsing
- Fix for incorrect dereferencing POSIX ACLs
----------------------------------------------------------------
Namjae Jeon (5):
      ksmbd: fix out-of-bound read in deassemble_neg_contexts()
      ksmbd: fix out-of-bound read in parse_lease_state()
      ksmbd: fix posix_acls and acls dereferencing possible ERR_PTR()
      ksmbd: check the validation of pdu_size in ksmbd_conn_handler_loop
      ksmbd: validate smb request protocol id

 fs/smb/server/connection.c | 17 +++++++++++++++--
 fs/smb/server/oplock.c     | 66
++++++++++++++++++++++++------------------------------------------
 fs/smb/server/smb2pdu.c    | 13 ++++++-------
 fs/smb/server/smb_common.c | 14 +++++++++++++-
 fs/smb/server/smbacl.c     |  4 ++--
 fs/smb/server/vfs.c        |  4 ++--
 6 files changed, 62 insertions(+), 56 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-05-21  5:14 Steve French
  2023-05-21 18:06 ` Linus Torvalds
  2023-05-21 18:09 ` pr-tracker-bot
  0 siblings, 2 replies; 94+ messages in thread
From: Steve French @ 2023-05-21  5:14 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, LKML, CIFS

Please pull the following changes since commit
f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6:

  Linux 6.4-rc2 (2023-05-14 12:51:40 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.4-rc2-ksmbd-server-fixes

for you to fetch changes up to e7b8b8ed9960bf699bf4029f482d9e869c094ed6:

  ksmbd: smb2: Allow messages padded to 8byte boundary (2023-05-16
10:26:14 -0500)

----------------------------------------------------------------
Four ksmbd server fixes:
- two fixes for incorrect SMB3 message validation (one for client
which uses 8 byte padding, and one for empty bcc)
- two fixes for out of bounds bugs: one for username offset checks (in
session setup) and the other for create context name length checks (in
open requests)
----------------------------------------------------------------
Chih-Yen Chang (3):
      ksmbd: fix global-out-of-bounds in smb2_find_context_vals
      ksmbd: fix wrong UserName check in session_user
      ksmbd: allocate one more byte for implied bcc[0]

Gustav Johansson (1):
      ksmbd: smb2: Allow messages padded to 8byte boundary

 fs/ksmbd/connection.c |  3 ++-
 fs/ksmbd/oplock.c     |  5 +++--
 fs/ksmbd/oplock.h     |  2 +-
 fs/ksmbd/smb2misc.c   |  5 ++++-
 fs/ksmbd/smb2pdu.c    | 19 +++++++++----------
 5 files changed, 19 insertions(+), 15 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-05-06  0:19 Steve French
  2023-05-06  2:20 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-05-06  0:19 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, LKML, Namjae Jeon

Please pull the following changes since commit
1ae78a14516b9372e4c90a89ac21b259339a3a3a:

  Merge tag '6.4-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbd
(2023-04-29 11:10:39 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.4-rc-ksmbd-server-fixes-part2

for you to fetch changes up to eb307d09fe15844fdaebeb8cc8c9b9e925430aa5:

  ksmbd: call rcu_barrier() in ksmbd_server_exit() (2023-05-03 23:03:02 -0500)

----------------------------------------------------------------
Ten ksmbd server fixes, including some important security fixes
- Two use after free fixes
- Fix RCU callback race
- Deadlock fix
- Three patches to prevent session setup attacks
- Prevent guest users from establishing multichannel sessions
- Fix null pointer dereference in query FS info
- Memleak fix
----------------------------------------------------------------
Namjae Jeon (10):
      ksmbd: fix memleak in session setup
      ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()
      ksmbd: fix racy issue from session setup and logoff
      ksmbd: destroy expired sessions
      ksmbd: block asynchronous requests when making a delay on session setup
      ksmbd: fix deadlock in ksmbd_find_crypto_ctx()
      ksmbd: not allow guest user on multichannel
      ksmbd: fix racy issue from smb2 close and logoff with multichannel
      ksmbd: fix racy issue under cocurrent smb2 tree disconnect
      ksmbd: call rcu_barrier() in ksmbd_server_exit()

 fs/ksmbd/auth.c              |  19 +++++++++++--------
 fs/ksmbd/connection.c        |  68
++++++++++++++++++++++++++++++++++++++++++++++++--------------------
 fs/ksmbd/connection.h        |  58
+++++++++++++++++++++++++++++++++++++++-------------------
 fs/ksmbd/mgmt/tree_connect.c |  13 ++++++++++++-
 fs/ksmbd/mgmt/tree_connect.h |   3 +++
 fs/ksmbd/mgmt/user_session.c |  81
++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
 fs/ksmbd/mgmt/user_session.h |   1 +
 fs/ksmbd/server.c            |   4 +++-
 fs/ksmbd/smb2pdu.c           | 109
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
 fs/ksmbd/smb2pdu.h           |   2 ++
 fs/ksmbd/transport_tcp.c     |   2 +-
 11 files changed, 250 insertions(+), 110 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-04-27  2:11 Steve French
  2023-04-29 18:19 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-04-27  2:11 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, Al Viro, CIFS, linux-fsdevel, LKML

Please pull the following changes since commit
457391b0380335d5e9a5babdec90ac53928b23b4:

  Linux 6.3 (2023-04-23 12:02:52 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.4-rc-ksmbd-server-fixes

for you to fetch changes up to 74d7970febf7e9005375aeda0df821d2edffc9f7:

  ksmbd: fix racy issue from using ->d_parent and ->d_name (2023-04-24
00:09:20 -0500)

----------------------------------------------------------------
- three SMB3.1.1 negotiate context fixes and cleanup
- new lock_rename_child VFS helper
- ksmbd fix to avoid unlink race and to use the new VFS helper to
avoid rename race
----------------------------------------------------------------
Al Viro (1):
      fs: introduce lock_rename_child() helper

David Disseldorp (3):
      ksmbd: set NegotiateContextCount once instead of every inc
      ksmbd: avoid duplicate negotiate ctx offset increments
      ksmbd: remove unused compression negotiate ctx packing

Namjae Jeon (2):
      ksmbd: remove internal.h include
      ksmbd: fix racy issue from using ->d_parent and ->d_name

Steve French (1):
      Merge tag 'pull-lock_rename_child' of
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs into
ksmbd-for-next

 fs/internal.h         |   2 -
 fs/ksmbd/smb2pdu.c    | 203 ++++++++++++--------------------------------------
 fs/ksmbd/vfs.c        | 437
++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------
 fs/ksmbd/vfs.h        |  19 ++---
 fs/ksmbd/vfs_cache.c  |   5 +-
 fs/namei.c            | 125 +++++++++++++++++++++++++------
 include/linux/namei.h |   9 +++
 7 files changed, 357 insertions(+), 443 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-04-07  4:16 Steve French
  2023-04-07 20:56 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-04-07  4:16 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
90c8ce31dbe93f277fc1157e34740e841094c254:

  Merge tag '6.3-rc3-ksmbd-smb3-server-fixes' of
git://git.samba.org/ksmbd (2023-03-24 17:59:00 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.3-rc5-ksmbd-server-fixes

for you to fetch changes up to dc8289f912387c3bcfbc5d2db29c8947fa207c11:

  ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr (2023-04-02 23:08:56 -0500)

----------------------------------------------------------------
four ksmbd server fixes, including three for stable
- slab out of bounds fix
- lock cancellation fix
- minor cleanup to address clang warning
- fix for xfstest 551 (wrong parms passed to kvmalloc)
----------------------------------------------------------------
Marios Makassikis (1):
      ksmbd: do not call kvmalloc() with __GFP_NORETRY | __GFP_NO_WARN

Namjae Jeon (2):
      ksmbd: delete asynchronous work from list
      ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr

Tom Rix (1):
      ksmbd: remove unused is_char_allowed function

 fs/ksmbd/connection.c |  17 ++++-------
 fs/ksmbd/ksmbd_work.h |   2 +-
 fs/ksmbd/server.c     |   5 +---
 fs/ksmbd/smb2pdu.c    |  36 ++++++++++++++----------
 fs/ksmbd/smb2pdu.h    |   1 +
 fs/ksmbd/smb_common.c | 138
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
 fs/ksmbd/smb_common.h |   2 +-
 fs/ksmbd/unicode.c    |  18 ------------
 8 files changed, 140 insertions(+), 79 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-03-25  0:00 Steve French
  2023-03-25  1:18 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-03-25  0:00 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, LKML, Namjae Jeon

Please pull the following changes since commit
e8d018dd0257f744ca50a729e3d042cf2ec9da65:

  Linux 6.3-rc3 (2023-03-19 13:27:55 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.3-rc3-ksmbd-smb3-server-fixes

for you to fetch changes up to 39b291b86b5988bf8753c3874d5c773399d09b96:

  ksmbd: return unsupported error on smb1 mount (2023-03-24 00:23:13 -0500)

----------------------------------------------------------------
eight smb3 server fixes (also for stable)
- two fixes to return less confusing messages on unsupported dialects
(STATUS_NOT_SUPPORTED instead of I/O error)
- fix for overly frequent inactive session termination
- fix refcount leak
- fix two bounds check problems found by static checkers
- fix to advertise named stream support correctly
- Fix AES256 signing bug when connected to from MacOS

(Also FYI I have a slightly larger cifs P/R coming in the next day or
so with various client fixes)
----------------------------------------------------------------
ChenXiaoSong (1):
      ksmbd: fix possible refcount leak in smb2_open()

Namjae Jeon (7):
      ksmbd: fix wrong signingkey creation when encryption is AES256
      ksmbd: set FILE_NAMED_STREAMS attribute in FS_ATTRIBUTE_INFORMATION
      ksmbd: add low bound validation to FSCTL_SET_ZERO_DATA
      ksmbd: add low bound validation to FSCTL_QUERY_ALLOCATED_RANGES
      ksmbd: don't terminate inactive sessions after a few seconds
      ksmbd: return STATUS_NOT_SUPPORTED on unsupported smb2.0 dialect
      ksmbd: return unsupported error on smb1 mount

 fs/ksmbd/auth.c           |  5 +++--
 fs/ksmbd/connection.c     | 11 ++++-------
 fs/ksmbd/connection.h     |  3 ++-
 fs/ksmbd/smb2pdu.c        | 20 +++++++++++++++-----
 fs/ksmbd/smb_common.c     | 27 ++++++++++++++++++++++-----
 fs/ksmbd/smb_common.h     | 30 ++++++++----------------------
 fs/ksmbd/transport_rdma.c |  2 +-
 fs/ksmbd/transport_tcp.c  | 35 +++++++++++++++++++++++------------
 8 files changed, 78 insertions(+), 55 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-02-22  4:15 Steve French
  2023-02-22 22:26 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-02-22  4:15 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
6d796c50f84ca79f1722bb131799e5a5710c4700:

  Linux 6.2-rc6 (2023-01-29 13:59:43 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.3-rc-ksmbd-fixes

for you to fetch changes up to d3ca9f7aeba793d74361d88a8800b2f205c9236b:

  ksmbd: fix possible memory leak in smb2_lock() (2023-02-19 17:57:25 -0600)

----------------------------------------------------------------
Ten ksmbd smb3 server fixes, including three for stable
- Fix for memory leak
- Two important fixes for frame length checks (which are also now stricter)
- four minor cleanup fixes
- Fix to clarify ksmbd/Kconfig to indent properl
- Conversion of the channel list and rpc handle list to xarrays
----------------------------------------------------------------
Colin Ian King (1):
      ksmbd: Fix spelling mistake "excceed" -> "exceeded"

Dawei Li (4):
      ksmbd: Implements sess->ksmbd_chann_list as xarray
      ksmbd: Implements sess->rpc_handle_list as xarray
      ksmbd: fix typo, syncronous->synchronous
      ksmbd: Remove duplicated codes

Hangyu Hua (1):
      ksmbd: fix possible memory leak in smb2_lock()

Jiapeng Chong (1):
      ksmbd: Fix parameter name and comment mismatch

Namjae Jeon (2):
      ksmbd: fix wrong data area length for smb2 lock request
      ksmbd: do not allow the actual frame length to be smaller than
the rfc1002 length

Steve French (1):
      ksmbd: update Kconfig to note Kerberos support and fix indentation

 fs/ksmbd/Kconfig             |  8 ++++++--
 fs/ksmbd/asn1.c              | 23 +++++++++++------------
 fs/ksmbd/connection.c        |  6 +++---
 fs/ksmbd/ksmbd_work.h        |  2 +-
 fs/ksmbd/mgmt/user_session.c | 98
++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------
 fs/ksmbd/mgmt/user_session.h |  6 ++----
 fs/ksmbd/smb2misc.c          | 31 +++++++++++++------------------
 fs/ksmbd/smb2pdu.c           | 66
++++++++++++++++++++---------------------------------------------
 fs/ksmbd/vfs.c               |  6 +++---
 fs/ksmbd/vfs_cache.c         |  5 ++---
 10 files changed, 99 insertions(+), 152 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-01-28  1:45 Steve French
  2023-01-28 19:33 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-01-28  1:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, LKML, Namjae Jeon

Please pull the following changes since commit
5dc4c995db9eb45f6373a956eb1f69460e69e6d4:

  Linux 6.2-rc4 (2023-01-15 09:22:43 -0600)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.2-rc5-ksmbd-server-fixes

for you to fetch changes up to a34dc4a9b9e2fb3a45c179a60bb0b26539c96189:

  ksmbd: downgrade ndr version error message to debug (2023-01-25
18:31:18 -0600)

----------------------------------------------------------------
4 smb3 server fixes, all also for stable
- fix for signing bug
- fix to more strictly check packet length
- add a max connections parm to limit simultaneous connections
- fix error message flood that can occur with newer Samba xattr format
----------------------------------------------------------------
Marios Makassikis (1):
      ksmbd: do not sign response to session request for guest login

Namjae Jeon (3):
      ksmbd: add max connections parameter
      ksmbd: limit pdu length size according to connection status
      ksmbd: downgrade ndr version error message to debug

 fs/ksmbd/connection.c    | 17 +++++++++++++++--
 fs/ksmbd/ksmbd_netlink.h |  3 ++-
 fs/ksmbd/ndr.c           |  8 ++++----
 fs/ksmbd/server.h        |  1 +
 fs/ksmbd/smb2pdu.c       |  2 ++
 fs/ksmbd/smb2pdu.h       |  5 +++--
 fs/ksmbd/transport_ipc.c |  3 +++
 fs/ksmbd/transport_tcp.c | 17 ++++++++++++++++-
 8 files changed, 46 insertions(+), 10 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2023-01-10  3:13 Steve French
  2023-01-10 11:36 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2023-01-10  3:13 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
88603b6dc419445847923fcb7fe5080067a30f98:

  Linux 6.2-rc2 (2023-01-01 13:53:16 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.2-rc3-ksmbd-server-fixes

for you to fetch changes up to 83dcedd5540d4ac61376ddff5362f7d9f866a6ec:

  ksmbd: fix infinite loop in ksmbd_conn_handler_loop() (2023-01-01
22:49:24 -0600)

----------------------------------------------------------------
3 ksmbd server fixes, 2 important ones for stable
- fix possible infinite loop in socket handler
- fix possible panic in ntlmv2 authentication
- fix error handling on tree connect
----------------------------------------------------------------
Marios Makassikis (1):
      ksmbd: send proper error response in smb2_tree_connect()

Namjae Jeon (1):
      ksmbd: fix infinite loop in ksmbd_conn_handler_loop()

William Liu (1):
      ksmbd: check nt_len to be at least CIFS_ENCPWD_SIZE in
ksmbd_decode_ntlmssp_auth_blob

 fs/ksmbd/auth.c          | 3 ++-
 fs/ksmbd/connection.c    | 7 +++++--
 fs/ksmbd/smb2pdu.c       | 7 +++++--
 fs/ksmbd/transport_tcp.c | 5 ++++-
 4 files changed, 16 insertions(+), 6 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-12-15  3:18 Steve French
  2022-12-15 17:32 ` Linus Torvalds
  2022-12-15 18:28 ` pr-tracker-bot
  0 siblings, 2 replies; 94+ messages in thread
From: Steve French @ 2022-12-15  3:18 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
76dcd734eca23168cb008912c0f69ff408905235:

  Linux 6.1-rc8 (2022-12-04 14:48:12 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.2-rc-ksmbd-server-fixes

for you to fetch changes up to 72ee45fd46d0d3578c4e6046f66fae3218543ce3:

  ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs (2022-12-11
08:33:32 -0600)

Note that this P/R includes one commit ("ksmbd: replace
one-element arrays with flexible-array members") which you just merged
from a different unrelated P/R a few days ago.  Let me know if you
want me to rebase the ksmbd tree and resend the server P/R.

I can also send the client (cifs.ko) P/R tomorrow if it is easier but
have been working on testing some important fixes which are not in
linux-next yet, so not sure if it is easier to send the client fixes
as two P/Rs, or wait and send the client fixes all together as one
P/R later in the merge window.

----------------------------------------------------------------
six ksmbd server fixes:
- two resource leak fixes
- two cleanup
- a file unlock fix
- a fix for configuring packet encryption properly

----------------------------------------------------------------
Gustavo A. R. Silva (1):
      ksmbd: replace one-element arrays with flexible-array members

Jeff Layton (1):
      ksmbd: use F_SETLK when unlocking a file

Marios Makassikis (1):
      ksmbd: Fix resource leak in smb2_lock()

Namjae Jeon (1):
      ksmbd: set SMB2_SESSION_FLAG_ENCRYPT_DATA when enforcing data
encryption for this share

Xiu Jianfeng (1):
      ksmbd: Fix resource leak in ksmbd_session_rpc_open()

ye xingchen (1):
      ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs

 fs/ksmbd/ksmbd_netlink.h     |  1 +
 fs/ksmbd/mgmt/user_session.c |  8 +++++---
 fs/ksmbd/server.c            | 20 ++++++--------------
 fs/ksmbd/smb2ops.c           | 10 ++++++++--
 fs/ksmbd/smb2pdu.c           | 20 +++++++++++++-------
 fs/ksmbd/smb2pdu.h           |  2 +-
 fs/ksmbd/smb_common.h        | 12 ++++++------
 7 files changed, 40 insertions(+), 33 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-10-06 23:53 Steve French
  2022-10-07 17:00 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-10-06 23:53 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, LKML, Namjae Jeon

Please pull the following changes since commit
4fe89d07dcc2804c8b562f6c7896a45643d34b2f:

  Linux 6.0 (2022-10-02 14:09:07 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/6.1-rc-ksmbd-fixes

for you to fetch changes up to f5ba1cdaf5eb380e148183bda06d4844b457d095:

  ksmbd: validate share name from share config response (2022-10-05
01:15:44 -0500)

----------------------------------------------------------------
24 ksmbd server fixes, including 4 for stable
- RDMA (smbdirect fixes)
- Fixes for SMB3.1.1 POSIX Extensions (especially for id mapping)
- various casemapping fixes for mount and lookup
- UID mapping fixes
- Fix confusing error message
- Negotiate protocol fixes, including NTLMSSP fix
- Two encryption fixes
- directory listing fix
- some cleanup fixes

----------------------------------------------------------------
Al Viro (3):
      ksmbd: don't open-code file_path()
      ksmbd: don't open-code %pD
      ksmbd: constify struct path

Atte Heikkilä (3):
      ksmbd: casefold utf-8 share names and fix ascii lowercase conversion
      ksmbd: make utf-8 file name comparison work in __caseless_lookup()
      ksmbd: validate share name from share config response

Christian Brauner (1):
      ksmbd: port to vfs{g,u}id_t and associated helpers

Hyunchul Lee (1):
      MAINTAINERS: remove Hyunchul Lee from ksmbd maintainers

Mickaël Salaün (1):
      ksmbd: Fix user namespace mapping

Namjae Jeon (12):
      ksmbd: remove generic_fillattr use in smb2_open()
      MAINTAINERS: Add Tom Talpey as ksmbd reviewer
      ksmbd: fix incorrect handling of iterate_dir
      ksmbd: update documentation
      ksmbd: change security id to the one samba used for posix extension
      ksmbd: set file permission mode to match Samba server posix
extension behavior
      ksmbd: fill sids in SMB_FIND_FILE_POSIX_INFO response
      ksmbd: fix endless loop when encryption for response fails
      ksmbd: fix encryption failure issue for session logoff response
      ksmbd: set NTLMSSP_NEGOTIATE_SEAL flag to challenge blob
      ksmbd: hide socket error message when ipv6 config is disable
      ksmbd: call ib_drain_qp when disconnected

Tom Talpey (2):
      ksmbd: decrease the number of SMB3 smbdirect server SGEs
      ksmbd: reduce server smbdirect max send/receive segment sizes

Zhang Xiaoxu (1):
      ksmbd: Fix wrong return value and message length check in smb2_ioctl()

 Documentation/filesystems/cifs/ksmbd.rst |  42 +++++++++++++++-------
 MAINTAINERS                              |   2 +-
 fs/ksmbd/auth.c                          |  15 +++++---
 fs/ksmbd/auth.h                          |   3 +-
 fs/ksmbd/connection.c                    |   8 +++++
 fs/ksmbd/connection.h                    |   2 ++
 fs/ksmbd/ksmbd_netlink.h                 |   3 +-
 fs/ksmbd/mgmt/share_config.c             |  36 +++++++++++--------
 fs/ksmbd/mgmt/share_config.h             |   4 ++-
 fs/ksmbd/mgmt/tree_connect.c             |   6 ++--
 fs/ksmbd/mgmt/tree_connect.h             |   2 +-
 fs/ksmbd/misc.c                          |  46 +++++++++++++++++++-----
 fs/ksmbd/misc.h                          |   5 +--
 fs/ksmbd/ndr.c                           |   8 +++--
 fs/ksmbd/oplock.c                        |  27 +++++++++-----
 fs/ksmbd/server.c                        |   4 +--
 fs/ksmbd/smb2pdu.c                       | 126
+++++++++++++++++++++++++++++++++++++---------------------------
 fs/ksmbd/smb2pdu.h                       |   7 ++--
 fs/ksmbd/smb_common.c                    |   6 ++--
 fs/ksmbd/smbacl.c                        |  12 ++++---
 fs/ksmbd/smbacl.h                        |  18 +++++-----
 fs/ksmbd/transport_rdma.c                |   8 +++--
 fs/ksmbd/transport_tcp.c                 |   3 +-
 fs/ksmbd/unicode.h                       |   3 +-
 fs/ksmbd/vfs.c                           |  36 ++++++++++++-------
 fs/ksmbd/vfs.h                           |   4 ++-
 26 files changed, 284 insertions(+), 152 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-08-19  5:03 Steve French
  2022-08-19 21:14 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-08-19  5:03 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, LKML, Namjae Jeon

Please pull the following changes since commit
eb555cb5b794f4e12a9897f3d46d5a72104cd4a7:

  Merge tag '5.20-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbd
(2022-08-08 20:15:13 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.20-rc2-ksmbd-smb3-server-fixes

for you to fetch changes up to 17661ecf6a64eb11ae7f1108fe88686388b2acd5:

  ksmbd: don't remove dos attribute xattr on O_TRUNC open (2022-08-15
21:07:01 -0500)

----------------------------------------------------------------
4 ksmbd server fixes:
- important sparse file fix
- allocation size fix
- fix incorrect rc on bad share
- share config fix

----------------------------------------------------------------
Atte Heikkilä (1):
      ksmbd: request update to stale share config

Hyunchul Lee (1):
      ksmbd: remove unnecessary generic_fillattr in smb2_open

Namjae Jeon (2):
      ksmbd: return STATUS_BAD_NETWORK_NAME error status if share is
not configured
      ksmbd: don't remove dos attribute xattr on O_TRUNC open

 fs/ksmbd/ksmbd_netlink.h     |  2 ++
 fs/ksmbd/mgmt/share_config.c |  6 +++++-
 fs/ksmbd/mgmt/share_config.h |  1 +
 fs/ksmbd/mgmt/tree_connect.c | 16 +++++++++++++++-
 fs/ksmbd/smb2pdu.c           | 35 ++++++++++++++++-------------------
 5 files changed, 39 insertions(+), 21 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-08-08 20:00 Steve French
  2022-08-09  3:20 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-08-08 20:00 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS

Please pull the following changes since commit
ff6992735ade75aae3e35d16b17da1008d753d28:

  Linux 5.19-rc7 (2022-07-17 13:30:22 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.20-rc-ksmbd-server-fixes

for you to fetch changes up to 8f0541186e9ad1b62accc9519cc2b7a7240272a7:

  ksmbd: fix heap-based overflow in set_ntacl_dacl() (2022-08-04 09:51:38 -0500)

----------------------------------------------------------------
12 ksmbd server fixes
- six fixes for memory access bugs (out of bounds access, oops, leak)
- two multichannel fixes
- session disconnect performance improvement, and session register improvement
- cleanup
----------------------------------------------------------------
Hyunchul Lee (2):
      ksmbd: prevent out of bound read for SMB2_WRITE
      ksmbd: prevent out of bound read for SMB2_TREE_CONNNECT

Namjae Jeon (10):
      ksmbd: remove unused ksmbd_share_configs_cleanup function
      MAINTAINERS: ksmbd: add entry for documentation
      ksmbd: replace sessions list in connection with xarray
      ksmbd: add channel rwlock
      ksmbd: fix kernel oops from idr_remove()
      ksmbd: use wait_event instead of schedule_timeout()
      ksmbd: fix racy issue while destroying session on multichannel
      ksmbd: fix memory leak in smb2_handle_negotiate
      ksmbd: fix use-after-free bug in smb2_tree_disconect
      ksmbd: fix heap-based overflow in set_ntacl_dacl()

 MAINTAINERS                  |   1 +
 fs/ksmbd/auth.c              |  56 ++++++++++---------
 fs/ksmbd/auth.h              |  11 ++--
 fs/ksmbd/connection.c        |   9 +--
 fs/ksmbd/connection.h        |  10 +---
 fs/ksmbd/mgmt/share_config.c |  14 -----
 fs/ksmbd/mgmt/share_config.h |   2 -
 fs/ksmbd/mgmt/tree_connect.c |   5 +-
 fs/ksmbd/mgmt/tree_connect.h |   4 +-
 fs/ksmbd/mgmt/user_session.c |  95 +++++++++++++++++--------------
 fs/ksmbd/mgmt/user_session.h |  13 ++---
 fs/ksmbd/oplock.c            |  46 +++++++++------
 fs/ksmbd/server.c            |   8 ++-
 fs/ksmbd/smb2misc.c          |  12 ++--
 fs/ksmbd/smb2pdu.c           | 112 ++++++++++++++++++++++++-------------
 fs/ksmbd/smb_common.h        |   2 +-
 fs/ksmbd/smbacl.c            | 130 +++++++++++++++++++++++++++++--------------
 fs/ksmbd/smbacl.h            |   2 +-
 fs/ksmbd/vfs.c               |   8 ++-
 fs/ksmbd/vfs_cache.c         |   2 +-
 20 files changed, 322 insertions(+), 220 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-06-01  6:20 Steve French
  2022-06-01 19:34 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-06-01  6:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
c5eb0a61238dd6faf37f58c9ce61c9980aaffd7a:

  Linux 5.18-rc6 (2022-05-08 13:54:17 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.19-rc-ksmbd-server-fixes

for you to fetch changes up to 621433b7e25d6d42e5f75bd8c4a62d6c7251511b:

  ksmbd: smbd: relax the count of sges required (2022-05-27 21:31:20 -0500)

----------------------------------------------------------------
fourteen smb3 server fixes:
- 8 RDMA (smbdirect) fixes, cleanup and optimizations
- crediting (flow control) fix for mounts from Windows client
- ACL fix
- 2 cleanup fix
- Windows client query dir fix
- Write validation fix
----------------------------------------------------------------
Hyunchul Lee (8):
      ksmbd: smbd: change prototypes of RDMA read/write related functions
      ksmbd: smbd: introduce read/write credits for RDMA read/write
      ksmbd: smbd: simplify tracking pending packets
      ksmbd: smbd: change the return value of get_sg_list
      ksmbd: smbd: handle multiple Buffer descriptors
      ksmbd: smbd: fix connection dropped issue
      ksmbd: fix outstanding credits related bugs
      ksmbd: smbd: relax the count of sges required

Marios Makassikis (1):
      ksmbd: validate length in smb2_write()

Namjae Jeon (3):
      ksmbd: handle smb2 query dir request for OutputBufferLength that
is too small
      ksmbd: add smbd max io size parameter
      ksmbd: fix wrong smbd max read/write size check

Xin Xiong (1):
      ksmbd: fix reference count leak in smb_check_perm_dacl()

Yang Li (1):
      ksmbd: Fix some kernel-doc comments

 fs/ksmbd/connection.c     |  22 ++--
 fs/ksmbd/connection.h     |  27 ++--
 fs/ksmbd/ksmbd_netlink.h  |   3 +-
 fs/ksmbd/misc.c           |  10 +-
 fs/ksmbd/smb2misc.c       |   2 +-
 fs/ksmbd/smb2pdu.c        | 126 ++++++++++---------
 fs/ksmbd/smb_common.c     |   4 +-
 fs/ksmbd/smbacl.c         |   1 +
 fs/ksmbd/transport_ipc.c  |   3 +
 fs/ksmbd/transport_rdma.c | 363
++++++++++++++++++++++++++++++++----------------------
 fs/ksmbd/transport_rdma.h |   8 ++
 11 files changed, 325 insertions(+), 244 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-04-24  0:10 Steve French
  2022-04-24  0:32 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-04-24  0:10 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e:

  Linux 5.18-rc2 (2022-04-10 14:21:36 -1000)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.18-rc3-ksmbd-fixes

for you to fetch changes up to 02655a70b7cc0f534531ee65fa72692f4d31a944:

  ksmbd: set fixed sector size to FS_SECTOR_SIZE_INFORMATION
(2022-04-14 20:56:13 -0500)

----------------------------------------------------------------
3 fixes to ksmbd server
- cap maximum sector size reported to avoid mount problems
- reference count fix
- fix filename rename race

----------------------------------------------------------------
Namjae Jeon (3):
      ksmbd: remove filename in ksmbd_file
      ksmbd: increment reference count of parent fp
      ksmbd: set fixed sector size to FS_SECTOR_SIZE_INFORMATION

 fs/ksmbd/misc.c      | 40 +++++++++++++++++++++++++++++++---------
 fs/ksmbd/misc.h      |  3 ++-
 fs/ksmbd/oplock.c    | 30 ------------------------------
 fs/ksmbd/oplock.h    |  2 --
 fs/ksmbd/smb2pdu.c   | 34 ++++++++++++++++------------------
 fs/ksmbd/vfs.c       |  6 ++----
 fs/ksmbd/vfs_cache.c |  2 +-
 fs/ksmbd/vfs_cache.h |  1 -
 8 files changed, 52 insertions(+), 66 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-04-01 18:40 Steve French
  2022-04-01 21:41 ` Linus Torvalds
  2022-04-01 21:45 ` pr-tracker-bot
  0 siblings, 2 replies; 94+ messages in thread
From: Steve French @ 2022-04-01 18:40 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS

Please pull the following changes since commit
ffb217a13a2eaf6d5bd974fc83036a53ca69f1e2:

  Linux 5.17-rc7 (2022-03-06 14:28:31 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.18-rc-ksmbd-server-fixes

for you to fetch changes up to edf5f0548fbb77e20b898460dc25281b0f4d974d:

  ksmbd: replace usage of found with dedicated list iterator variable
(2022-03-30 08:17:55 -0500)

----------------------------------------------------------------
six ksmbd SMB3 server fixes

- three cleanup fixes
- shorten module load warning
- two documentation fixes

Does not include the dentry race related changes which
are being reworked by Namjae.

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-03-29  1:39 Steve French
  2022-03-30  1:48 ` Linus Torvalds
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-03-29  1:39 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: CIFS, Namjae Jeon

Please pull the following changes since commit
ffb217a13a2eaf6d5bd974fc83036a53ca69f1e2:

  Linux 5.17-rc7 (2022-03-06 14:28:31 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.18-ksmbd-server-fixes

for you to fetch changes up to 5d4c2759d83bad3041bf16d0b0e2ff6df11200bb:

  ksmbd: replace usage of found with dedicated list iterator variable
(2022-03-26 12:45:50 -0500)

----------------------------------------------------------------
10 smb3 server fixes
- three cleanup fixes
- shorten module load warning
- two documentation fixes
- four patches relating to dentry race
-----------------------------------------------------------------
Christophe JAILLET (1):
      ksmbd: Remove a redundant zeroing of memory

Jakob Koschel (1):
      ksmbd: replace usage of found with dedicated list iterator variable

Namjae Jeon (6):
      Documentation: ksmbd: update Feature Status table
      ksmbd: remove internal.h include
      ksmbd: remove filename in ksmbd_file
      ksmbd: fix racy issue from using ->d_parent and ->d_name
      ksmbd: increment reference count of parent fp
      MAINTAINERS: ksmbd: switch Sergey to reviewer

Steve French (1):
      ksmbd: shorten experimental warnign on loading the module

Tobias Klauser (1):
      ksmbd: use netif_is_bridge_port

 Documentation/filesystems/cifs/ksmbd.rst |   4 +-
 MAINTAINERS                              |   2 +-
 fs/internal.h                            |   2 -
 fs/ksmbd/misc.c                          |  40 +++++--
 fs/ksmbd/misc.h                          |   3 +-
 fs/ksmbd/oplock.c                        |  30 ------
 fs/ksmbd/oplock.h                        |   2 -
 fs/ksmbd/server.c                        |   2 +-
 fs/ksmbd/smb2pdu.c                       | 147 +++++--------------------
 fs/ksmbd/transport_tcp.c                 |   4 +-
 fs/ksmbd/vfs.c                           | 262
++++++++++++++++++++-------------------------
 fs/ksmbd/vfs.h                           |   7 +-
 fs/ksmbd/vfs_cache.c                     |   7 +-
 fs/ksmbd/vfs_cache.h                     |   1 -
 fs/namei.c                               |  41 +++++--
 include/linux/namei.h                    |   7 ++
 16 files changed, 231 insertions(+), 330 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2022-02-07 21:04 Steve French
  2022-02-07 23:34 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2022-02-07 21:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Namjae Jeon, CIFS, LKML

Please pull the following changes since commit
e783362eb54cd99b2cac8b3a9aeac942e6f6ac07:

  Linux 5.17-rc1 (2022-01-23 10:12:53 +0200)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.17-rc3-ksmbd-server-fixes

for you to fetch changes up to f9929ef6a2a55f03aac61248c6a3a987b8546f2a:

  ksmbd: add support for key exchange (2022-02-04 00:12:22 -0600)

----------------------------------------------------------------
6 ksmbd server fixes including:
- NTLMSSP authentication improvement
- RDMA (smbdirect) fix allowing broader set of NICs to be supported
- improved buffer validation
- 3 additional small fixes, including a posix extensions fix for stable

Regression test results:
http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/8/builds/100
----------------------------------------------------------------
Hyunchul Lee (1):
      ksmbd: smbd: validate buffer descriptor structures

Namjae Jeon (5):
      ksmbd: fix SMB 3.11 posix extension mount failure
      ksmbd: fix same UniqueId for dot and dotdot entries
      ksmbd: don't align last entry offset in smb2 query directory
      ksmbd: reduce smb direct max read/write size
      ksmbd: add support for key exchange

 fs/Kconfig                |  4 ++--
 fs/ksmbd/auth.c           | 27 +++++++++++++++++++++++++++
 fs/ksmbd/smb2pdu.c        | 45 +++++++++++++++++++++++++++++++++++----------
 fs/ksmbd/smb_common.c     |  5 ++++-
 fs/ksmbd/transport_rdma.c |  2 +-
 fs/ksmbd/vfs.h            |  1 +
 6 files changed, 70 insertions(+), 14 deletions(-)

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2021-11-27 21:43 Steve French
  2021-11-27 22:52 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2021-11-27 21:43 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
136057256686de39cc3a07c2e39ef6bc43003ff6:

  Linux 5.16-rc2 (2021-11-21 13:47:39 -0800)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.16-rc2-ksmbd-fixes

for you to fetch changes up to 178ca6f85aa3231094467691f5ea1ff2f398aa8d:

  ksmbd: fix memleak in get_file_stream_info() (2021-11-25 00:09:26 -0600)

----------------------------------------------------------------
5 ksmbd server fixes, 4 for stable
- memleak fix
- fix for default data stream on fs that don't support xattr
- error logging fix
- session setup fix
- minor doc cleanup

Regression test results:
http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/8/builds/96
----------------------------------------------------------------
Christophe JAILLET (1):
      ksmbd: Fix an error handling path in 'smb2_sess_setup()'

Namjae Jeon (3):
      ksmbd: downgrade addition info error msg to debug in smb2_get_info_sec()
      ksmbd: contain default data stream even if xattr is empty
      ksmbd: fix memleak in get_file_stream_info()

Salvatore Bonaccorso (1):
      docs: filesystem: cifs: ksmbd: Fix small layout issues

 Documentation/filesystems/cifs/ksmbd.rst | 10 +++++-----
 fs/ksmbd/smb2pdu.c                       | 30 +++++++++++++++++-------------

-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread
* [GIT PULL] ksmbd server fixes
@ 2021-09-26 12:13 Steve French
  2021-09-26 21:11 ` pr-tracker-bot
  0 siblings, 1 reply; 94+ messages in thread
From: Steve French @ 2021-09-26 12:13 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML, CIFS, Namjae Jeon

Please pull the following changes since commit
707a63e9a9dd55432d47bf40457d4a3413888dcc:

  Merge tag '5.15-rc1-ksmbd' of git://git.samba.org/ksmbd (2021-09-20
15:35:17 -0700)

are available in the Git repository at:

  git://git.samba.org/ksmbd.git tags/5.15-rc2-ksmbd-fixes

for you to fetch changes up to 265fd1991c1db85fbabaad4946ca0e63e2ae688d:

  ksmbd: use LOOKUP_BENEATH to prevent the out of share access
(2021-09-24 21:25:23 -0500)

----------------------------------------------------------------
Five fixes for the ksmbd kernel server, including three security fixes:
- removing follow symlinks support
- converting to use LOOKUP_BENEATH to prevent out of share access
- SMB3 compounding security fix
-fix for returning the default streams correctly, fixing a bug when
writing ppt or doc files from some clients
- logging more clearly that ksmbd is experimental (at module load time)

Functional testing passed (e.g.
http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/8/builds/73).
Additional patches are being reviewed, addressing the remaining
potential overflows found in the security reviews.
----------------------------------------------------------------
Hyunchul Lee (1):
      ksmbd: use LOOKUP_BENEATH to prevent the out of share access

Namjae Jeon (3):
      ksmbd: add default data stream name in FILE_STREAM_INFORMATION
      ksmbd: check protocol id in ksmbd_verify_smb_message()
      ksmbd: remove follow symlinks support

Steve French (1):
      ksmbd: log that server is experimental at module load

 fs/ksmbd/misc.c       | 100 ++++++++---------------------------------
 fs/ksmbd/misc.h       |   7 +--
 fs/ksmbd/server.c     |   3 ++
 fs/ksmbd/smb2pdu.c    | 119 ++++++++++++++++--------------------------------
 fs/ksmbd/smb_common.c |  13 ++++--
 fs/ksmbd/smb_common.h |   1 +
 fs/ksmbd/vfs.c        | 172
++++++++++++++++++++++++++++++++++------------------------------------
 fs/ksmbd/vfs.h        |   9 +++-
 8 files changed, 164 insertions(+), 260 deletions(-)


--
Thanks,

Steve

^ permalink raw reply	[flat|nested] 94+ messages in thread

end of thread, other threads:[~2024-04-22 23:51 UTC | newest]

Thread overview: 94+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 22:07 [GIT PULL] ksmbd server fixes Steve French
2022-06-29 16:44 ` pr-tracker-bot
  -- strict thread matches above, loose matches on Subject: below --
2024-04-22 23:20 Steve French
2024-04-22 23:51 ` pr-tracker-bot
2024-04-05  3:15 Steve French
2024-04-05 17:09 ` pr-tracker-bot
2024-03-20 17:06 Steve French
2024-03-20 23:46 ` pr-tracker-bot
2024-02-10  1:45 Steve French
2024-02-10 16:26 ` pr-tracker-bot
2024-01-27  7:20 Steve French
2024-01-27 17:21 ` pr-tracker-bot
2024-01-18  0:39 Steve French
2024-01-19 18:03 ` pr-tracker-bot
2024-01-11 14:20 Steve French
2024-01-12  5:07 ` pr-tracker-bot
2023-11-27 21:00 Steve French
2023-11-28  1:26 ` pr-tracker-bot
2023-11-10  7:16 Steve French
2023-11-10 18:47 ` pr-tracker-bot
2023-11-02  2:46 Steve French
2023-11-02 18:38 ` pr-tracker-bot
2023-10-15  2:46 Steve French
2023-10-15  2:52 ` pr-tracker-bot
2023-10-08  4:27 Steve French
2023-10-08 18:06 ` pr-tracker-bot
2023-09-29 22:11 Steve French
2023-09-29 23:59 ` pr-tracker-bot
2023-09-17  1:55 Steve French
2023-09-17 18:24 ` pr-tracker-bot
2023-08-09 23:11 Steve French
2023-08-10  5:02 ` pr-tracker-bot
2023-07-26  6:17 Steve French
2023-07-26 18:42 ` pr-tracker-bot
2023-06-30  5:59 Steve French
2023-07-01  5:04 ` pr-tracker-bot
2023-06-20  4:45 Steve French
2023-06-20 19:01 ` pr-tracker-bot
2023-06-11  1:59 Steve French
2023-06-11 17:43 ` pr-tracker-bot
2023-05-21  5:14 Steve French
2023-05-21 18:06 ` Linus Torvalds
2023-05-21 18:32   ` Linus Torvalds
2023-05-21 19:03   ` Steve French
2023-05-21 19:21     ` Linus Torvalds
2023-05-22  4:38       ` Steve French
2023-05-22  8:04         ` ronnie sahlberg
2023-05-21 18:09 ` pr-tracker-bot
2023-05-06  0:19 Steve French
2023-05-06  2:20 ` pr-tracker-bot
2023-04-27  2:11 Steve French
2023-04-29 18:19 ` pr-tracker-bot
2023-04-07  4:16 Steve French
2023-04-07 20:56 ` pr-tracker-bot
2023-03-25  0:00 Steve French
2023-03-25  1:18 ` pr-tracker-bot
2023-02-22  4:15 Steve French
2023-02-22 22:26 ` pr-tracker-bot
2023-01-28  1:45 Steve French
2023-01-28 19:33 ` pr-tracker-bot
2023-01-10  3:13 Steve French
2023-01-10 11:36 ` pr-tracker-bot
2022-12-15  3:18 Steve French
2022-12-15 17:32 ` Linus Torvalds
2022-12-15 18:28 ` pr-tracker-bot
2022-10-06 23:53 Steve French
2022-10-07 17:00 ` pr-tracker-bot
2022-08-19  5:03 Steve French
2022-08-19 21:14 ` pr-tracker-bot
2022-08-08 20:00 Steve French
2022-08-09  3:20 ` pr-tracker-bot
2022-06-01  6:20 Steve French
2022-06-01 19:34 ` pr-tracker-bot
2022-04-24  0:10 Steve French
2022-04-24  0:32 ` pr-tracker-bot
2022-04-01 18:40 Steve French
2022-04-01 21:41 ` Linus Torvalds
2022-04-01 21:45 ` pr-tracker-bot
2022-03-29  1:39 Steve French
2022-03-30  1:48 ` Linus Torvalds
2022-03-30  1:57   ` Steve French
2022-03-30  2:23   ` Linus Torvalds
2022-03-30  9:18     ` Christoph Hellwig
2022-03-30  9:17   ` Christoph Hellwig
2022-04-01  1:20   ` Al Viro
2022-04-01 12:52     ` Namjae Jeon
2022-04-01 13:34       ` Al Viro
2022-04-01 14:58         ` Namjae Jeon
2022-02-07 21:04 Steve French
2022-02-07 23:34 ` pr-tracker-bot
2021-11-27 21:43 Steve French
2021-11-27 22:52 ` pr-tracker-bot
2021-09-26 12:13 Steve French
2021-09-26 21:11 ` pr-tracker-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.