aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2016-02-19 22:05:27 +0000
committerDavid S. Miller <[email protected]>2016-02-22 03:07:11 +0000
commit6205b9cf200d1c3dda5491666ddc33e7b70fe469 (patch)
tree78c48c223c2b45253361e929a1bffc291dd16925 /net/unix/af_unix.c
parentbpf: fix csum update in bpf_l4_csum_replace helper for udp (diff)
downloadkernel-6205b9cf200d1c3dda5491666ddc33e7b70fe469.tar.gz
kernel-6205b9cf200d1c3dda5491666ddc33e7b70fe469.zip
bpf: don't emit mov A,A on return
While debugging with bpf_jit_disasm I noticed emissions of 'mov %eax,%eax', and found that this comes from BPF_RET | BPF_A translations from classic BPF. Emitting this is unnecessary as BPF_REG_A is mapped into BPF_REG_0 already, therefore only emit a mov when immediates are used as return value. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions