aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2020-02-25 11:05:22 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-02-25 13:48:21 -0500
commit75a9b9176157f3095d3099adf512b5a233addbc7 (patch)
tree372274e4366b996d52edb557463375a51ab63864 /fs/nfs/nfs4client.c
parentNFS: Don't hard-code the fs_type when submounting (diff)
downloadlinux-dev-75a9b9176157f3095d3099adf512b5a233addbc7.tar.xz
linux-dev-75a9b9176157f3095d3099adf512b5a233addbc7.zip
NFS: Fix leak of ctx->nfs_server.hostname
If userspace passes an nfs_mount_data struct in the data argument of mount(2), then nfs23_parse_monolithic() or nfs4_parse_monolithic() will allocate memory for ctx->nfs_server.hostname. This needs to be freed in nfs_parse_source(), which also allocates memory for ctx->nfs_server.hostname, otherwise a leak will occur. Reported-by: syzbot+193c375dcddb4f345091@syzkaller.appspotmail.com Fixes: f2aedb713c28 ("NFS: Add fs_context support.") Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions