Merge tag 'nfsd-6.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever: - Fix an export leak - Fix a potential tracepoint crash * tag 'nfsd-6.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: nfsd: put the export reference in nfsd4_verify_deleg_dentry nfsd: fix use-after-free in nfsd_file_do_acquire tracepoint
This commit is contained in:
@@ -1076,6 +1076,7 @@ retry:
|
||||
goto open_file;
|
||||
|
||||
nfsd_file_slab_free(&nf->nf_rcu);
|
||||
nf = NULL;
|
||||
if (ret == -EEXIST)
|
||||
goto retry;
|
||||
trace_nfsd_file_insert_err(rqstp, key.inode, may_flags, ret);
|
||||
|
||||
@@ -5382,6 +5382,7 @@ nfsd4_verify_deleg_dentry(struct nfsd4_open *open, struct nfs4_file *fp,
|
||||
if (err)
|
||||
return -EAGAIN;
|
||||
|
||||
exp_put(exp);
|
||||
dput(child);
|
||||
if (child != file_dentry(fp->fi_deleg_file->nf_file))
|
||||
return -EAGAIN;
|
||||
|
||||
Reference in New Issue
Block a user