lkml.org 
[lkml]   [2020]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[tip: locking/core] sh: no need of access_ok() in arch_futex_atomic_op_inuser()
The following commit has been merged into the locking/core branch of tip:

Commit-ID: 0bea4f7beb68db927a05ff4c08b3ce9f32d043f9
Gitweb: https://git.kernel.org/tip/0bea4f7beb68db927a05ff4c08b3ce9f32d043f9
Author: Al Viro <viro@zeniv.linux.org.uk>
AuthorDate: Sun, 16 Feb 2020 10:27:46 -05:00
Committer: Al Viro <viro@zeniv.linux.org.uk>
CommitterDate: Fri, 27 Mar 2020 23:58:52 -04:00

sh: no need of access_ok() in arch_futex_atomic_op_inuser()

everything it uses is doing access_ok() already

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
arch/sh/include/asm/futex.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/sh/include/asm/futex.h b/arch/sh/include/asm/futex.h
index 324fa68..b39cda0 100644
--- a/arch/sh/include/asm/futex.h
+++ b/arch/sh/include/asm/futex.h
@@ -34,9 +34,6 @@ static inline int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval,
u32 oldval, newval, prev;
int ret;

- if (!access_ok(uaddr, sizeof(u32)))
- return -EFAULT;
-
do {
ret = get_user(oldval, uaddr);

\
 
 \ /
  Last update: 2020-03-28 12:07    [W:0.027 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site