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-Url: https://git.stricted.de/?a=commitdiff_plain;h=4bcff1b37e7c3aed914d1ce5b45994adc7dbf455;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 6b7c3b51a7c1..38729af09461 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;