Al Viro 441a179daf [PARISC] fix user-triggerable panic on parisc
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-11-22 09:33:12 +00:00
..
2008-03-15 19:12:19 -07:00
2009-01-05 19:18:27 +00:00
2011-03-31 11:26:23 -03:00
2012-05-07 11:38:46 +02:00
2005-04-16 15:20:36 -07:00
2012-07-05 15:09:13 -06:00
2012-08-13 16:50:19 -07:00
2010-10-16 22:43:08 +02:00
2012-03-28 18:30:02 +01:00
2008-10-10 16:32:28 +00:00
2005-04-16 15:20:36 -07:00
2012-03-28 18:30:02 +01:00