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

2016-11-11 Thread Josef Bacik
On 11/11/2016 11:36 AM, Jann Horn wrote: On Fri, Nov 11, 2016 at 1:18 AM, Josef Bacik wrote: --- Sorry Jann, I saw your response last night and then promptly forgot about it, here's the git-send-email version. --- A note: This doesn't seem to apply cleanly to current net-next (or I'm too stup

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

2016-11-11 Thread Jann Horn
On Fri, Nov 11, 2016 at 1:18 AM, Josef Bacik wrote: > --- > Sorry Jann, I saw your response last night and then promptly forgot about it, > here's the git-send-email version. > --- A note: This doesn't seem to apply cleanly to current net-next (or I'm too stupid to use "git am"), so I'm applying

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

2016-11-10 Thread David Miller
From: Josef Bacik Date: Thu, 10 Nov 2016 19:18:12 -0500 > --- > Sorry Jann, I saw your response last night and then promptly forgot about it, > here's the git-send-email version. GIT will remove everything after the first "---" line from the commit message, so you've essentially submitted an emp

[PATCH] bpf: fix range arithmetic for bpf map access

2016-11-10 Thread Josef Bacik
--- Sorry Jann, I saw your response last night and then promptly forgot about it, here's the git-send-email version. --- 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.