diff options
author | John Fastabend <john.fastabend@gmail.com> | 2020-01-11 06:12:03 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-01-15 23:26:13 +0100 |
commit | cf21e9ba1eb86c9333ca5b05b2f1cc94021bcaef (patch) | |
tree | b2010fdecca8c5ea9f0078a7725ca5ac0e285f45 /net/tls | |
parent | 6562e29cf6f0ddd368657d97a8d484ffc30df5ef (diff) | |
download | linux-stable-cf21e9ba1eb86c9333ca5b05b2f1cc94021bcaef.tar.gz linux-stable-cf21e9ba1eb86c9333ca5b05b2f1cc94021bcaef.tar.bz2 linux-stable-cf21e9ba1eb86c9333ca5b05b2f1cc94021bcaef.zip |
bpf: Sockmap/tls, msg_push_data may leave end mark in place
Leaving an incorrect end mark in place when passing to crypto
layer will cause crypto layer to stop processing data before
all data is encrypted. To fix clear the end mark on push
data instead of expecting users of the helper to clear the
mark value after the fact.
This happens when we push data into the middle of a skmsg and
have room for it so we don't do a set of copies that already
clear the end flag.
Fixes: 6fff607e2f14b ("bpf: sk_msg program helper bpf_msg_push_data")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/bpf/20200111061206.8028-6-john.fastabend@gmail.com
Diffstat (limited to 'net/tls')
0 files changed, 0 insertions, 0 deletions