]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] reset real_timer target on exec leader change
authorRoland McGrath <roland@redhat.com>
Tue, 12 Jul 2005 20:58:27 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 23:01:01 +0000 (16:01 -0700)
commitf5d41def0b379ff3c25af12335e9818d9bea8644
tree43281ea094cba176e88ba50561e2a04aa8beed8c
parent0da5e1724d2d85fe623e42d9e47dbc2d3cb6a418
[PATCH] reset real_timer target on exec leader change

When a noninitial thread does exec, it becomes the new group leader.  If
there is a ITIMER_REAL timer running, it points at the old group leader and
when it fires it can follow a stale pointer.  The timer data needs to be
reset to point at the exec'ing thread that is becoming the group leader.
This has to synchronize with any concurrent firing of the timer to make
sure that it_real_fn can never run when the data points to a thread that
might have been reaped already.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c