aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf
diff options
context:
space:
mode:
authorTushar Dave <tushar.n.dave@oracle.com>2018-08-31 23:45:16 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-09-02 22:29:53 +0200
commit9db39f4d4f94b61e4b64b077f6ddb2bdfb533a88 (patch)
treea38eb4ddd5568fcd3647115dd0cae63c8fcf3bb4 /tools/bpf
parentipv6: don't get lwtstate twice in ip6_rt_copy_init() (diff)
downloadlinux-dev-9db39f4d4f94b61e4b64b077f6ddb2bdfb533a88.tar.xz
linux-dev-9db39f4d4f94b61e4b64b077f6ddb2bdfb533a88.zip
bpf: Fix bpf_msg_pull_data()
Helper bpf_msg_pull_data() mistakenly reuses variable 'offset' while linearizing multiple scatterlist elements. Variable 'offset' is used to find first starting scatterlist element i.e. msg->data = sg_virt(&sg[first_sg]) + start - offset" Use different variable name while linearizing multiple scatterlist elements so that value contained in variable 'offset' won't get overwritten. Fixes: 015632bb30da ("bpf: sk_msg program helper bpf_sk_msg_pull_data") Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions