summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-10-07 16:43:54 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-10 11:50:54 -0700
commit5be2ff20d0750801919c784e10427ee98d6c5639 (patch)
tree90aa2f8eb8a1af26787eb6fb24d736f1a78fa66b /scripts/patch-kernel
parentd7c6ec0fa0de0b99b3bb66cc0b63e1331ae76984 (diff)
[PATCH] Avoid 'names_cache' memory leak with CONFIG_AUDITSYSCALL
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> Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions