Skip to content
Commit a03ffcf8 authored by Markus Kötter's avatar Markus Kötter Committed by David S. Miller
Browse files

net: bpf_jit: fix an off-one bug in x86_64 cond jump target



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: default avatarMarkus Kötter <nepenthesdev@gmail.com>
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d1388dac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment