aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2023-06-28 00:24:47 +0000
committerSteve French <[email protected]>2023-06-28 16:48:56 +0000
commit49024ec8795ed2bd7217c249ef50a70c4e25d662 (patch)
tree4df4277d2a82273da28c5a200ceec7da205778b5 /tools/perf/scripts/python/net_dropmonitor.py
parentsmb: client: fix broken file attrs with nodfs mounts (diff)
downloadkernel-49024ec8795ed2bd7217c249ef50a70c4e25d662.tar.gz
kernel-49024ec8795ed2bd7217c249ef50a70c4e25d662.zip
smb: client: fix parsing of source mount option
Handle trailing and leading separators when parsing UNC and prefix paths in smb3_parse_devname(). Then, store the sanitised paths in smb3_fs_context::source. This fixes the following cases $ mount //srv/share// /mnt/1 -o ... $ cat /mnt/1/d0/f0 cat: /mnt/1/d0/f0: Invalid argument The -EINVAL was returned because the client sent SMB2_CREATE "\\d0\f0" rather than SMB2_CREATE "\d0\f0". $ mount //srv//share /mnt/1 -o ... mount: Invalid argument The -EINVAL was returned correctly although the client only realised it after sending a couple of bad requests rather than bailing out earlier when parsing mount options. Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Cc: [email protected] Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions