]> git.ipfire.org Git - thirdparty/valgrind.git/commit
sigprocmask should ignore HOW argument when SET is NULL.
authorNikola Milutinovic <nikola.milutinovic@rt-rk.com>
Sun, 22 Dec 2019 14:49:04 +0000 (15:49 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 22 Dec 2019 14:51:36 +0000 (15:51 +0100)
commitb70d208e97336fff617892f88d63afc97983d619
tree9cdc5b84b3a3434715f81dd7f11658dc4560dc26
parent2bddca658976a69e9e24438891295e2af1dd3c09
sigprocmask should ignore HOW argument when SET is NULL.

Specific use case bug found in SysRes VG_(do_sys_sigprocmask).

Fix for case when ,,set,, parameter is NULL.
In this case ,,how,, parameter should be ignored because we are
only requesting from kernel to put current signal mask into ,,oldset,,.
But instead we determine the action based on ,,how,, parameter and
therefore make the system call fail when it should pass.
Taken from linux man pages (sigprocmask).

The same is specified for POSIX.

https://bugs.kde.org/show_bug.cgi?id=414565
NEWS
coregrind/m_signals.c