summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom
diff options
context:
space:
mode:
authorTycho Andersen2015-09-11 02:25:07 +0200
committerDavid S. Miller2015-09-11 23:52:41 +0200
commit19539ce783dd27768d4f7f3b753152bf983db65b (patch)
tree9b60e9e3326ed629ada5b85bbfbdb018550eb223 /drivers/net/ethernet/broadcom
parentnetlink, mmap: transform mmap skb into full skb on taps (diff)
downloadkernel-qcow2-linux-19539ce783dd27768d4f7f3b753152bf983db65b.tar.gz
kernel-qcow2-linux-19539ce783dd27768d4f7f3b753152bf983db65b.tar.xz
kernel-qcow2-linux-19539ce783dd27768d4f7f3b753152bf983db65b.zip
ebpf: emit correct src_reg for conditional jumps
Instead of always emitting BPF_REG_X, let's emit BPF_REG_X only when the source actually is BPF_X. This causes programs generated by the classic converter to not be importable via bpf(), as the eBPF verifier checks that the src_reg is correct or 0. While not a problem yet, this will be a problem when BPF_PROG_DUMP lands, and we can potentially dump and re-import programs generated by the converter. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> CC: Alexei Starovoitov <ast@kernel.org> CC: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
0 files changed, 0 insertions, 0 deletions