mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
Fix user namespace leak
[ Upstream commitd5f458a979] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
90e7415221
commit
0e1709b2a0
|
|
@ -487,7 +487,7 @@ nfs_idmap_new(struct nfs_client *clp)
|
||||||
err_destroy_pipe:
|
err_destroy_pipe:
|
||||||
rpc_destroy_pipe_data(idmap->idmap_pipe);
|
rpc_destroy_pipe_data(idmap->idmap_pipe);
|
||||||
err:
|
err:
|
||||||
get_user_ns(idmap->user_ns);
|
put_user_ns(idmap->user_ns);
|
||||||
kfree(idmap);
|
kfree(idmap);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user