• J. Bruce Fields's avatar
    nfsd4: fix acl buffer overrun · 09bdc2d7
    J. Bruce Fields authored
    4ac7249e "nfsd: use get_acl and
    ->set_acl" forgets to set the size in the case get_acl() succeeds, so
    _posix_to_nfsv4_one() can then write past the end of its allocation.
    Symptoms were slab corruption warnings.
    
    Also, some minor cleanup while we're here.  (Among other things, note
    that the first few lines guarantee that pacl is non-NULL.)
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    09bdc2d7
nfs4acl.c 23.6 KB