summaryrefslogtreecommitdiffstats
path: root/net/rose
diff options
context:
space:
mode:
authorTomáš Trnka <ttrnka@mail.muni.cz>2016-05-20 16:41:10 +0200
committerSasha Levin <sasha.levin@oracle.com>2016-06-06 19:11:11 -0400
commitb36205bd6c2cb9a742c187a8dde544d2141e0822 (patch)
tree9f84a807d58c9d54d472dca7641512c65f9dd7a2 /net/rose
parent4433e3758946d2e38933765f41716bfc6c1cc3ac (diff)
downloadlinux-stable-b36205bd6c2cb9a742c187a8dde544d2141e0822.tar.gz
linux-stable-b36205bd6c2cb9a742c187a8dde544d2141e0822.tar.bz2
linux-stable-b36205bd6c2cb9a742c187a8dde544d2141e0822.zip
sunrpc: fix stripping of padded MIC tokens
[ Upstream commit c0cb8bf3a8e4bd82e640862cdd8891400405cb89 ] The length of the GSS MIC token need not be a multiple of four bytes. It is then padded by XDR to a multiple of 4 B, but unwrap_integ_data() would previously only trim mic.len + 4 B. The remaining up to three bytes would then trigger a check in nfs4svc_decode_compoundargs(), leading to a "garbage args" error and mount failure: nfs4svc_decode_compoundargs: compound not properly padded! nfsd: failed to decode arguments! This would prevent older clients using the pre-RFC 4121 MIC format (37-byte MIC including a 9-byte OID) from mounting exports from v3.9+ servers using krb5i. The trimming was introduced by commit 4c190e2f913f ("sunrpc: trim off trailing checksum before returning decrypted or integrity authenticated buffer"). Fixes: 4c190e2f913f "unrpc: trim off trailing checksum..." Signed-off-by: Tomáš Trnka <ttrnka@mail.muni.cz> Cc: stable@vger.kernel.org Acked-by: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'net/rose')
0 files changed, 0 insertions, 0 deletions