Home
last modified time | relevance | path

Searched hist:d00a9dd2 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.cd00a9dd2 Wed Jan 18 01:21:42 CST 2012 Eric Dumazet <eric.dumazet@gmail.com> net: bpf_jit: fix divide by 0 generation

Several problems fixed in this patch :

1) Target of the conditional jump in case a divide by 0 is performed
by a bpf is wrong.

2) Must 'generate' the full function prologue/epilogue at pass=0,
or else we can stop too early in pass=1 if the proglen doesnt change.
(if the increase of prologue/epilogue equals decrease of all
instructions length because some jumps are converted to near jumps)

3) Change the wrong length detection at the end of code generation to
issue a more explicit message, no need for a full stack trace.

Reported-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
d00a9dd2 Wed Jan 18 01:21:42 CST 2012 Eric Dumazet <eric.dumazet@gmail.com> net: bpf_jit: fix divide by 0 generation

Several problems fixed in this patch :

1) Target of the conditional jump in case a divide by 0 is performed
by a bpf is wrong.

2) Must 'generate' the full function prologue/epilogue at pass=0,
or else we can stop too early in pass=1 if the proglen doesnt change.
(if the increase of prologue/epilogue equals decrease of all
instructions length because some jumps are converted to near jumps)

3) Change the wrong length detection at the end of code generation to
issue a more explicit message, no need for a full stack trace.

Reported-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>