[MIPS] Fix sigset_t endianess swapping issues in 32-bit compat code.
access_ok in compat-signal.h is wrong (checking destination instead of source) and redundant (already checked before calling this function). Also sf_mask in struct sigframe32 should be compat_sigset_t type. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
8a03d9a498
commit
755f21bb89
@@ -33,9 +33,6 @@ static inline int __copy_conv_sigset_from_user(sigset_t *d,
|
||||
BUG_ON(sizeof(*d) != sizeof(*s));
|
||||
BUG_ON(_NSIG_WORDS != 2);
|
||||
|
||||
if (unlikely(!access_ok(VERIFY_READ, d, sizeof(*d))))
|
||||
return -EFAULT;
|
||||
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
err = __get_user(u->c.sig[1], &s->sig[0]);
|
||||
err |= __get_user(u->c.sig[0], &s->sig[1]);
|
||||
|
Reference in New Issue
Block a user