summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorGuanglei Zhu <zhugl3@xiaopeng.com>2026-10-12 17:55:38 +0800
committerChristian Brauner <brauner@kernel.org>2026-10-12 12:44:23 +0200
commit81f4be14beee1b6d073edff46f9637851f1df7d1 (patch)
tree4c78e201ef43c976ddafa36e215841cffa6abaec /tools/lib/python/kdoc/python_version.py
parentc40d331230721cb10145a5593b1b0002f27e856c (diff)
downloadlinux-next-81f4be14beee1b6d073edff46f9637851f1df7d1.tar.gz
linux-next-81f4be14beee1b6d073edff46f9637851f1df7d1.zip
ovl: reject lowerdir ending with unescaped backslash
In ovl_parse_param_split_lowerdirs() a backslash consumes the character that follows it. When the backslash is the last character of the lowerdir value, it consumes the NUL terminator: the loop exits normally and the backslash is kept in the output, so the lowerdir is passed downstream with a trailing backslash and the mount fails later with a confusing ENOENT from path lookup. A trailing unescaped backslash escapes nothing, so reject it with EINVAL. Signed-off-by: Guanglei Zhu <zhugl3@xiaopeng.com> Link: https://patch.msgid.link/20261012095538.938789-1-zhugl3@xiaopeng.com Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions