diff options
| author | 2026-03-09 00:26:24 -0600 | |
|---|---|---|
| committer | 2026-04-27 07:30:16 -0600 | |
| commit | 61ead364677c28ef22b861975669a25a7b4a10f9 (patch) | |
| tree | 4bbd281f1a2ced6f228f29e0bdedca8426fe21e5 /include/net/ssh:/git@git.zx2c4.com | |
| parent | drm/amdgpu: replace PASID IDR with XArray (diff) | |
crypto: krb5enc - fix sleepable flag handling in encrypt dispatch
commit 2ef3bac16fb5e9eee4fb1d722578a79b751ea58a upstream.
krb5enc_encrypt_ahash_done() continues encryption from an ahash
completion callback by calling krb5enc_dispatch_encrypt().
That helper takes a flags argument for this continuation path, but it
ignored that argument and reused aead_request_flags(req) when setting
up the skcipher subrequest callback. This can incorrectly preserve
CRYPTO_TFM_REQ_MAY_SLEEP when the encrypt step is started from callback
context.
Preserve the original request flags but clear
CRYPTO_TFM_REQ_MAY_SLEEP for the callback continuation path, and use
the caller-supplied flags when setting up the skcipher subrequest.
Fixes: d1775a177f7f ("crypto: Add 'krb5enc' hash and cipher AEAD algorithm")
Assisted-by: Codex:GPT-5
Signed-off-by: Wesley Atwell <atwellwea@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
