summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorOleg Nesterov2011-08-04 01:21:05 +0200
committerLinus Torvalds2011-08-04 02:25:20 +0200
commita7295898a1d2e501427f557111c2b4bdfc90b1ed (patch)
tree143ce6e69d8aa795494120a00c62ca0ade8bac40 /drivers/cpuidle
parenttaskstats: add_del_listener() shouldn't use the wrong node (diff)
downloadkernel-qcow2-linux-a7295898a1d2e501427f557111c2b4bdfc90b1ed.tar.gz
kernel-qcow2-linux-a7295898a1d2e501427f557111c2b4bdfc90b1ed.tar.xz
kernel-qcow2-linux-a7295898a1d2e501427f557111c2b4bdfc90b1ed.zip
taskstats: add_del_listener() should ignore !valid listeners
When send_cpu_listeners() finds the orphaned listener it marks it as !valid and drops listeners->sem. Before it takes this sem for writing, s->pid can be reused and add_del_listener() can wrongly try to re-use this entry. Change add_del_listener() to check ->valid = T. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Vasiliy Kulikov <segoon@openwall.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Cc: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions