android_kernel_xiaomi_sm7250/net/tls
Jakub Kicinski 85b9e8694f net/tls: fix the IV leaks
[ Upstream commit 5a03bc73abed6ae196c15e9950afde19d48be12c ]

Commit f66de3ee2c ("net/tls: Split conf to rx + tx") made
freeing of IV and record sequence number conditional to SW
path only, but commit e8f6979981 ("net/tls: Add generic NIC
offload infrastructure") also allocates that state for the
device offload configuration.  Remember to free it.

Fixes: e8f6979981 ("net/tls: Add generic NIC offload infrastructure")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
2019-05-16 19:41:27 +02:00
..
Kconfig
Makefile
tls_device_fallback.c net/tls: avoid NULL pointer deref on nskb->sk in fallback 2019-05-05 14:42:38 +02:00
tls_device.c net/tls: fix the IV leaks 2019-05-16 19:41:27 +02:00
tls_main.c net/tls: don't leak IV and record seq when offload fails 2019-05-02 09:59:01 +02:00
tls_sw.c net/tls: don't leak IV and record seq when offload fails 2019-05-02 09:59:01 +02:00