Re: [PATCH bpf-next] netdevsim: fix overflow on the error path

2018-02-01 Thread Daniel Borkmann
On 01/27/2018 04:50 AM, Jakub Kicinski wrote: > Undo loop condition on the error path would cause the i counter > to go below zero, if allocation failure happened with the first > (i.e. 0th) element of the array. > > Fixes: 395cacb5f1a0 ("netdevsim: bpf: support fake map offload") > Reported-by: D

Re: [PATCH bpf-next] netdevsim: fix overflow on the error path

2018-02-01 Thread Simon Horman
On Fri, Jan 26, 2018 at 07:50:00PM -0800, Jakub Kicinski wrote: > Undo loop condition on the error path would cause the i counter > to go below zero, if allocation failure happened with the first > (i.e. 0th) element of the array. > > Fixes: 395cacb5f1a0 ("netdevsim: bpf: support fake map offload"

[PATCH bpf-next] netdevsim: fix overflow on the error path

2018-01-26 Thread Jakub Kicinski
Undo loop condition on the error path would cause the i counter to go below zero, if allocation failure happened with the first (i.e. 0th) element of the array. Fixes: 395cacb5f1a0 ("netdevsim: bpf: support fake map offload") Reported-by: Dan Carpenter Signed-off-by: Jakub Kicinski --- drivers/