diff options
| author | Guanglei Zhu <zhugl3@xiaopeng.com> | 2026-10-12 17:55:38 +0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-14 22:08:05 +0200 |
| commit | 99ae7dc439249b47a72eda07f78e02290fa1aebc (patch) | |
| tree | 00924badaf9c637ac9eb41a962cae8d4b255940a /scripts/basic/split-include.c | |
| parent | 36ebddca56b9d8993d6dc984fdecc748ee1f5e06 (diff) | |
| download | linux-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
