cpuset: fix a race condition in __cpuset_node_allowed_softwall()
authorLi Zefan <lizefan@huawei.com>
Thu, 27 Feb 2014 10:19:36 +0000 (18:19 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 27 Feb 2014 14:39:54 +0000 (09:39 -0500)
commit99afb0fd5f05aac467ffa85c36778fec4396209b
tree0cac821aec4a1dd0a6a86473df5b03864b788a81
parent4729583006772b9530404bc1bb7c3aa4a10ffd4d
cpuset: fix a race condition in __cpuset_node_allowed_softwall()

It's not safe to access task's cpuset after releasing task_lock().
Holding callback_mutex won't help.

Cc: <stable@vger.kernel.org>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cpuset.c