• Trond Myklebust's avatar
    NFSv4: Fix Oopses in the fs_locations code · 809b426c
    Trond Myklebust authored
    If the server sends us a pathname with more components than the client
    limit of NFS4_PATHNAME_MAXCOMPONENTS, more server entries than the client
    limit of NFS4_FS_LOCATION_MAXSERVERS, or sends a total number of
    fs_locations entries than the client limit of NFS4_FS_LOCATIONS_MAXENTRIES
    then we will currently Oops because the limit checks are done _after_ we've
    decoded the data into the arrays.
    
    Reported-by: fanchaoting<fanchaoting@cn.fujitsu.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    809b426c
nfs4xdr.c 189 KB