From: Al Viro Date: Wed, 19 Feb 2020 14:35:32 +0000 (-0500) Subject: btrfs_ioctl_send(): don't bother with access_ok() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=502fd722fe1ed0133d1108bff1d5911f46de6641;p=linux.git btrfs_ioctl_send(): don't bother with access_ok() we do copy_from_user() on that range anyway Signed-off-by: Al Viro --- diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index c5f41bd86765f..6a92ecf9eaa27 100644 --- 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;