mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
Only decrypt_internal() performs zero copy on rx, all paths
which don't hit decrypt_internal() must set zc to false,
otherwise tls_sw_recvmsg() may return 0 causing the application
to believe that that connection got closed.
Currently this happens with device offload when new record
is first read from.
Fixes: d069b780e3 ("tls: Fix tls_device receive")
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reported-by: David Beckett <[email protected]>
Signed-off-by: David S. Miller <[email protected]>