Staging
v0.5.1
https://github.com/torvalds/linux
Revision 829841146878e082613a49581ae252c071057c23 authored by Linus Torvalds on 07 October 2005, 04:54:21 UTC, committed by Linus Torvalds on 07 October 2005, 04:54:21 UTC
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>
1 parent edb4a35
History
Tip revision: 829841146878e082613a49581ae252c071057c23 authored by Linus Torvalds on 07 October 2005, 04:54:21 UTC
Avoid 'names_cache' memory leak with CONFIG_AUDITSYSCALL
Tip revision: 8298411
File Mode Size
Documentation
arch
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.1 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 59.4 KB
Makefile -rw-r--r-- 42.4 KB
README -rw-r--r-- 14.4 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top