Subject: Re: [PATCH] net: bpf_jit: fix divide by 0 generation

From: Phil Oester <[email-masked]>
Date: Wed, 18 Jan 2012 07:57:47 -0800

On Wed, Jan 18, 2012 at 08:58:53AM +0100, Eric Dumazet wrote:
> Target of the conditional jump in case a divide by 0 is performed by a
> bpf is wrong.
> 
> Also change the wrong length detection at the end of code generation to
> issue a more explicit message and abort the compilation.
> 
> Reported-by: Phil Oester <[email-masked]>
> Signed-off-by: Eric Dumazet <[email-masked]>
> ---
> Please Phil test following fix, thanks !

Got the following output after applying this fix (no panic this time):

proglen=231 != oldproglen=235
bpb_jit_compile fatal error

Filter being used is 'not net a.b.x.112/28 and not net a.b.y.112/28'

Thanks,
Phil