1
0
Fork 0
alistair23-linux/drivers/crypto/chelsio/chtls
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
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
chtls.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
chtls_cm.c chelsio/chtls: fix memory leaks in CPL handlers 2020-11-01 12:01:02 +01:00
chtls_cm.h crypto: chtls - Fixed memory leak 2020-02-24 08:36:40 +01:00
chtls_hw.c crypto: chtls - Fixed memory leak 2020-02-24 08:36:40 +01:00
chtls_io.c chelsio/chtls: fix tls record info to user 2020-11-01 12:01:03 +01:00
chtls_main.c net/tls: use the full sk_proto pointer 2019-09-05 09:49:49 +02:00