bpf: take advantage of stack_depth tracking in x64 JIT
authorAlexei Starovoitov <ast@fb.com>
Tue, 30 May 2017 20:31:35 +0000 (13:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 23:29:48 +0000 (19:29 -0400)
commit2960ae48c4636778761610dd49187691c3774465
tree7578aae05af40cd063fa3cd8679effc13a28863b
parent177366bf7ceb35860281a6ebe824e42bf96fd95d
bpf: take advantage of stack_depth tracking in x64 JIT

Take advantage of stack_depth tracking in x64 JIT.
Round up allocated stack by 8 bytes to make sure it stays aligned
for functions called from JITed bpf program.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/x86/net/bpf_jit_comp.c