Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull uaccess/access_ok updates from Al Viro: "Removals of trivially pointless access_ok() calls. Note: the fiemap stuff was removed from the series, since they are duplicates with part of ext4 series carried in Ted's tree" * 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: vmci_host: get rid of pointless access_ok() hfi1: get rid of pointless access_ok() usb: get rid of pointless access_ok() calls lpfc_debugfs: get rid of pointless access_ok() efi_test: get rid of pointless access_ok() drm_read(): get rid of pointless access_ok() via-pmu: don't bother with access_ok() drivers/crypto/ccp/sev-dev.c: get rid of pointless access_ok() omapfb: get rid of pointless access_ok() calls amifb: get rid of pointless access_ok() calls drivers/fpga/dfl-afu-dma-region.c: get rid of pointless access_ok() drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok() cm4000_cs.c cmm_ioctl(): get rid of pointless access_ok() nvram: drop useless access_ok() n_hdlc_tty_read(): remove pointless access_ok() tomoyo_write_control(): get rid of pointless access_ok() btrfs_ioctl_send(): don't bother with access_ok() fat_dir_ioctl(): hadn't needed that access_ok() for more than a decade... dlmfs_file_write(): get rid of pointless access_ok()
This commit is contained in:
@@ -70,9 +70,6 @@ copy_ucs2_from_user_len(efi_char16_t **dst, efi_char16_t __user *src,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!access_ok(src, 1))
|
||||
return -EFAULT;
|
||||
|
||||
buf = memdup_user(src, len);
|
||||
if (IS_ERR(buf)) {
|
||||
*dst = NULL;
|
||||
@@ -91,9 +88,6 @@ copy_ucs2_from_user_len(efi_char16_t **dst, efi_char16_t __user *src,
|
||||
static inline int
|
||||
get_ucs2_strsize_from_user(efi_char16_t __user *src, size_t *len)
|
||||
{
|
||||
if (!access_ok(src, 1))
|
||||
return -EFAULT;
|
||||
|
||||
*len = user_ucs2_strsize(src);
|
||||
if (*len == 0)
|
||||
return -EFAULT;
|
||||
@@ -118,9 +112,6 @@ copy_ucs2_from_user(efi_char16_t **dst, efi_char16_t __user *src)
|
||||
{
|
||||
size_t len;
|
||||
|
||||
if (!access_ok(src, 1))
|
||||
return -EFAULT;
|
||||
|
||||
len = user_ucs2_strsize(src);
|
||||
if (len == 0)
|
||||
return -EFAULT;
|
||||
@@ -142,9 +133,6 @@ copy_ucs2_to_user_len(efi_char16_t __user *dst, efi_char16_t *src, size_t len)
|
||||
if (!src)
|
||||
return 0;
|
||||
|
||||
if (!access_ok(dst, 1))
|
||||
return -EFAULT;
|
||||
|
||||
return copy_to_user(dst, src, len);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user