svcrpc: fix potential GSSX_ACCEPT_SEC_CONTEXT decoding failures
authorScott Mayhew <smayhew@redhat.com>
Tue, 28 Apr 2015 20:29:53 +0000 (16:29 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 May 2015 16:02:40 +0000 (12:02 -0400)
commit9507271d960a1911a51683888837d75c171cd91f
tree51ae70d0b2257ec9e32c78ade5e953dca00acdc2
parent8287f009bd95a5e548059dba62a67727bb9549cd
svcrpc: fix potential GSSX_ACCEPT_SEC_CONTEXT decoding failures

In an environment where the KDC is running Active Directory, the
exported composite name field returned in the context could be large
enough to span a page boundary.  Attaching a scratch buffer to the
decoding xdr_stream helps deal with those cases.

The case where we saw this was actually due to behavior that's been
fixed in newer gss-proxy versions, but we're fixing it here too.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_xdr.c
This page took 0.025807 seconds and 5 git commands to generate.