android_kernel_xiaomi_sm8350/net/sunrpc/auth_gss
J. Bruce Fields b620754bfe 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 <bfields@citi.umich.edu>
Tested-by: Aime Le Rouzic <aime.le-rouzic@bull.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-03 12:46:56 -07:00
..
auth_gss.c Merge branch 'devel' 2008-04-24 14:01:02 -04:00
gss_generic_token.c sunrpc: make token header values less confusing 2008-04-23 16:13:41 -04:00
gss_krb5_crypto.c Correct grammer/typos in dprintks 2008-04-23 16:13:40 -04:00
gss_krb5_mech.c
gss_krb5_seal.c sunrpc: make token header values less confusing 2008-04-23 16:13:41 -04:00
gss_krb5_seqnum.c gss_krb5: consistently use unsigned for seqnum 2008-04-23 16:13:41 -04:00
gss_krb5_unseal.c gss_krb5: consistently use unsigned for seqnum 2008-04-23 16:13:41 -04:00
gss_krb5_wrap.c sunrpc: make token header values less confusing 2008-04-23 16:13:41 -04:00
gss_mech_switch.c [SUNRPC]: net/* NULL noise 2008-03-17 22:48:03 -07:00
gss_spkm3_mech.c
gss_spkm3_seal.c sunrpc: make token header values less confusing 2008-04-23 16:13:41 -04:00
gss_spkm3_token.c
gss_spkm3_unseal.c
Makefile
svcauth_gss.c svcrpc: fix handling of garbage args 2008-07-03 12:46:56 -07:00