kernel_optimize_test/fs/overlayfs
Amir Goldstein 86eaa13046 ovl: unbless lower st_ino of unverified origin
On a malformed overlay, several redirected dirs can point to the same
dir on a lower layer. This presents a similar challenge as broken
hardlinks, because different objects in the overlay can return the same
st_ino/st_dev pair from stat(2).

For broken hardlinks, we do not provide constant st_ino on copy up to
avoid this inconsistency. When NFS export feature is enabled, apply
the same logic to files and directories with unverified lower origin.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2018-01-24 11:25:52 +01:00
..
copy_up.c ovl: generalize ovl_verify_origin() and helpers 2018-01-24 10:19:54 +01:00
dir.c ovl: take lower dir inode mutex outside upper sb_writers lock 2018-01-19 17:43:23 +01:00
inode.c ovl: unbless lower st_ino of unverified origin 2018-01-24 11:25:52 +01:00
Kconfig ovl: add support for "nfs_export" configuration 2018-01-24 11:25:37 +01:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: verify stored origin fh matches lower dir 2018-01-24 11:25:51 +01:00
overlayfs.h ovl: add support for "nfs_export" configuration 2018-01-24 11:25:37 +01:00
ovl_entry.h ovl: add support for "nfs_export" configuration 2018-01-24 11:25:37 +01:00
readdir.c ovl: simplify arguments to ovl_check_origin_fh() 2018-01-24 10:19:46 +01:00
super.c ovl: add support for "nfs_export" configuration 2018-01-24 11:25:37 +01:00
util.c ovl: add support for "nfs_export" configuration 2018-01-24 11:25:37 +01:00