diff options
author | hujianyang <hujianyang@huawei.com> | 2015-01-06 09:10:01 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-01-08 14:47:20 +0100 |
commit | a425c037f3dd8a56469158ab5f37beb46402d958 (patch) | |
tree | b412f83087392ee4b96c6be8437c782ad53a775b /lib/decompress_inflate.c | |
parent | ovl: Fix kernel panic while mounting overlayfs (diff) | |
download | linux-a425c037f3dd8a56469158ab5f37beb46402d958.tar.xz linux-a425c037f3dd8a56469158ab5f37beb46402d958.zip |
ovl: Fix opaque regression in ovl_lookup
Current multi-layer support overlayfs has a regression in
.lookup(). If there is a directory in upperdir and a regular
file has same name in lowerdir in a merged directory, lower
file is hidden and upper directory is set to opaque in former
case. But it is changed in present code.
In lowerdir lookup path, if a found inode is not directory,
the type checking of previous inode is missing. This inode
will be copied to the lowerstack of ovl_entry directly.
That will lead to several wrong conditions, for example,
the reading of the directory in upperdir may return an error
like:
ls: reading directory .: Not a directory
This patch makes the lowerdir lookup path check the opaque
for non-directory file too.
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'lib/decompress_inflate.c')
0 files changed, 0 insertions, 0 deletions