Return EINVAL in case when an invalid size of signal mask specified.

MFC after:	1 month
This commit is contained in:
Dmitry Chagin 2017-02-26 20:01:58 +00:00
parent af68739567
commit 2fa6d2fe84

View file

@ -622,6 +622,8 @@ linux_epoll_pwait(struct thread *td, struct linux_epoll_pwait_args *args)
int error;
if (args->mask != NULL) {
if (args->sigsetsize != sizeof(l_sigset_t))
return (EINVAL);
error = copyin(args->mask, &lmask, sizeof(l_sigset_t));
if (error != 0)
return (error);