From: Jeff Layton Date: Mon, 10 Mar 2014 15:34:55 +0000 (-0400) Subject: svcrpc: explicitly reject compounds that are not padded out to 4-byte multiple X-Git-Tag: v3.15-rc1~45^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e874f9f8e04cb67351893894dfb9fbcd25e62fa2;p=pandora-kernel.git svcrpc: explicitly reject compounds that are not padded out to 4-byte multiple We have a WARN_ON in the nfsd4_decode_write() that tells us when the client has sent a request that is not padded out properly according to RFC4506. A WARN_ON really isn't appropriate in this case though since this indicates a client bug, not a server one. Move this check out to the top-level compound decoder and have it just explicitly return an error. Also add a dprintk() that shows the client address and xid to help track down clients and frames that trigger it. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed