summaryrefslogtreecommitdiff
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-12-14 17:26:13 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2020-12-14 17:26:13 +0300
commit3078d85c9a1099405a0463c4d112ba97ee5bd217 (patch)
treec616c7bb447c3579c4af62f48563cace12beb73a /fs/overlayfs
parent7c03e2cda4a584cadc398e8f6641ca9988a39d52 (diff)
downloadlinux-3078d85c9a1099405a0463c4d112ba97ee5bd217.tar.xz
vfs: verify source area in vfs_dedupe_file_range_one()
Call remap_verify_area() on the source file as well as the destination. When called from vfs_dedupe_file_range() the check as already been performed, but not so if called from layered fs (overlayfs, etc...) Could ommit the redundant check in vfs_dedupe_file_range(), but leave for now to get error early (for fear of breaking backward compatibility). This call shouldn't be performance sensitive. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs')
0 files changed, 0 insertions, 0 deletions