linux/net/sunrpc/auth_gss
Gaosheng Cui 477163b7f5 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:53:42 +02:00
..
auth_gss_internal.h SUNRPC/auth_gss: Convert GFP_NOFS to GFP_KERNEL 2022-02-25 18:50:12 -05:00
auth_gss.c SUNRPC: return proper error from gss_wrap_req_priv 2024-06-21 14:38:28 +02:00
gss_generic_token.c sunrpc: Remove unneeded null check 2022-01-06 14:00:20 -05:00
gss_krb5_crypto.c SUNRPC: Avoid relying on crypto API to derive CBC-CTS output IV 2023-05-02 11:35:04 -04:00
gss_krb5_internal.h SUNRPC: Remove net/sunrpc/auth_gss/gss_krb5_seqnum.c 2023-08-29 17:45:22 -04:00
gss_krb5_keys.c gss_krb5: Fix the error handling path for crypto_sync_skcipher_setkey 2024-08-03 08:53:42 +02:00
gss_krb5_mech.c SUNRPC: fix a memleak in gss_import_v2_context 2024-03-26 18:19:36 -04:00
gss_krb5_seal.c SUNRPC: Remove code behind CONFIG_RPCSEC_GSS_KRB5_SIMPLIFIED 2023-08-29 17:45:22 -04:00
gss_krb5_test.c SUNRPC: Remove Kunit tests for the DES3 encryption type 2023-08-29 17:45:22 -04:00
gss_krb5_unseal.c SUNRPC: Remove code behind CONFIG_RPCSEC_GSS_KRB5_SIMPLIFIED 2023-08-29 17:45:22 -04:00
gss_krb5_wrap.c SUNRPC: Remove code behind CONFIG_RPCSEC_GSS_KRB5_SIMPLIFIED 2023-08-29 17:45:22 -04:00
gss_mech_switch.c sunrpc: clean up properly in gss_mech_unregister() 2020-05-28 18:15:00 -04:00
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 SUNRPC: Add SPDX IDs to some net/sunrpc/auth_gss/ files 2019-02-14 09:54:37 -05:00
gss_rpc_xdr.c SUNRPC: fix some memleaks in gssx_dec_option_array 2024-03-26 18:19:36 -04:00
gss_rpc_xdr.h SUNRPC: Add SPDX IDs to some net/sunrpc/auth_gss/ files 2019-02-14 09:54:37 -05:00
Makefile SUNRPC: Remove net/sunrpc/auth_gss/gss_krb5_seqnum.c 2023-08-29 17:45:22 -04:00
svcauth_gss.c SUNRPC: Fix loop termination condition in gss_free_in_token_pages() 2024-06-12 11:13:03 +02:00
trace.c SUNRPC: remove duplicate include 2020-08-19 13:19:42 -04:00