summaryrefslogtreecommitdiffstats
path: root/arch/tile/configs/tile_defconfig
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2011-04-26 22:37:11 +0200
committerChris Metcalf <cmetcalf@tilera.com>2011-05-04 14:41:53 -0400
commitceca3c193e73bb409d093515fae9e5ef02ffa2de (patch)
treeb29f24fb0c280dd04bc4cdd0d68ffdec06e48ad7 /arch/tile/configs/tile_defconfig
parentdc0b124d8edc6c2f95fc3a689cd40ec05ad85108 (diff)
tile: do_hardwall_trap: do not play with task->sighand
1. do_hardwall_trap() checks ->sighand != NULL and then takes ->siglock. This is unsafe even if the task can't run (I assume it is pinned to the same CPU), its parent can reap the task and set ->sighand = NULL right after this check. Even if the compiler dosn't read ->sighand twice and this memory can't to away __group_send_sig_info() is wrong after that. Use do_send_sig_info(). 2. Send SIGILL to the thread, not to the whole process. Unless it has the handler or blocked this kills the whole thread-group as before. IIUC, different threads can be bound to different rect's. 3. Check PF_EXITING instead of ->sighand. A zombie thread can go away but its ->sighand can be !NULL. Reported-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/configs/tile_defconfig')
0 files changed, 0 insertions, 0 deletions