linux/net/tls
Doron Roberts-Kedes 2da19ed3e4 tls: Fix improper revert in zerocopy_from_iter
The current code is problematic because the iov_iter is reverted and
never advanced in the non-error case. This patch skips the revert in the
non-error case. This patch also fixes the amount by which the iov_iter
is reverted. Currently, iov_iter is reverted by size, which can be
greater than the amount by which the iter was actually advanced.
Instead, only revert by the amount that the iter was advanced.

Fixes: 4718799817 ("tls: Fix zerocopy_from_iter iov handling")
Signed-off-by: Doron Roberts-Kedes <doronrk@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-07-28 22:53:31 -07:00
..
Kconfig net/tls: Add generic NIC offload infrastructure 2018-05-01 09:42:47 -04:00
Makefile net/tls: Add generic NIC offload infrastructure 2018-05-01 09:42:47 -04:00
tls_device.c tls: Fix copy-paste error in tls_device_reencrypt 2018-07-20 12:12:45 -07:00
tls_device_fallback.c tls: Add rx inline crypto offload 2018-07-16 00:13:11 -07:00
tls_main.c tls: Add rx inline crypto offload 2018-07-16 00:13:11 -07:00
tls_sw.c tls: Fix improper revert in zerocopy_from_iter 2018-07-28 22:53:31 -07:00