diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-01-18 07:21:42 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-03 09:22:20 -0800 |
commit | cb65f39fb559707c4b5c85f14f804fa060d0609f (patch) | |
tree | 242840a00fb158b012393f8d33d61a44c8a302b7 /net/sunrpc/xprt.c | |
parent | 54652156e50409654d6d56bee221a3ad34dc0be9 (diff) | |
download | lwn-cb65f39fb559707c4b5c85f14f804fa060d0609f.tar.gz lwn-cb65f39fb559707c4b5c85f14f804fa060d0609f.zip |
net: bpf_jit: fix divide by 0 generation
[ Upstream commit d00a9dd21bdf7908b70866794c8313ee8a5abd5c ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sunrpc/xprt.c')
0 files changed, 0 insertions, 0 deletions