aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2007-08-22 14:01:42 -0700
committerLinus Torvalds <[email protected]>2007-08-22 19:52:46 -0700
commit834d216e1f804560bd1421c511ad168d7c24b01d (patch)
treec245ab7814bc54c6f3b8aa877d2dd77c92450a76 /scripts/patch-kernel
parentd02479bdeb1c9b037892061cdcf4e730183391fa (diff)
signalfd: fix interaction with posix-timers
dequeue_signal: if (__SI_TIMER) { spin_unlock(&tsk->sighand->siglock); do_schedule_next_timer(info); spin_lock(&tsk->sighand->siglock); } Unless tsk == curent, this is absolutely unsafe: nothing prevents tsk from exiting. If signalfd was passed to another process, do_schedule_next_timer() is just wrong. Add yet another "tsk == current" check into dequeue_signal(). This patch fixes an oopsable bug, but breaks the scheduling of posix timers if the shared __SI_TIMER signal was fetched via signalfd attached to another sub-thread. Mostly fixed by the next patch. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Davide Libenzi <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions