]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: bpf_jit: fix an off-one bug in x86_64 cond jump target
authorMarkus Kötter <nepenthesdev@gmail.com>
Sat, 17 Dec 2011 11:39:08 +0000 (11:39 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:02:29 +0000 (13:02 -0800)
commitdc9f5d0f2f5f39e3de5edc65233496908185fc48
treee87c983e3c9337753a09f94a1957092a2905a267
parent7e4f049053301606d9257b0c82851d2940a41eb2
net: bpf_jit: fix an off-one bug in x86_64 cond jump target

[ Upstream commit a03ffcf873fe0f2565386ca8ef832144c42e67fa ]

x86 jump instruction size is 2 or 5 bytes (near/long jump), not 2 or 6
bytes.

In case a conditional jump is followed by a long jump, conditional jump
target is one byte past the start of target instruction.

Signed-off-by: Markus Kötter <nepenthesdev@gmail.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@suse.de>
arch/x86/net/bpf_jit_comp.c