Please sign in to comment.
sh: use set_current_blocked() and block_sigmask()
As described in e6fa16a ("signal: sigprocmask() should do retarget_shared_pending()") the modification of current->blocked is incorrect as we need to check whether the signal we're about to block is pending in the shared queue. Also, use the new helper function introduced in commit 5e6292c ("signal: add block_sigmask() for adding sigmask to current->blocked") which centralises the code for updating current->blocked after successfully delivering a signal and reduces the amount of duplicate code across architectures. In the past some architectures got this code wrong, so using this helper function should stop that from happening again. Acked-by: Oleg Nesterov <firstname.lastname@example.org> Cc: Paul Mundt <email@example.com> Signed-off-by: Matt Fleming <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Paul Mundt <firstname.lastname@example.org>
- Loading branch information...
Showing with 20 additions and 49 deletions.