diff options
| author | John Fastabend <[email protected]> | 2019-05-13 14:19:55 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-05-13 23:31:43 +0000 |
| commit | cabede8b4f2b746232aa25730a0b752de1cb82ca (patch) | |
| tree | e258b4fb9bfab58874ce7af66f37af4e50f3d949 /tools/bpf/bpftool/prog.c | |
| parent | bpf: sockmap remove duplicate queue free (diff) | |
| download | kernel-cabede8b4f2b746232aa25730a0b752de1cb82ca.tar.gz kernel-cabede8b4f2b746232aa25730a0b752de1cb82ca.zip | |
bpf: sockmap fix msg->sg.size account on ingress skb
When converting a skb to msg->sg we forget to set the size after the
latest ktls/tls code conversion. This patch can be reached by doing
a redir into ingress path from BPF skb sock recv hook. Then trying to
read the size fails.
Fix this by setting the size.
Fixes: 604326b41a6fb ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: John Fastabend <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
