summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2012-09-01 12:34:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-09-05 18:34:13 -0700
commited6fe9d614fc1bca95eb8c0ccd0e92db00ef9d5d (patch)
tree21944562e0935f46f45c30986ddbe005c63feaca /net/tipc
parent5b716ac728bcc01b1f2a7ed6e437196602237c27 (diff)
downloadop-kernel-dev-ed6fe9d614fc1bca95eb8c0ccd0e92db00ef9d5d.zip
op-kernel-dev-ed6fe9d614fc1bca95eb8c0ccd0e92db00ef9d5d.tar.gz
Fix order of arguments to compat_put_time[spec|val]
Commit 644595f89620 ("compat: Handle COMPAT_USE_64BIT_TIME in net/socket.c") introduced a bug where the helper functions to take either a 64-bit or compat time[spec|val] got the arguments in the wrong order, passing the kernel stack pointer off as a user pointer (and vice versa). Because of the user address range check, that in turn then causes an EFAULT due to the user pointer range checking failing for the kernel address. Incorrectly resuling in a failed system call for 32-bit processes with a 64-bit kernel. On odder architectures like HP-PA (with separate user/kernel address spaces), it can be used read kernel memory. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud