]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.fixes/nfsd-08-sunrpc-fix-memory-leak-in-unix_gid-cache.patch
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / nfsd-08-sunrpc-fix-memory-leak-in-unix_gid-cache.patch
1 Patch-mainline: submitted 04aug2009
2 References: bnc#498708
3 From: NeilBrown <neilb@suse.de>
4 Date: Tue, 4 Aug 2009 15:06:39 +1000
5 Subject: [PATCH 10/12] sunrpc: fix memory leak in unix_gid cache.
6
7 When we look up an entry in the uid->gidlist cache, we take
8 a reference to the content but don't drop the reference to the
9 cache entry. So it never gets freed.
10
11 Signed-off-by: NeilBrown <neilb@suse.de>
12
13 ---
14 net/sunrpc/svcauth_unix.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- linux-2.6.27-SLE11_BRANCH.orig/net/sunrpc/svcauth_unix.c
18 +++ linux-2.6.27-SLE11_BRANCH/net/sunrpc/svcauth_unix.c
19 @@ -670,6 +670,7 @@ static int unix_gid_find(uid_t uid, stru
20 case 0:
21 *gip = ug->gi;
22 get_group_info(*gip);
23 + cache_put(&ug->h, &unix_gid_cache);
24 return 0;
25 case -ETIMEDOUT:
26 prevug = ug;