linux/fs/ksmbd
Namjae Jeon 18973b73fa ksmbd: fix deadlock in ksmbd_find_crypto_ctx()
commit 7b4323373d upstream.

Deadlock is triggered by sending multiple concurrent session setup
requests. It should be reused after releasing when getting ctx for crypto.
Multiple consecutive ctx uses cause deadlock while waiting for releasing
due to the limited number of ctx.

Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-20591
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:03:04 +09:00
..
mgmt ksmbd: fix racy issue under cocurrent smb2 tree disconnect 2023-05-11 23:03:03 +09:00
asn1.c
asn1.h
auth.c ksmbd: fix deadlock in ksmbd_find_crypto_ctx() 2023-05-11 23:03:04 +09:00
auth.h
connection.c ksmbd: do not call kvmalloc() with __GFP_NORETRY | __GFP_NO_WARN 2023-04-13 16:55:29 +02:00
connection.h ksmbd: don't terminate inactive sessions after a few seconds 2023-03-30 12:49:26 +02:00
crypto_ctx.c
crypto_ctx.h
glob.h
Kconfig
ksmbd_netlink.h
ksmbd_spnego_negtokeninit.asn1
ksmbd_spnego_negtokentarg.asn1
ksmbd_work.c
ksmbd_work.h
Makefile
misc.c
misc.h
ndr.c
ndr.h
nterr.h
ntlmssp.h
oplock.c
oplock.h
server.c ksmbd: call rcu_barrier() in ksmbd_server_exit() 2023-05-11 23:03:04 +09:00
server.h
smb_common.c ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr 2023-04-13 16:55:29 +02:00
smb_common.h ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr 2023-04-13 16:55:29 +02:00
smb2misc.c ksmbd: do not allow the actual frame length to be smaller than the rfc1002 length 2023-03-10 09:34:07 +01:00
smb2ops.c
smb2pdu.c ksmbd: not allow guest user on multichannel 2023-05-11 23:03:04 +09:00
smb2pdu.h
smbacl.c
smbacl.h
smbfsctl.h
smbstatus.h
transport_ipc.c
transport_ipc.h
transport_rdma.c ksmbd: don't terminate inactive sessions after a few seconds 2023-03-30 12:49:26 +02:00
transport_rdma.h
transport_tcp.c ksmbd: don't terminate inactive sessions after a few seconds 2023-03-30 12:49:26 +02:00
transport_tcp.h
unicode.c
unicode.h
uniupr.h
vfs_cache.c ksmbd: fix possible memory leak in smb2_lock() 2023-03-10 09:34:07 +01:00
vfs_cache.h
vfs.c
vfs.h
xattr.h