Re: [PATCH] net: bpf_jit: fix BPF_S_LDX_B_MSH compilation

From
David Miller <davem@davemloft.net>
Date
2012-03-19 21:46:48
Also in
linux-arch, lkml
Reply to
Eric Dumazet, 2012-03-18
From: Eric Dumazet <redacted>
Date: Sun, 18 Mar 2012 05:40:48 -0700
[PATCH] net: bpf_jit: fix BPF_S_LDX_B_MSH compilation

Matt Evans spotted that x86 bpf_jit was incorrectly handling negative
constant offsets in BPF_S_LDX_B_MSH instruction.

We need to abort JIT compilation like we do in common_load so that
filter uses the interpreter code and can call __load_pointer()

Reference: http://lists.openwall.net/netdev/2011/07/19/11

Thanks to Indan Zupancic to bring back this issue.

Reported-by: Matt Evans <redacted>
Reported-by: Indan Zupancic <redacted>
Signed-off-by: Eric Dumazet <redacted>
Applied and even though libpcap won't generate this I'll queue it up
to -stable anyways.
Thread (40 messages) 40 messages, 5 authors, last reply 2012-03-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help