-
- Downloads
ksmbd: fix racy issue from session setup and logoff
This racy issue is triggered by sending concurrent session setup and logoff requests. This patch does not set connection status as KSMBD_SESS_GOOD if state is KSMBD_SESS_NEED_RECONNECT in session setup. And relookup session to validate if session is deleted in logoff. Cc: stable@vger.kernel.org Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-20481, ZDI-CAN-20590, ZDI-CAN-20596 Signed-off-by:Namjae Jeon <linkinjeon@kernel.org> Signed-off-by:
Steve French <stfrench@microsoft.com>
Showing
- fs/ksmbd/connection.c 7 additions, 7 deletionsfs/ksmbd/connection.c
- fs/ksmbd/connection.h 23 additions, 16 deletionsfs/ksmbd/connection.h
- fs/ksmbd/mgmt/user_session.c 1 addition, 0 deletionsfs/ksmbd/mgmt/user_session.c
- fs/ksmbd/server.c 2 additions, 1 deletionfs/ksmbd/server.c
- fs/ksmbd/smb2pdu.c 43 additions, 24 deletionsfs/ksmbd/smb2pdu.c
- fs/ksmbd/transport_tcp.c 1 addition, 1 deletionfs/ksmbd/transport_tcp.c
Loading