diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-12-08 20:24:16 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-20 13:17:57 -0700 |
commit | 7272e504cb1f35861e59fade3628f047f897afff (patch) | |
tree | 7664e90d0af93ffbbbb2b6553959a0d4018dc0b5 /scripts | |
parent | 6bd6aa7dda2b1a347de213fdce3bf7ab778988c8 (diff) |
sched: Protect task->cpus_allowed access in sched_getaffinity()
commit 3160568371da441b7f2fb57f2f1225404207e8f2 upstream
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 <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20091208202026.769251187@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions