projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e591b29
)
Fix user namespace leak
author
Alexey Gladkov
<legion@kernel.org>
Thu, 14 Oct 2021 16:02:30 +0000
(18:02 +0200)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Wed, 20 Oct 2021 22:09:54 +0000
(18:09 -0400)
Fixes: 61ca2c4afd9d ("NFS: Only reference user namespace from nfs4idmap struct instead of cred")
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4idmap.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4idmap.c
b/fs/nfs/nfs4idmap.c
index 8d8aba305ecca02d8776c3439de736c951edee05..f331866dd418247c970b14c7c3054ecde8674045 100644
(file)
--- a/
fs/nfs/nfs4idmap.c
+++ b/
fs/nfs/nfs4idmap.c
@@
-487,7
+487,7
@@
nfs_idmap_new(struct nfs_client *clp)
err_destroy_pipe:
rpc_destroy_pipe_data(idmap->idmap_pipe);
err:
-
ge
t_user_ns(idmap->user_ns);
+
pu
t_user_ns(idmap->user_ns);
kfree(idmap);
return error;
}