projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
502fd72
)
tomoyo_write_control(): get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 14:20:06 +0000
(10:20 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 29 May 2020 15:02:29 +0000
(11:02 -0400)
address is passed only to get_user()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/tomoyo/common.c
patch
|
blob
|
history
diff --git
a/security/tomoyo/common.c
b/security/tomoyo/common.c
index 1b467381986f7f073d6cd62c4dab71493aaeaf60..f93f8acd05f7673fe693fe17c352cbfbecde2cf9 100644
(file)
--- a/
security/tomoyo/common.c
+++ b/
security/tomoyo/common.c
@@
-2662,8
+2662,6
@@
ssize_t tomoyo_write_control(struct tomoyo_io_buffer *head,
if (!head->write)
return -EINVAL;
- if (!access_ok(buffer, buffer_len))
- return -EFAULT;
if (mutex_lock_interruptible(&head->io_sem))
return -EINTR;
head->read_user_buf_avail = 0;