diff options
| author | Oleg Nesterov <[email protected]> | 2009-04-02 16:58:35 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-04-02 19:05:02 -0700 |
| commit | 6dda81f4384b94930826eded254d8c16f89a9248 (patch) | |
| tree | a7b27ca16a6feba637cb01e68b54c58b6ca07bc2 /tools/perf/scripts/python | |
| parent | 8e654fba4a376f436bdfe361fc5cdbc87ac09b35 (diff) | |
pids: document task_pgrp/task_session is not safe without tasklist/rcu
Even if task == current, it is not safe to dereference the result of
task_pgrp/task_session. We can race with another thread which changes the
special pid via setpgid/setsid.
Document this. The next 2 patches give an example of the unsafe usage, we
have more bad users.
[[email protected]: coding-style fixes]
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Louis Rilling <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Sukadev Bhattiprolu <[email protected]>
Cc: Roland McGrath <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions