projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f06d3a7
)
btrfs_ioctl_send(): don't bother with access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 19 Feb 2020 14:35:32 +0000
(09:35 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 9 May 2020 19:59:10 +0000
(15:59 -0400)
we do copy_from_user() on that range anyway
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/send.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index c5f41bd86765f4452408e2e6b634dd02a2de3dd1..6a92ecf9eaa2777d48e897c075b44fc48fc613d1 100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-7065,13
+7065,6
@@
long btrfs_ioctl_send(struct file *mnt_file, struct btrfs_ioctl_send_args *arg)
goto out;
}
- if (!access_ok(arg->clone_sources,
- sizeof(*arg->clone_sources) *
- arg->clone_sources_count)) {
- ret = -EFAULT;
- goto out;
- }
-
if (arg->flags & ~BTRFS_SEND_FLAG_MASK) {
ret = -EINVAL;
goto out;