From: David Woodhouse Date: Thu, 2 Jun 2005 11:13:21 +0000 (+0100) Subject: AUDIT: Fix user pointer deref thinko in sys_socketcall(). X-Git-Tag: v2.6.14-rc2~49^2~40 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4bcff1b37e7c3aed914d1ce5b45994adc7dbf455;p=~emulex%2Finfiniband.git AUDIT: Fix user pointer deref thinko in sys_socketcall(). 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 --- diff --git a/net/socket.c b/net/socket.c index 6b7c3b51a7c..38729af0946 100644 --- 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), args); + err = audit_socketcall(nargs[call]/sizeof(unsigned long), a); if (err) return err;