linux-stable/fs/ksmbd/mgmt
Atte Heikkilä f5ba1cdaf5 ksmbd: validate share name from share config response
Share config response may contain the share name without casefolding as
it is known to the user space daemon. When it is present, casefold and
compare it to the share name the share config request was made with. If
they differ, we have a share config which is incompatible with the way
share config caching is done. This is the case when CONFIG_UNICODE is
not set, the share name contains non-ASCII characters, and those non-
ASCII characters do not match those in the share name known to user
space. In other words, when CONFIG_UNICODE is not set, UTF-8 share
names now work but are only case-insensitive in the ASCII range.

Signed-off-by: Atte Heikkilä <atteh.mailbox@gmail.com>
Acked-by: Tom Talpey <tom@talpey.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2022-10-05 01:15:44 -05:00
..
ksmbd_ida.c
ksmbd_ida.h
share_config.c ksmbd: validate share name from share config response 2022-10-05 01:15:44 -05:00
share_config.h ksmbd: validate share name from share config response 2022-10-05 01:15:44 -05:00
tree_connect.c ksmbd: validate share name from share config response 2022-10-05 01:15:44 -05:00
tree_connect.h ksmbd: casefold utf-8 share names and fix ascii lowercase conversion 2022-10-05 01:15:37 -05:00
user_config.c ksmbd: set RSS capable in FSCTL_QUERY_NETWORK_INTERFACE_INFO 2021-12-28 22:47:22 -06:00
user_config.h ksmbd: set RSS capable in FSCTL_QUERY_NETWORK_INTERFACE_INFO 2021-12-28 22:47:22 -06:00
user_session.c ksmbd: fix racy issue while destroying session on multichannel 2022-07-31 23:14:32 -05:00
user_session.h ksmbd: fix racy issue while destroying session on multichannel 2022-07-31 23:14:32 -05:00