diff options
author | Amir Goldstein <amir73il@gmail.com> | 2019-11-16 18:52:20 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-01-24 09:46:45 +0100 |
commit | 1b81dddd354cf304574d79004400a6385613ae4e (patch) | |
tree | cbd7bb2a96384c3ab2430e95ce5e0e8ccf67b5a3 /fs/overlayfs/export.c | |
parent | 07f1e59637a8e5a8bddba5da7567d46635da510f (diff) | |
download | linux-stable-1b81dddd354cf304574d79004400a6385613ae4e.tar.gz linux-stable-1b81dddd354cf304574d79004400a6385613ae4e.tar.bz2 linux-stable-1b81dddd354cf304574d79004400a6385613ae4e.zip |
ovl: fix corner case of conflicting lower layer uuid
This fixes ovl_lower_uuid_ok() to correctly detect the corner case:
- two filesystems, A and B, both have null uuid
- upper layer is on A
- lower layer 1 is also on A
- lower layer 2 is on B
In this case, bad_uuid would not have been set for B, because the check
only involved the list of lower fs. Hence we'll try to decode a layer 2
origin on layer 1 and fail.
We check for conflicting (and null) uuid among all lower layers, including
those layers that are on the same fs as the upper layer.
Reported-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/export.c')
0 files changed, 0 insertions, 0 deletions