Lin Feng Shen
d64b1c878f
[PATCH] NFS: fix error handling on access_ok in compat_sys_nfsservctl
...
Functions compat_nfs_svc_trans, compat_nfs_clnt_trans,
compat_nfs_exp_trans, compat_nfs_getfd_trans and compat_nfs_getfs_trans,
which are called by compat_sys_nfsservctl(fs/compat.c), don't handle the
return value of access_ok properly. access_ok return 1 when the addr is
valid, and 0 when it's not, but these functions have the reversed
understanding. When the address is valid, they always return -EFAULT to
compat_sys_nfsservctl.
An example is to run /usr/sbin/rpc.nfsd(32bit program on Power5). It
doesn't function as expected. strace showes that nfsservctl returns
-EFAULT.
The patch fixes this by correcting the error handling on the return value
of access_ok in the five functions.
Signed-off-by: Lin Feng Shen <shenlinf@cn.ibm.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-21 12:59:16 -07:00
..
2006-05-15 11:20:56 -07:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-05-15 11:20:54 -07:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-04-24 16:24:54 +00:00
2006-03-28 09:16:06 -08:00
2006-05-17 14:38:51 -07:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-03-23 07:38:17 -08:00
2006-03-28 09:16:06 -08:00
2006-01-18 19:20:28 -08:00
2006-03-30 12:28:18 -08:00
2006-05-03 20:05:41 -07:00
2006-03-28 09:16:06 -08:00
2006-04-02 13:41:02 +02:00
2006-04-26 10:49:16 +02:00
2006-03-28 09:16:06 -08:00
2006-04-01 01:14:43 +02:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-03-31 12:18:51 -08:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-03-26 08:56:55 -08:00
2006-03-28 09:16:06 -08:00
2006-05-15 11:20:58 -07:00
2006-03-28 09:16:06 -08:00
2006-04-19 12:43:47 -04:00
2006-03-28 09:16:06 -08:00
2006-03-31 12:18:55 -08:00
2006-03-28 09:16:06 -08:00
2006-04-19 13:06:37 -04:00
2005-10-11 09:46:54 -07:00
2006-04-11 06:18:53 -07:00
2006-03-24 07:33:19 -08:00
2006-03-28 09:16:06 -08:00
2006-05-17 14:38:49 -07:00
2006-03-28 09:16:06 -08:00
2006-05-12 18:42:09 -07:00
2006-04-19 09:13:51 -07:00
2006-03-28 09:16:06 -08:00
2006-03-28 09:16:06 -08:00
2006-04-22 09:19:53 -07:00
2006-03-28 09:16:06 -08:00
2006-05-15 11:20:56 -07:00
2006-04-14 11:41:24 -07:00
2006-04-02 13:39:21 +02:00
2006-04-02 13:40:13 +02:00
2006-03-28 09:16:06 -08:00
2006-03-31 12:18:55 -08:00
2006-05-08 19:51:58 +10:00
2006-03-25 08:23:00 -08:00
2006-01-11 18:42:13 -08:00
2006-03-28 09:16:06 -08:00
2006-01-10 08:01:25 -08:00
2006-03-24 18:38:48 +01:00
2006-03-25 09:10:52 -08:00
2005-04-16 15:20:36 -07:00
2006-03-25 08:23:01 -08:00
2006-03-28 09:16:06 -08:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:38 -07:00
2006-03-26 08:57:00 -08:00
2006-05-01 19:59:32 +02:00
2006-03-27 08:44:48 -08:00
2006-03-31 12:18:53 -08:00
2006-03-24 07:33:19 -08:00
2006-05-21 12:59:16 -07:00
2006-03-31 12:19:00 -08:00
2006-03-26 08:56:56 -08:00
2006-04-01 01:10:13 +02:00
2006-03-26 08:56:56 -08:00
2006-04-02 13:36:13 +02:00
2006-01-08 20:12:40 -08:00
2006-04-11 06:18:42 -07:00
2006-04-19 09:13:49 -07:00
2006-04-02 13:37:19 +02:00
2006-04-11 13:53:33 +02:00
2006-03-23 07:38:17 -08:00
2006-03-28 09:16:05 -08:00
2005-10-30 17:37:32 -08:00
2006-03-25 08:22:56 -08:00
2006-04-02 13:38:18 +02:00
2006-04-11 06:18:45 -07:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-04-19 09:13:50 -07:00
2006-01-08 20:13:36 -08:00
2006-03-28 09:16:06 -08:00
2006-05-08 08:07:17 -07:00
2006-05-17 14:38:51 -07:00
2006-03-28 09:16:08 -08:00
2006-03-26 08:57:01 -08:00
2006-03-31 12:19:01 -08:00
2006-05-15 11:20:57 -07:00
2006-03-24 07:33:19 -08:00
2006-05-15 11:20:54 -07:00
2006-05-02 15:29:57 +02:00
2006-03-24 07:33:24 -08:00
2005-11-07 18:18:11 -08:00
2005-10-08 15:00:57 -07:00
2005-04-16 15:20:36 -07:00
2006-03-23 07:38:11 -08:00
2006-03-23 07:38:11 -08:00
2006-04-11 13:56:09 +02:00
2006-01-09 15:59:24 -08:00
2006-04-11 06:18:41 -07:00
2006-03-23 07:38:12 -08:00
2006-05-04 06:55:12 +02:00
2006-04-28 21:04:59 +10:00
2006-03-26 08:56:55 -08:00
2006-04-11 06:18:40 -07:00
2005-04-16 15:20:36 -07:00
2006-03-20 14:08:53 -05:00