mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
Fix user namespace leak
Fixes: 61ca2c4afd ("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>
This commit is contained in:
committed by
Trond Myklebust
parent
e591b298d7
commit
d5f458a979
@@ -487,7 +487,7 @@ nfs_idmap_new(struct nfs_client *clp)
|
||||
err_destroy_pipe:
|
||||
rpc_destroy_pipe_data(idmap->idmap_pipe);
|
||||
err:
|
||||
get_user_ns(idmap->user_ns);
|
||||
put_user_ns(idmap->user_ns);
|
||||
kfree(idmap);
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user