Re: [PATCH bpf] bpf: fix several offset tests in bpf_msg_pull_data

2018-08-28 Thread Alexei Starovoitov
On Tue, Aug 28, 2018 at 04:15:35PM +0200, Daniel Borkmann wrote: > While recently going over bpf_msg_pull_data(), I noticed three > issues which are fixed in here: > > 1) When we attempt to find the first scatterlist element (sge) >for the start offset, we add len to the offset before we check

[PATCH bpf] bpf: fix several offset tests in bpf_msg_pull_data

2018-08-28 Thread Daniel Borkmann
While recently going over bpf_msg_pull_data(), I noticed three issues which are fixed in here: 1) When we attempt to find the first scatterlist element (sge) for the start offset, we add len to the offset before we check for start < offset + len, whereas it should come after when we itera