Heiko Carstens dfd948e32a fs/compat: fix parameter handling for compat readv/writev syscalls
We got a report that the pwritev syscall does not work correctly in
compat mode on s390.

It turned out that with commit 72ec35163f9f ("switch compat readv/writev
variants to COMPAT_SYSCALL_DEFINE") we lost the zero extension of a
couple of syscall parameters because the some parameter types haven't
been converted from unsigned long to compat_ulong_t.

This is needed for architectures where the ABI requires that the caller
of a function performed zero and/or sign extension to 64 bit of all
parameters.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: <stable@vger.kernel.org>	[v3.10+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-29 16:22:39 -08:00
..
2014-01-04 20:25:19 -05:00
2014-01-25 10:49:30 -08:00
2014-01-26 11:00:41 -08:00
2014-01-20 11:55:23 -08:00
2014-01-28 18:56:37 -08:00
2013-12-23 18:34:58 -08:00
2014-01-25 13:20:36 -08:00
2014-01-23 18:49:36 -08:00
2014-01-17 01:59:38 +01:00
2014-01-14 14:54:00 -05:00
2013-11-08 08:59:44 -07:00
2013-10-28 13:33:58 -06:00
2013-12-22 23:14:27 -08:00
2013-11-15 09:32:23 +09:00
2013-11-15 09:32:21 +09:00
2013-11-09 00:16:29 -05:00
2014-01-23 18:36:55 -08:00
2014-01-05 12:34:29 +01:00
2014-01-16 10:23:02 +10:30
2014-01-25 23:58:17 -05:00
2014-01-16 11:15:50 +01:00
2013-12-29 16:34:25 -05:00
2013-12-10 22:58:13 -08:00
2013-11-15 09:32:23 +09:00
2014-01-08 19:03:00 -02:00
2013-12-11 15:52:34 +01:00
2013-12-26 13:29:35 -05:00
2013-12-19 10:17:11 -07:00
2014-01-16 10:23:03 +10:30
2013-11-09 00:16:19 -05:00
2014-01-27 21:02:39 -08:00
2013-11-09 00:16:19 -05:00
2014-01-22 21:57:17 -08:00
2013-12-05 13:05:48 -08:00
2014-01-25 03:14:05 -05:00
2014-01-13 14:29:49 -08:00
2014-01-03 11:22:21 -08:00
2014-01-22 16:39:28 -08:00
2014-01-22 19:36:57 +01:00
2013-12-18 19:04:50 -08:00
2014-01-23 16:37:02 -08:00
2013-12-19 19:09:38 -05:00
2014-01-27 21:02:39 -08:00
2014-01-16 16:22:54 -08:00
2013-12-08 16:56:05 -08:00
2014-01-20 16:13:02 -08:00