Al Viro
f561b30f4f
PARISC: fix user-triggerable panic on parisc
commit 441a179daf upstream.
int sys32_rt_sigprocmask(int how, compat_sigset_t __user *set, compat_sigset_t __user *oset,
unsigned int sigsetsize)
{
sigset_t old_set, new_set;
int ret;
if (set && get_sigset32(set, &new_set, sigsetsize))
...
static int
get_sigset32(compat_sigset_t __user *up, sigset_t *set, size_t sz)
{
compat_sigset_t s;
int r;
if (sz != sizeof *set) panic("put_sigset32()");
In other words, rt_sigprocmask(69, (void *)69, 69) done by 32bit process
will promptly panic the box.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-12-03 12:59:13 -08:00
..
2008-10-10 16:32:28 +00:00
2010-05-30 05:38:27 -04:00
2008-10-16 15:40:05 +02:00
2011-04-15 12:55:56 -05:00
2009-01-05 19:11:59 +00:00
2012-06-10 00:32:58 +09:00
2011-01-15 08:39:08 -06:00
2010-06-09 10:34:49 +02:00
2008-03-15 19:12:19 -07:00
2011-04-15 12:55:18 -05:00
2009-01-05 19:18:27 +00:00
2010-03-03 11:26:00 +01:00
2011-03-31 11:26:23 -03:00
2011-03-29 14:48:08 +02:00
2009-03-31 02:51:34 +00:00
2011-04-15 12:55:18 -05:00
2012-06-01 15:12:52 +08:00
2009-03-31 02:51:34 +00:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2011-01-26 10:50:06 +10:00
2008-06-13 10:49:45 -04:00
2010-10-16 22:43:08 +02:00
2010-08-17 18:07:43 -07:00
2009-07-03 03:34:11 +00:00
2010-10-27 18:03:11 -07:00
2008-10-10 16:32:28 +00:00
2009-07-03 03:34:06 +00:00
2012-12-03 12:59:13 -08:00
2007-05-22 22:52:16 -04:00
2011-03-31 11:26:23 -03:00
2011-04-14 08:52:32 +02:00
2009-03-31 02:51:34 +00:00
2011-04-15 13:54:39 -05:00
2012-12-03 12:59:13 -08:00
2011-08-15 18:31:32 -07:00
2011-03-31 11:26:23 -03:00
2011-01-31 14:55:46 +01:00
2009-01-05 19:09:02 +00:00
2009-08-28 19:37:20 -10:00
2010-10-21 21:13:29 -04:00
2010-10-21 21:12:19 -04:00
2012-06-10 00:32:58 +09:00