OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f37d47
)
AUDIT: Fix user pointer deref thinko in sys_socketcall().
author
David Woodhouse
<dwmw2@shinybook.infradead.org>
Thu, 2 Jun 2005 11:13:21 +0000
(12:13 +0100)
committer
David Woodhouse
<dwmw2@shinybook.infradead.org>
Thu, 2 Jun 2005 11:13:21 +0000
(12:13 +0100)
I cunningly put the audit call immediately after the
copy_from_user().... but used the _userspace_ copy of the args still.
Let's not do that.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
net/socket.c
patch
|
blob
|
history
diff --git
a/net/socket.c
b/net/socket.c
index
6b7c3b5
..
38729af
100644
(file)
--- a/
net/socket.c
+++ b/
net/socket.c
@@
-1908,7
+1908,7
@@
asmlinkage long sys_socketcall(int call, unsigned long __user *args)
if (copy_from_user(a, args, nargs[call]))
return -EFAULT;
- err = audit_socketcall(nargs[call]/sizeof(unsigned long), a
rgs
);
+ err = audit_socketcall(nargs[call]/sizeof(unsigned long), a);
if (err)
return err;