Re: [PATCH net 1/5] bpf: fix mixed signed/unsigned derived min/max value bounds

2017-07-20 Thread Alexei Starovoitov
On 7/20/17 3:00 PM, Daniel Borkmann wrote: Edward reported that there's an issue in min/max value bounds tracking when signed and unsigned compares both provide hints on limits when having unknown variables. E.g. a program such as the following should have been rejected: Thanks a lot for the ha

[PATCH net 1/5] bpf: fix mixed signed/unsigned derived min/max value bounds

2017-07-20 Thread Daniel Borkmann
Edward reported that there's an issue in min/max value bounds tracking when signed and unsigned compares both provide hints on limits when having unknown variables. E.g. a program such as the following should have been rejected: 0: (7a) *(u64 *)(r10 -8) = 0 1: (bf) r2 = r10 2: (07) r2 +=