]> git.karo-electronics.de Git - karo-tx-linux.git/commit
inotify: don't leak user struct on inotify release
authorPavel Emelyanov <xemul@openvz.org>
Wed, 12 May 2010 22:34:07 +0000 (15:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 May 2010 21:29:17 +0000 (14:29 -0700)
commitd8ca15afb835aff91c0a1dedb1b4e47171180312
tree08cbd405567fb2b9e22d8ea42258d86fd9981a40
parentc606e701ef469582a991aabd3a6f7816a9a9d351
inotify: don't leak user struct on inotify release

commit b3b38d842fa367d862b83e7670af4e0fd6a80fc0 upstream.

inotify_new_group() receives a get_uid-ed user_struct and saves the
reference on group->inotify_data.user.  The problem is that free_uid() is
never called on it.

Issue seem to be introduced by 63c882a0 (inotify: reimplement inotify
using fsnotify) after 2.6.30.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Eric Paris <eparis@parisplace.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/notify/inotify/inotify_fsnotify.c