aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorGautham R Shenoy <[email protected]>2007-05-23 13:57:28 -0700
committerLinus Torvalds <[email protected]>2007-05-23 20:14:11 -0700
commit5fcc57f2d5d558056668159f9153bf21d2c53d16 (patch)
treeaa81c453b093f051bf775cd8fb557df9d2f79543 /include/linux/timerqueue.h
parenta076e4bca2fdabb9e45d86722cc72c0944da5f94 (diff)
freezer: fix PF_NOFREEZE vs freezeable race
This patch fixes the race pointed out by Oleg Nesterov. * Freezer marks a thread as freezeable. * The thread now marks itself PF_NOFREEZE, but it will be frozen on on calling try_to_freeze(). Thus the task is frozen, even though it doesn't want to. * Subsequent thaw_processes() will also fail to thaw the task since it is marked PF_NOFREEZE. Avoid this problem by checking the task's PF_NOFREEZE status in frozen_processes() before marking the task as frozen. Signed-off-by: Gautham R Shenoy <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Pavel Machek <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions