]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: fix async operation
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 10 Jan 2020 12:38:32 +0000 (04:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2020 19:20:46 +0000 (11:20 -0800)
commita053e7eabdb83f277eb6f9f2968d5bca51e1467e
treef35e8641beeca511e3340a7b604c1532c172a3a1
parentedb4d37122ab4aaad21854898a82bfc4e3d6e152
net/tls: fix async operation

Mallesham reports the TLS with async accelerator was broken by
commit c7e51a9c5c83 ("net/tls: free the record on encryption error")
because encryption can return -EINPROGRESS in such setups, which
should not be treated as an error.

The error is also present in the BPF path (likely copied from there).

Reported-by: Mallesham Jatharakonda <mallesham.jatharakonda@oneconvergence.com>
Fixes: 7f1e5e018bbc ("tls: add bpf support to sk_msg handling")
Fixes: c7e51a9c5c83 ("net/tls: free the record on encryption error")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c