diff options
| author | Thiago Rafael Becker <[email protected]> | 2021-12-17 18:20:22 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2021-12-18 01:16:49 +0000 |
| commit | a31080899d5fdafcccf7f39dd214a814a2c82626 (patch) | |
| tree | 227afe3dfcae761b9431a0f29d00dc7f29c68cdc /tools/perf/scripts/python/libxed.py | |
| parent | cifs: ignore resource_id while getting fscache super cookie (diff) | |
| download | kernel-a31080899d5fdafcccf7f39dd214a814a2c82626.tar.gz kernel-a31080899d5fdafcccf7f39dd214a814a2c82626.zip | |
cifs: sanitize multiple delimiters in prepath
mount.cifs can pass a device with multiple delimiters in it. This will
cause rename(2) to fail with ENOENT.
V2:
- Make sanitize_path more readable.
- Fix multiple delimiters between UNC and prepath.
- Avoid a memory leak if a bad user starts putting a lot of delimiters
in the path on purpose.
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2031200
Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api")
Cc: [email protected] # 5.11+
Acked-by: Ronnie Sahlberg <[email protected]>
Signed-off-by: Thiago Rafael Becker <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
