From fe3d5c8793fcaf33c5d3118a7f3ffc135eadaf4d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 18 Jun 2005 13:17:49 -0700 Subject: [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 --- fs/exec.c | 1 + 1 file changed, 1 insertion(+) 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); /* -- cgit v1.2.3