On 08/31/2018 11:45 PM, Tushar Dave wrote: > 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.d...@oracle.com>
Applied to bpf, thanks Tushar!