diff options
author | Oleg Nesterov <[email protected]> | 2009-04-02 16:58:36 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-04-02 19:05:02 -0700 |
commit | 2ae448efc87df6d328f5835969076c7f9fce59c3 (patch) | |
tree | f110b43fa7c6b3c80f9b18a8e4fef728ed57f448 /net/lapb/lapb_iface.c | |
parent | 6dda81f4384b94930826eded254d8c16f89a9248 (diff) |
pids: improve get_task_pid() to fix the unsafe sys_wait4()->task_pgrp()
sys_wait4() does get_pid(task_pgrp(current)), this is not safe. We can
add rcu lock/unlock around, but we already have get_task_pid() which can
be improved to handle the special pids in more reliable manner.
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 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions