From: Linus Torvalds Date: Sat, 18 Jun 2005 20:17:49 +0000 (-0700) Subject: [PATCH] Clean up subthread exec (CAN-2005-1913) X-Git-Tag: v2.6.12.1~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fe3d5c8793fcaf33c5d3118a7f3ffc135eadaf4d;p=karo-tx-linux.git [PATCH] Clean up subthread exec (CAN-2005-1913) Make sure we re-parent itimers. If subthread exec's with timer pending, signal is delivered to old group-leader and can panic kernel. Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright --- diff --git a/fs/exec.c b/fs/exec.c index e56ee2437025..422cc0ec5e36 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -649,6 +649,7 @@ static inline int de_thread(struct task_struct *tsk) } sig->group_exit_task = NULL; sig->notify_count = 0; + sig->real_timer.data = (unsigned long)current; spin_unlock_irq(lock); /*