]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/nfs/dir.c
NFS: nfs_prime_dcache must validate the filename
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 20 Sep 2016 18:34:24 +0000 (14:34 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Sep 2016 21:02:03 +0000 (17:02 -0400)
commit78d04af4995a1358039f4406bd31c28faedfa030
treee46c10072ed05e4a24dc168bd95f8be5f60f3a3d
parenta1d617d8f134679741b0b35e8e1436b015ac5538
NFS: nfs_prime_dcache must validate the filename

Before we try to stash it in the dcache, we need to at least check
that the filename passed to us by the server is non-empty and doesn't
contain any illegal '\0' or '/' characters.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c