diff options
author | Vadim Fedorenko <vfedorenko@novek.ru> | 2020-05-20 10:41:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-22 02:20:06 +0200 |
commit | a7bff11f6f9afa87c25711db8050c9b5324db0e2 (patch) | |
tree | bb6a3e2bd6a20d7a822094a4998e9c34c897f206 /lib/Kconfig.kgdb | |
parent | Merge branch 'net-ethernet-ti-fix-some-return-value-check' (diff) | |
download | linux-a7bff11f6f9afa87c25711db8050c9b5324db0e2.tar.xz linux-a7bff11f6f9afa87c25711db8050c9b5324db0e2.zip |
net/tls: fix encryption error checking
bpf_exec_tx_verdict() can return negative value for copied
variable. In that case this value will be pushed back to caller
and the real error code will be lost. Fix it using signed type and
checking for positive value.
Fixes: d10523d0b3d7 ("net/tls: free the record on encryption error")
Fixes: d3b18ad31f93 ("tls: add bpf support to sk_msg handling")
Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/Kconfig.kgdb')
0 files changed, 0 insertions, 0 deletions