linux-stable/net/sunrpc/auth_gss
Gaosheng Cui 17f40e25f8 gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey
[ Upstream commit a3123341dc ]

If we fail to call crypto_sync_skcipher_setkey, we should free the
memory allocation for cipher, replace err_return with err_free_cipher
to free the memory of cipher.

Fixes: 4891f2d008 ("gss_krb5: import functionality to derive keys into the kernel")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:49:08 +02:00
..
auth_gss.c SUNRPC: return proper error from gss_wrap_req_priv 2024-06-21 14:35:47 +02:00
auth_gss_internal.h SUNRPC/auth_gss: Convert GFP_NOFS to GFP_KERNEL 2022-02-25 18:50:12 -05:00
gss_generic_token.c sunrpc: Remove unneeded null check 2022-01-06 14:00:20 -05:00
gss_krb5_crypto.c SUNRPC/auth_gss: Convert GFP_NOFS to GFP_KERNEL 2022-02-25 18:50:12 -05:00
gss_krb5_keys.c gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey 2024-08-03 08:49:08 +02:00
gss_krb5_mech.c
gss_krb5_seal.c
gss_krb5_seqnum.c SUNRPC/auth_gss: Convert GFP_NOFS to GFP_KERNEL 2022-02-25 18:50:12 -05:00
gss_krb5_unseal.c
gss_krb5_wrap.c treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
gss_mech_switch.c
gss_rpc_upcall.c SUNRPC: Ensure that the gssproxy client can start in a connected state 2022-05-07 14:31:15 -04:00
gss_rpc_upcall.h
gss_rpc_xdr.c SUNRPC: fix some memleaks in gssx_dec_option_array 2024-03-26 18:20:39 -04:00
gss_rpc_xdr.h
Makefile
svcauth_gss.c SUNRPC: Fix gss_free_in_token_pages() 2024-06-12 11:03:31 +02:00
trace.c