diff options
| author | Oleg Nesterov <[email protected]> | 2011-08-03 16:21:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-08-03 14:25:20 -1000 |
| commit | a7295898a1d2e501427f557111c2b4bdfc90b1ed (patch) | |
| tree | 143ce6e69d8aa795494120a00c62ca0ade8bac40 /include/linux/debugobjects.h | |
| parent | dfc428b656c4693a2334a8d9865b430beddb562a (diff) | |
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 <[email protected]>
Reviewed-by: Vasiliy Kulikov <[email protected]>
Acked-by: Balbir Singh <[email protected]>
Cc: Jerome Marchand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions