diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2020-12-14 15:26:13 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-12-14 15:26:13 +0100 |
commit | 3078d85c9a1099405a0463c4d112ba97ee5bd217 (patch) | |
tree | c616c7bb447c3579c4af62f48563cace12beb73a /fs/overlayfs/namei.c | |
parent | 7c03e2cda4a584cadc398e8f6641ca9988a39d52 (diff) | |
download | linux-stable-3078d85c9a1099405a0463c4d112ba97ee5bd217.tar.gz linux-stable-3078d85c9a1099405a0463c4d112ba97ee5bd217.tar.bz2 linux-stable-3078d85c9a1099405a0463c4d112ba97ee5bd217.zip |
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/namei.c')
0 files changed, 0 insertions, 0 deletions