]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a906118890e6d58a97959f66f1639f2f09d2abe
tree57d5ed24720738b99f0af664b99cb6648bbc2aa9
parent231fd614e490d6812224498e4fdd5e5c6c864d85
parent7a3af3f11fa902fdf7e1db7b017f8fd96ddcb1c0
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>