From: J. Bruce Fields Date: Thu, 3 Jul 2008 19:26:35 +0000 (-0400) Subject: svcrpc: fix handling of garbage args X-Git-Tag: v2.6.26-rc9~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b620754bfeb8b0e0c6622b03d5ee2f1af1d3082f;p=pandora-kernel.git svcrpc: fix handling of garbage args To return garbage_args, the accept_stat must be 0, and we must have a verifier. So we shouldn't be resetting the write pointer as we reject the call. Also, we must add the two placeholder words here regardless of success of the unwrap, to ensure the output buffer is left in a consistent state for svcauth_gss_release(). This fixes a BUG() in svcauth_gss.c:svcauth_gss_release(). Thanks to Aime Le Rouzic for bug report, debugging help, and testing. Signed-off-by: J. Bruce Fields Tested-by: Aime Le Rouzic Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed