diff options
author | 2024-02-28 23:43:57 +0100 | |
---|---|---|
committer | 2024-02-29 09:07:16 -0800 | |
commit | f7fa16d49837f947ee59492958f9e6f0e51d9a78 (patch) | |
tree | e9be1c89c1072abb42cdde7bc762ca3b265b5158 /Documentation/misc-devices | |
parent | gtp: fix use-after-free and null-ptr-deref in gtp_newlink() (diff) | |
download | linux-f7fa16d49837f947ee59492958f9e6f0e51d9a78.tar.gz linux-f7fa16d49837f947ee59492958f9e6f0e51d9a78.tar.bz2 linux-f7fa16d49837f947ee59492958f9e6f0e51d9a78.zip |
tls: decrement decrypt_pending if no async completion will be called
With mixed sync/async decryption, or failures of crypto_aead_decrypt,
we increment decrypt_pending but we never do the corresponding
decrement since tls_decrypt_done will not be called. In this case, we
should decrement decrypt_pending immediately to avoid getting stuck.
For example, the prequeue prequeue test gets stuck with mixed
modes (one async decrypt + one sync decrypt).
Fixes: 94524d8fc965 ("net/tls: Add support for async decryption of tls records")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/c56d5fc35543891d5319f834f25622360e1bfbec.1709132643.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/misc-devices')
0 files changed, 0 insertions, 0 deletions