linux/net/tls
Ira Weiny bc8ce7de36 net/tls: Fix kmap usage
[ Upstream commit b06c19d9f8 ]

When MSG_OOB is specified to tls_device_sendpage() the mapped page is
never unmapped.

Hold off mapping the page until after the flags are checked and the page
is actually needed.

Fixes: e8f6979981 ("net/tls: Add generic NIC offload infrastructure")
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-19 08:15:03 +02: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_fallback.c net/tls: fix socket wmem accounting on fallback with netem 2020-01-27 14:51:01 +01:00
tls_device.c net/tls: Fix kmap usage 2020-08-19 08:15:03 +02:00
tls_main.c net: tls, fix sk_write_space NULL write when tx disabled 2019-09-06 10:22:04 +02:00
tls_sw.c net/tls: Fixed return value when tls_complete_pending_work() fails 2019-09-06 10:22:03 +02:00