lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 487/575] Fix user namespace leak
    Date
    From: Alexey Gladkov <legion@kernel.org>

    [ Upstream commit d5f458a979650e5ed37212f6134e4ee2b28cb6ed ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    fs/nfs/nfs4idmap.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/fs/nfs/nfs4idmap.c b/fs/nfs/nfs4idmap.c
    index 8d8aba305ecca..f331866dd4182 100644
    --- 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:
    - get_user_ns(idmap->user_ns);
    + put_user_ns(idmap->user_ns);
    kfree(idmap);
    return error;
    }
    --
    2.33.0


    \
     
     \ /
      Last update: 2022-09-17 16:12    [W:2.152 / U:0.536 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site