projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aef36d
)
generic arch_futex_atomic_op_inuser() doesn't need access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 18 Feb 2020 17:19:23 +0000
(12:19 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 28 Mar 2020 03:58:55 +0000
(23:58 -0400)
uses get_user() and put_user() for memory accesses
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/asm-generic/futex.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/futex.h
b/include/asm-generic/futex.h
index 3eab7ba912fcb288622e62fd1378b932ed7cc86c..f4c3470480c734730e90578274c445ef05c23c62 100644
(file)
--- 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;