From: Rafael J. Wysocki Date: Mon, 29 Oct 2007 21:37:12 +0000 (-0700) Subject: Freezer: do not allow freezing processes to clear TIF_SIGPENDING X-Git-Tag: v2.6.24-rc2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc5f916e90a811dd8f809b4d17409f98e74b237c;p=platform%2Fkernel%2Flinux-3.10.git Freezer: do not allow freezing processes to clear TIF_SIGPENDING Do not allow processes to clear their TIF_SIGPENDING if TIF_FREEZE is set, so that they will not race with the freezer (like mysqld does, for example). Signed-off-by: Rafael J. Wysocki Acked-by: Nigel Cunningham Acked-by: Pavel Machek Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index 4537bdd..909a0cc 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -124,7 +124,7 @@ void recalc_sigpending_and_wake(struct task_struct *t) void recalc_sigpending(void) { - if (!recalc_sigpending_tsk(current)) + if (!recalc_sigpending_tsk(current) && !freezing(current)) clear_thread_flag(TIF_SIGPENDING); }