summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-10-04 09:58:34 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-04 10:22:09 +0900
commit1b1a5eaf09da51c27457b752ac323344bd64493f (patch)
tree063d09f29b57f1b141af1a4bf89a5e27465acd3c /tools/lib/python
parent6a3d7876232a605b4b64811b7a35ea8c86b9a06b (diff)
downloadlinux-next-1b1a5eaf09da51c27457b752ac323344bd64493f.tar.gz
linux-next-1b1a5eaf09da51c27457b752ac323344bd64493f.zip
ksmbd: cache the resolved share path for durable reconnects
A share configured as /a/link/b, with /a/link pointing to /real, is opened relative to share->vfs_path at /real/b. However, ksmbd_validate_name_reconnect() compares the file's d_path() result against the original /a/link/b string and rejects a valid reconnect. Render share->vfs_path with d_path() after the existing kern_path() lookup and cache a copy in real_path along with its length. Use the resolved string for durable reconnect name validation. Keep path and path_sz as the configured spelling for existing consumers, including the volume serial calculation and path lookups. Fixes: c8efcc786146 ("ksmbd: add support for durable handles v1/v2") Reported-by: Dairui Zhang <zhangdairui@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions