From: Thomas Gleixner Date: Tue, 8 Dec 2009 20:24:16 +0000 (+0000) Subject: sched: Protect task->cpus_allowed access in sched_getaffinity() X-Git-Tag: v2.6.33-rc1~298^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3160568371da441b7f2fb57f2f1225404207e8f2;p=pandora-kernel.git sched: Protect task->cpus_allowed access in sched_getaffinity() sched_getaffinity() is not protected against a concurrent modification of the tasks affinity. Serialize the access with task_rq_lock(task). Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra LKML-Reference: <20091208202026.769251187@linutronix.de> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed