From: Trond Myklebust Date: Wed, 27 Mar 2013 15:54:45 +0000 (-0400) Subject: NFSv4: Fix Oopses in the fs_locations code X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~98^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=809b426c7fc46b07065eb382c0289710c34b37e4;p=pandora-kernel.git NFSv4: Fix Oopses in the fs_locations code 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed