summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorGuanglei Zhu <zhugl3@xiaopeng.com>2026-10-12 17:55:38 +0800
committerChristian Brauner <brauner@kernel.org>2026-10-14 22:08:05 +0200
commit99ae7dc439249b47a72eda07f78e02290fa1aebc (patch)
tree00924badaf9c637ac9eb41a962cae8d4b255940a /scripts/basic/split-include.c
parent36ebddca56b9d8993d6dc984fdecc748ee1f5e06 (diff)
downloadlinux-99ae7dc439249b47a72eda07f78e02290fa1aebc.tar.gz
linux-99ae7dc439249b47a72eda07f78e02290fa1aebc.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 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions