1
0
Fork 0
alistair23-linux/drivers/crypto/chelsio
Vinay Kumar Yadav 3a0d5b5358 chelsio/chtls: fix tls record info to user
[ Upstream commit 4f3391ce8f ]

chtls_pt_recvmsg() receives a skb with tls header and subsequent
skb with data, need to finalize the data copy whenever next skb
with tls header is available. but here current tls header is
overwritten by next available tls header, ends up corrupting
user buffer data. fixing it by finalizing current record whenever
next skb contains tls header.

v1->v2:
- Improved commit message.

Fixes: 17a7d24aa8 ("crypto: chtls - generic handling of data and hdr")
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Link: https://lore.kernel.org/r/20201022190556.21308-1-vinay.yadav@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-01 12:01:03 +01:00
..
chtls chelsio/chtls: fix tls record info to user 2020-11-01 12:01:03 +01:00
Kconfig crypto: chelsio - replace AES cipher calls with library calls 2019-07-26 14:58:35 +10:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
chcr_algo.c crypto: chelsio - This fixes the kernel panic which occurs during a libkcapi test 2020-10-01 13:17:33 +02:00
chcr_algo.h crypto: chelsio - Rename arrays to avoid conflict with crypto/sha256.h 2019-09-05 14:54:54 +10:00
chcr_core.c Crypto: chelsio - Fixes a hang issue during driver registration 2020-05-02 08:49:00 +02:00
chcr_core.h crypto: chelsio - avoid using sa_entry imm 2019-01-25 18:41:51 +08:00
chcr_crypto.h crypto: chelsio - replace AES cipher calls with library calls 2019-07-26 14:58:35 +10:00
chcr_ipsec.c crypto: chelsio - replace AES cipher calls with library calls 2019-07-26 14:58:35 +10:00