]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix crash when old/new sigprocmask isn't safe to dereference. Bug #369360.
authorMark Wielaard <mark@klomp.org>
Sat, 1 Oct 2016 11:54:47 +0000 (11:54 +0000)
committerMark Wielaard <mark@klomp.org>
Sat, 1 Oct 2016 11:54:47 +0000 (11:54 +0000)
commit52b55f29f37accd5bc2ea33169fc296d1edfc5d6
tree92a3f7ec917da4ec350486e45bd15c43c15b7221
parent1e3852e27cf5d11cb7625cf1c191474ad30501e6
Fix crash when old/new sigprocmask isn't safe to dereference. Bug #369360.

Since we want to use the set and oldset for bookkeeping we also want
to make sure they are addressable otherwise, like the kernel, we EFAULT.
Also use EINVAL instead of EMFILE as failure when sigset size is wrong.

Found by LTP testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15992
NEWS
coregrind/m_syswrap/syswrap-linux.c