Merge branch 'net-tls-fix-encryption-error-path'
authorDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 00:20:06 +0000 (17:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 00:20:25 +0000 (17:20 -0700)
commita5534617007a1c33095db35c36b6455ee7add00b
tree57d5ed24720738b99f0af664b99cb6648bbc2aa9
parent04ba6b7dd8cadeb8ffdc4cba144024c3dad6a6ac
parent635d9398178659d8ddba79dd061f9451cec0b4d1
Merge branch 'net-tls-fix-encryption-error-path'

Vadim Fedorenko says:

====================
net/tls: fix encryption error path

The problem with data stream corruption was found in KTLS
transmit path with small socket send buffers and large
amount of data. bpf_exec_tx_verdict() frees open record
on any type of error including EAGAIN, ENOMEM and ENOSPC
while callers are able to recover this transient errors.
Also wrong error code was returned to user space in that
case. This patchset fixes the problems.
====================

Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>