Re: [PATCH bpf v2 8/9] bpf: prevent out of bounds speculation on pointer arithmetic

2019-01-02 Thread Daniel Borkmann
On 01/02/2019 11:11 PM, Jakub Kicinski wrote: > On Wed, 2 Jan 2019 00:20:45 +0100, Daniel Borkmann wrote: >> Jann reported that the original commit back in b2157399cc98 >> ("bpf: prevent out-of-bounds speculation") was not sufficient >> to stop CPU from speculating out of bounds memory access: >>

Re: [PATCH bpf v2 8/9] bpf: prevent out of bounds speculation on pointer arithmetic

2019-01-02 Thread Jakub Kicinski
On Wed, 2 Jan 2019 00:20:45 +0100, Daniel Borkmann wrote: > Jann reported that the original commit back in b2157399cc98 > ("bpf: prevent out-of-bounds speculation") was not sufficient > to stop CPU from speculating out of bounds memory access: > While b2157399cc98 only focussed on masking array ma

[PATCH bpf v2 8/9] bpf: prevent out of bounds speculation on pointer arithmetic

2019-01-01 Thread Daniel Borkmann
Jann reported that the original commit back in b2157399cc98 ("bpf: prevent out-of-bounds speculation") was not sufficient to stop CPU from speculating out of bounds memory access: While b2157399cc98 only focussed on masking array map access for unprivileged users for tail calls and data access such