kernel-fxtec-pro1x/net/sunrpc/auth_gss
NeilBrown 8f2c1ab11e sunrpc: clean up properly in gss_mech_unregister()
commit 24c5efe41c29ee3e55bcf5a1c9f61ca8709622e8 upstream.

gss_mech_register() calls svcauth_gss_register_pseudoflavor() for each
flavour, but gss_mech_unregister() does not call auth_domain_put().
This is unbalanced and makes it impossible to reload the module.

Change svcauth_gss_register_pseudoflavor() to return the registered
auth_domain, and save it for later release.

Cc: stable@vger.kernel.org (v2.6.12+)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206651
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-22 09:05:29 +02:00
..
auth_gss.c SUNRPC: Fix leak of krb5p encode pages 2018-12-13 09:16:19 +01:00
gss_generic_token.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00
gss_krb5_crypto.c NFS client updates for Linux 4.19 2018-08-23 16:03:58 -07:00
gss_krb5_keys.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00
gss_krb5_mech.c
gss_krb5_seal.c SUNRPC: Fix a compile warning for cmpxchg64() 2019-12-01 09:16:40 +01:00
gss_krb5_seqnum.c sunrpc: fix 4 more call sites that were using stack memory with a scatterlist 2019-02-23 09:07:27 +01:00
gss_krb5_unseal.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00
gss_krb5_wrap.c NFS client updates for Linux 4.19 2018-08-23 16:03:58 -07:00
gss_mech_switch.c sunrpc: clean up properly in gss_mech_unregister() 2020-06-22 09:05:29 +02:00
gss_rpc_upcall.c sunrpc: Extract target name into svc_cred 2018-08-22 18:32:07 -04:00
gss_rpc_upcall.h
gss_rpc_xdr.c kernel: make groups_sort calling a responsibility group_info allocators 2017-12-14 16:00:49 -08:00
gss_rpc_xdr.h
Makefile
svcauth_gss.c sunrpc: clean up properly in gss_mech_unregister() 2020-06-22 09:05:29 +02:00