tls: fix some issues with async encryption
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: tls: handle -EBUSY on async encrypt/decrypt requestsnet/ | +15 | 9 replies | |
| 2/5 | tls: fix use-after-free with partial reads and async decryptnet/ | +7 | 2 replies | |
| 3/5 | tls: fix returned read length with async !zc decryptnet/ | +7 | 0 replies | |
| 4/5 | tls: fix race condition in async decryption of corrupted recordsnet/ | +3 | 0 replies | |
| 5/5 | tls: don't decrypt the next record if it's of a different typenet/ | +3 | 8 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Jakub Kicinski |
|---|---|
| 1/5 | R-b |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/5] tls: fix some issues with async encryption
I've been playing with a few hacks in the crypto code (forcing async crypto for every request, smaller cryptd queue), and that has revealed some bugs while running the selftests.
With this setup and those patches applied, the bad_in_large_read test case still fails. With all-async crypto, we don't know which record threw the EBADMSG, so we can't keep the first couple of records that were decrypted correctly. We have to throw away the whole batch.
Liu Jian has also found a bug with async crypto and wrapping record numbers:
https://lore.kernel.org/netdev/[email protected]/
It will get fixed separately and I'll submit a selftest for this case.
Sabrina Dubroca (5):
net: tls: handle -EBUSY on async encrypt/decrypt requests
tls: fix use-after-free with partial reads and async decrypt
tls: fix returned read length with async !zc decrypt
tls: fix race condition in async decryption of corrupted records
tls: don't decrypt the next record if it's of a different type
net/tls/tls_sw.c | 45 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-)
Signature · 1 line
2.40.1