diff options
author | Pavel Emelyanov <[email protected]> | 2008-03-24 12:29:52 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-03-24 19:22:19 -0700 |
commit | a846a1954b6397e844fe1e258af7598897ec6159 (patch) | |
tree | a90b3a593d528c299fd90e9e84fe17a7cdb23733 /net/unix/sysctl_net_unix.c | |
parent | 4dd4b920218326231156c7991ce5b94afad841c3 (diff) |
bsd_acct: plain current->real_parent access is not always safe
This is minor, but dereferencing even current real_parent is not safe on debug
kernels, since the memory, this points to, can be unmapped - RCU protection is
required.
Besides, the tgid field is deprecated and is to be replaced with task_tgid_xxx
call (the 2nd patch), so RCU will be required anyway.
Signed-off-by: Pavel Emelyanov <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions