linux/fs/overlayfs
Amir Goldstein d9d150ae50 ovl: fix freeze protection bypass in ovl_clone_file_range()
Tested by doing clone on overlayfs while upper xfs+reflink is frozen:

  xfs_io -f /ovl/y
                             fsfreeze -f /xfs
  xfs_io> reflink /ovl/x

Before the fix xfs_io enters xfs_reflink_remap_range() and blocks
in xfs_trans_alloc(). After the fix, xfs_io blocks outside xfs code
in ovl_clone_file_range().

Fixes: 8ede205541 ("ovl: add reflink/copyfile/dedup support")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2018-09-24 10:54:01 +02:00
..
Kconfig ovl: Provide a mount option metacopy=on/off for metadata copyup 2018-07-20 09:56:06 +02:00
Makefile ovl: stack file ops 2018-07-18 15:44:41 +02:00
copy_up.c ovl: Enable metadata only feature 2018-07-20 09:56:17 +02:00
dir.c ovl: set I_CREATING on inode being created 2018-08-22 13:15:25 -07:00
export.c ovl: Modify ovl_lookup() and friends to lookup metacopy dentry 2018-07-20 09:56:09 +02:00
file.c ovl: fix freeze protection bypass in ovl_clone_file_range() 2018-09-24 10:54:01 +02:00
inode.c ovl: fix GPF in swapfile_activate of file from overlayfs over xfs 2018-08-30 17:08:35 +02:00
namei.c ovl: Check redirect on index as well 2018-07-20 09:56:16 +02:00
overlayfs.h ovl: add helper to force data copy-up 2018-07-20 09:56:16 +02:00
ovl_entry.h ovl: Store lower data inode in ovl_inode 2018-07-20 09:56:11 +02:00
readdir.c ovl: fix wrong use of impure dir cache in ovl_iterate() 2018-07-17 16:04:34 +02:00
super.c ovl: fix oopses in ovl_fill_super() failure paths 2018-09-10 12:55:49 +02:00
util.c ovl: fix memory leak on unlink of indexed file 2018-09-24 10:54:01 +02:00