From: Al Viro Date: Tue, 18 Feb 2020 17:19:23 +0000 (-0500) Subject: generic arch_futex_atomic_op_inuser() doesn't need access_ok() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a251b2d513ea4116ddb5487610e4b4048c7aa397;p=linux.git generic arch_futex_atomic_op_inuser() doesn't need access_ok() uses get_user() and put_user() for memory accesses Signed-off-by: Al Viro --- diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h index 3eab7ba912fcb..f4c3470480c73 100644 --- a/include/asm-generic/futex.h +++ b/include/asm-generic/futex.h @@ -33,8 +33,6 @@ arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr) int oldval, ret; u32 tmp; - if (!access_ok(uaddr, sizeof(u32))) - return -EFAULT; preempt_disable(); ret = -EFAULT;