diff options
author | Namjae Jeon | 2023-12-31 16:12:52 +0900 |
---|---|---|
committer | Greg Kroah-Hartman | 2024-01-05 15:18:31 +0100 |
commit | 0a9b91f45e88f99cfa30f03e80ca836b83b7f336 (patch) | |
tree | d875a7009d70e9317de6c39ca1b6742d7bc5aad1 /ipc | |
parent | d782f42eed93b267cd013935c4a5426aeb9adfca (diff) |
ksmbd: check if a mount point is crossed during path lookup
[ Upstream commit 2b57a4322b1b14348940744fdc02f9a86cbbdbeb ]
Since commit 74d7970febf7 ("ksmbd: fix racy issue from using ->d_parent and
->d_name"), ksmbd can not lookup cross mount points. If last component is
a cross mount point during path lookup, check if it is crossed to follow it
down. And allow path lookup to cross a mount point when a crossmnt
parameter is set to 'yes' in smb.conf.
Cc: stable@vger.kernel.org
Fixes: 74d7970febf7 ("ksmbd: fix racy issue from using ->d_parent and ->d_name")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions