Skip to content

Commit

Permalink
Fix user namespace leak
Browse files Browse the repository at this point in the history
Fixes: 61ca2c4 ("NFS: Only reference user namespace from nfs4idmap struct instead of cred")
Signed-off-by: Alexey Gladkov <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
legionus authored and Trond Myklebust committed Oct 20, 2021
1 parent e591b29 commit d5f458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d5f458a

Please sign in to comment.