summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-01-16 22:38:10 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 08:06:11 +0100
commitfc6014771bde8a215a9a4ea24b45f76afeb3c922 (patch)
tree60d34b3f1fa44c42a7fd18867531dc915007dfa0 /mm/oom_kill.c
parentnfs4: allow nfsv4 acls on non-regular-files (diff)
downloadlinux-fc6014771bde8a215a9a4ea24b45f76afeb3c922.tar.xz
linux-fc6014771bde8a215a9a4ea24b45f76afeb3c922.zip
NFS: Address memory leaks in the NFS client mount option parser
David Howells noticed that repeating the same mount option twice during an NFS mount request can result in orphaned memory in certain cases. Only the client_address and mount_server.hostname strings are initialized in the mount parsing loop, so those appear to be the only two pointers that might be written over by repeating a mount option. The strings in the nfs_server section of the nfs_parsed_mount_data structure are set only once after the options are parsed, thus these are not susceptible to being overwritten. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions