]> Git Repo - linux.git/commit
ksmbd: check outstanding simultaneous SMB operations
authorNamjae Jeon <[email protected]>
Mon, 4 Nov 2024 04:43:06 +0000 (13:43 +0900)
committerNamjae Jeon <[email protected]>
Tue, 5 Nov 2024 00:26:38 +0000 (09:26 +0900)
commit0a77d947f599b1f39065015bec99390d0c0022ee
treee39c5f6dca528bba8c67d2cec3c2ba9e99a7c4cb
parentb8fc56fbca7482c1e5c0e3351c6ae78982e25ada
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: [email protected] # v5.15+
Reported-by: Norbert Szetei <[email protected]>
Tested-by: Norbert Szetei <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/smb/server/connection.c
fs/smb/server/connection.h
fs/smb/server/server.c
fs/smb/server/smb_common.c
fs/smb/server/smb_common.h
This page took 0.052072 seconds and 4 git commands to generate.