1
linux/fs/smb/server
Namjae Jeon 0a77d947f5 ksmbd: check outstanding simultaneous SMB operations
If Client send simultaneous SMB operations to ksmbd, It exhausts too much
memory through the "ksmbd_work_cache”. It will cause OOM issue.
ksmbd has a credit mechanism but it can't handle this problem. This patch
add the check if it exceeds max credits to prevent this problem by assuming
that one smb request consumes at least one credit.

Cc: stable@vger.kernel.org # v5.15+
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2024-11-05 09:26:38 +09:00
..
mgmt ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create 2024-11-05 09:26:35 +09:00
asn1.c ksmbd: validate mech token in session setup 2024-01-14 11:39:49 -06:00
asn1.h
auth.c ksmbd: add support for supplementary groups 2024-10-11 11:02:14 -05:00
auth.h
connection.c ksmbd: check outstanding simultaneous SMB operations 2024-11-05 09:26:38 +09:00
connection.h ksmbd: check outstanding simultaneous SMB operations 2024-11-05 09:26:38 +09:00
crypto_ctx.c
crypto_ctx.h
glob.h ksmbd: remove module version 2024-03-18 21:21:38 -05:00
Kconfig
ksmbd_netlink.h ksmbd: add support for supplementary groups 2024-10-11 11:02:14 -05:00
ksmbd_spnego_negtokeninit.asn1
ksmbd_spnego_negtokentarg.asn1
ksmbd_work.c
ksmbd_work.h
Makefile
misc.c ksmbd: Add kernel-doc for ksmbd_extract_sharename() function 2024-02-07 20:23:37 -06:00
misc.h
ndr.c
ndr.h
nterr.h
ntlmssp.h
oplock.c ksmbd: Correct typos in multiple comments across various files 2024-09-25 21:33:22 -05:00
oplock.h ksmbd: remove duplicate SMB2 Oplock levels definitions 2024-07-14 18:00:35 -05:00
server.c ksmbd: check outstanding simultaneous SMB operations 2024-11-05 09:26:38 +09:00
server.h ksmbd: add durable scavenger timer 2024-07-14 21:45:40 -05:00
smb2misc.c smb: move SMB2 Status code to common header file 2024-09-15 10:42:44 -05:00
smb2ops.c ksmbd: do not set SMB2_GLOBAL_CAP_ENCRYPTION for SMB 3.1.1 2024-04-02 09:21:25 -05:00
smb2pdu.c ksmbd: fix user-after-free from session log off 2024-10-09 21:23:17 -05:00
smb2pdu.h ksmbd: Annotate struct copychunk_ioctl_req with __counted_by_le() 2024-10-01 14:50:51 -05:00
smb_common.c ksmbd: check outstanding simultaneous SMB operations 2024-11-05 09:26:38 +09:00
smb_common.h ksmbd: check outstanding simultaneous SMB operations 2024-11-05 09:26:38 +09:00
smbacl.c ksmbd: free ppace array on error in parse_dacl 2024-01-09 19:27:36 -06:00
smbacl.h smb: move some duplicate definitions to common/smbacl.h 2024-09-15 10:42:44 -05:00
smbfsctl.h
transport_ipc.c ksmbd: add support for supplementary groups 2024-10-11 11:02:14 -05:00
transport_ipc.h ksmbd: add support for supplementary groups 2024-10-11 11:02:14 -05:00
transport_rdma.c ksmbd: Use struct_size() to improve smb_direct_rdma_xmit() 2024-10-01 14:50:51 -05:00
transport_rdma.h
transport_tcp.c ksmbd: Unlock on in ksmbd_tcp_set_interfaces() 2024-08-29 20:28:37 -05:00
transport_tcp.h
unicode.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
unicode.h
vfs_cache.c ksmbd: add refcnt to ksmbd_conn struct 2024-09-14 00:03:15 -05:00
vfs_cache.h ksmbd: fix warning: comparison of distinct pointer types lacks a cast 2024-09-20 22:16:11 -05:00
vfs.c ksmbd: handle caseless file creation 2024-09-14 00:03:15 -05:00
vfs.h ksmbd: fix missing use of get_write in in smb2_set_ea() 2024-06-11 23:43:09 -05:00
xattr.h ksmbd: Correct typos in multiple comments across various files 2024-09-25 21:33:22 -05:00