H. Peter Anvin
6e16d89bcd
Sanitize the type of struct user.u_ar0
...
struct user.u_ar0 is defined to contain a pointer offset on all
architectures in which it is defined (all architectures which define an
a.out format except SPARC.) However, it has a pointer type in the headers,
which is pointless -- <asm/user.h> is not exported to userspace, and it
just makes the code messy.
Redefine the field as "unsigned long" (which is the same size as a pointer
on all Linux architectures) and change the setting code to user offsetof()
instead of hand-coded arithmetic.
Cc: Linux Arch Mailing List <linux-arch@vger.kernel.org>
Cc: Bryan Wu <bryan.wu@analog.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Håvard Skinnemoen <hskinnemoen@atmel.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-07 08:42:30 -08:00
..
2007-07-19 10:04:45 -07:00
2005-04-16 15:20:36 -07:00
2006-01-12 09:09:00 -08:00
2006-06-25 10:00:57 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:00:57 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-09 12:19:47 +01:00
2005-04-16 15:20:36 -07:00
2007-05-11 19:09:46 +02:00
2007-05-11 19:09:46 +02:00
2007-05-04 17:59:05 -07:00
2007-05-08 11:15:20 -07:00
2005-09-07 16:57:21 -07:00
2008-01-28 23:58:27 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:00:58 -07:00
2005-04-16 15:20:36 -07:00
2006-01-08 20:13:39 -08:00
2005-04-16 15:20:36 -07:00
2006-12-13 09:27:08 -08:00
2006-12-02 21:23:07 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-01 14:52:01 -08:00
2007-04-25 22:23:33 -07:00
2007-03-14 15:27:51 -07:00
2006-04-26 12:56:16 +01:00
2006-01-12 09:09:04 -08:00
2006-04-26 12:56:16 +01:00
2008-02-07 08:42:30 -08:00
2005-07-26 14:35:41 -07:00
2006-04-26 12:56:16 +01:00
2005-04-16 15:20:36 -07:00
2007-07-17 10:23:11 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:38 -07:00
2007-10-17 08:42:55 -07:00
2006-04-26 12:56:16 +01:00
2006-01-08 20:13:39 -08:00
2006-04-26 12:56:16 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-20 00:32:32 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:42:57 -07:00
2006-01-10 08:01:34 -08:00
2007-08-22 19:52:45 -07:00
2005-04-16 15:20:36 -07:00
2006-10-08 12:32:35 -07:00
2007-07-22 11:44:00 -07:00
2007-10-13 09:41:03 -07:00
2007-05-08 11:15:04 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-07 10:51:14 -07:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:00:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-09 12:19:47 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-02-05 09:44:24 -08:00
2006-06-25 10:00:58 -07:00
2007-02-11 10:51:20 -08:00
2007-03-14 15:27:49 -07:00
2005-04-16 15:20:36 -07:00
2006-02-15 15:32:22 -08:00
2007-05-02 19:27:14 +02:00
2005-04-16 15:20:36 -07:00
2007-05-31 07:58:14 -07:00
2007-05-31 07:58:14 -07:00
2008-02-05 09:44:18 -08:00
2007-07-16 09:05:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-09 15:59:19 -08:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2006-07-21 14:17:55 -07:00
2006-04-26 12:56:16 +01:00
2008-02-07 08:42:30 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-11 16:02:07 -07:00
2005-04-16 15:20:36 -07:00
2007-05-31 07:58:14 -07:00
2008-02-06 10:41:01 -08:00
2007-05-11 08:29:34 -07:00
2005-04-16 15:20:36 -07:00
2007-08-22 19:52:45 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-26 11:11:57 -07:00
2005-04-16 15:20:36 -07:00
2006-10-03 23:01:26 +02:00
2005-04-16 15:20:36 -07:00
2007-10-22 21:20:03 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2007-10-17 08:42:47 -07:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2006-12-07 08:39:46 -08:00
2006-04-26 12:56:16 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-08 12:32:36 -07:00
2008-01-31 19:27:19 -08:00
2007-04-25 22:24:04 -07:00
2005-04-16 15:20:36 -07:00
2006-03-26 08:57:00 -08:00
2005-04-16 15:20:36 -07:00
2006-10-06 08:53:40 -07:00
2008-02-05 09:44:18 -08:00
2007-07-16 09:05:36 -07:00
2006-12-09 09:41:18 -08:00
2006-12-09 09:41:18 -08:00
2006-10-15 11:00:58 -07:00
2005-04-16 15:20:36 -07:00
2006-10-07 10:51:14 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-28 19:42:21 -07:00
2007-08-22 19:52:45 -07:00
2007-08-22 19:52:45 -07:00
2007-05-09 12:30:56 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-19 11:53:34 -07:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:00:57 -07:00
2007-10-17 08:42:53 -07:00
2007-05-15 08:54:00 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-13 09:41:03 -07:00
2008-02-07 08:42:30 -08:00
2007-05-31 07:58:14 -07:00
2005-04-16 15:20:36 -07:00
2006-01-12 09:09:02 -08:00