1
linux/arch
Matt Fleming 97c47bb707 h8300: use set_current_blocked() and block_sigmask()
As described in e6fa16ab ("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 5e6292c0f2
("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 <oleg@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2012-05-21 23:52:32 -04:00
..
alpha new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
arm new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
avr32 init_task: Replace CONFIG_HAVE_GENERIC_INIT_TASK 2012-05-05 13:00:46 +02:00
blackfin blackfin: use set_current_blocked() and block_sigmask() 2012-05-21 23:52:31 -04:00
c6x Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-21 19:43:57 -07:00
cris new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
frv frv: use set_current_blocked() and block_sigmask() 2012-05-21 23:52:31 -04:00
h8300 h8300: use set_current_blocked() and block_sigmask() 2012-05-21 23:52:32 -04:00
hexagon hexagon: Use common threadinfo allocator 2012-05-08 14:08:45 +02:00
ia64 Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-21 19:43:57 -07:00
m32r m32r: Use common threadinfo allocator 2012-05-08 14:08:45 +02:00
m68k new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
microblaze Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-21 19:43:57 -07:00
mips new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
mn10300 new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
openrisc Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-21 19:43:57 -07:00
parisc parisc: use set_current_blocked() and block_sigmask() 2012-05-21 23:52:31 -04:00
powerpc new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
s390 new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
score score: Use common threadinfo allocator 2012-05-08 14:08:46 +02:00
sh new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
sparc new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
tile Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-21 19:43:57 -07:00
um new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
unicore32 unicore32: use block_sigmask() 2012-05-21 23:52:32 -04:00
x86 new helper: sigsuspend() 2012-05-21 23:52:30 -04:00
xtensa Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-21 19:43:57 -07:00
.gitignore
Kconfig task_allocator: Use config switches instead of magic defines 2012-05-08 14:08:46 +02:00