projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c28f8e
)
smb/server: fix refcount leak in parse_durable_handle_context()
author
ZhangGuoDong
<zhangguodong@kylinos.cn>
Mon, 29 Dec 2025 02:13:29 +0000
(10:13 +0800)
committer
Steve French
<stfrench@microsoft.com>
Mon, 29 Dec 2025 23:39:58 +0000
(17:39 -0600)
When the command is a replay operation and -ENOEXEC is returned,
the refcount of ksmbd_file must be released.
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c
patch
|
blob
|
history
diff --git
a/fs/smb/server/smb2pdu.c
b/fs/smb/server/smb2pdu.c
index
8a7c48a
..
ec9e4cd
100644
(file)
--- a/
fs/smb/server/smb2pdu.c
+++ b/
fs/smb/server/smb2pdu.c
@@
-2812,6
+2812,7
@@
static int parse_durable_handle_context(struct ksmbd_work *work,
SMB2_CLIENT_GUID_SIZE)) {
if (!(req->hdr.Flags & SMB2_FLAGS_REPLAY_OPERATION)) {
err = -ENOEXEC;
+ ksmbd_put_durable_fd(dh_info->fp);
goto out;
}