diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-06 21:54:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-06 21:54:21 -0700 |
commit | 829841146878e082613a49581ae252c071057c23 (patch) | |
tree | b38d26d6c99f043f14242351ac084f8b088a772b /net/ipv4/tcp_input.c | |
parent | edb4a3534adbaf90768d67da35f0bfeac4767db6 (diff) | |
download | blackbird-op-linux-829841146878e082613a49581ae252c071057c23.tar.gz blackbird-op-linux-829841146878e082613a49581ae252c071057c23.zip |
Avoid 'names_cache' memory leak with CONFIG_AUDITSYSCALL
The nameidata "last.name" is always allocated with "__getname()", and
should always be free'd with "__putname()".
Using "putname()" without the underscores will leak memory, because the
allocation will have been hidden from the AUDITSYSCALL code.
Arguably the real bug is that the AUDITSYSCALL code is really broken,
but in the meantime this fixes the problem people see.
Reported by Robert Derr, patch by Rick Lindsley.
Acked-by: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions