K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-12-27T01:07:39.157918Z K 7 svn:log V 551 nfsd: Limit parsing of layout errors to maxcnt bytes This patch decrements maxcnt by the appropriate number of bytes during parsing and checks to see if there is data remaining. If not, it just returns from nfsrv_flexlayouterr() without further processing. This prevents the tl pointer from running off the end of the error data pointed at by layp, if there are flaws in the data. PR: 260293 (cherry picked from commit c302f889e21f73746a3b0917df5246e639df1481) Git Hash: e4a65cff230dd1e055ad1651f285e5e11b160cb8 Git Author: rmacklem@FreeBSD.org END