Re: [PATCH net-next] bpf: fix range arithmetic for bpf map access

2016-11-14 Thread Josef Bacik
On 11/11/2016 10:13 PM, Alexei Starovoitov wrote: On Fri, Nov 11, 2016 at 04:47:39PM -0500, Josef Bacik wrote: I made some invalid assumptions with BPF_AND and BPF_MOD that could result in invalid accesses to bpf map entries. Fix this up by doing a few things 1) Kill BPF_MOD support. This doe

Re: [PATCH net-next] bpf: fix range arithmetic for bpf map access

2016-11-11 Thread Alexei Starovoitov
On Fri, Nov 11, 2016 at 04:47:39PM -0500, Josef Bacik wrote: > I made some invalid assumptions with BPF_AND and BPF_MOD that could result in > invalid accesses to bpf map entries. Fix this up by doing a few things > > 1) Kill BPF_MOD support. This doesn't actually get used by the compiler in >

[PATCH net-next] bpf: fix range arithmetic for bpf map access

2016-11-11 Thread Josef Bacik
I made some invalid assumptions with BPF_AND and BPF_MOD that could result in invalid accesses to bpf map entries. Fix this up by doing a few things 1) Kill BPF_MOD support. This doesn't actually get used by the compiler in real life and just adds extra complexity. 2) Fix the logic for BPF_AND,