sparc: Adjust bpf JIT prologue for PSEUDO calls.
authorDavid Miller <davem@davemloft.net>
Tue, 27 Nov 2018 05:55:09 +0000 (21:55 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 27 Nov 2018 08:46:52 +0000 (09:46 +0100)
commit2b9034b5eaddc09c0e9529b93446eb975f97f814
treeb7013eec3efdf782371a429bbfa698b2cc5d43d4
parentfa1e0c9690bfa19eadd2adbaf511fb4fef9270e6
sparc: Adjust bpf JIT prologue for PSEUDO calls.

Move all arguments into output registers from input registers.

This path is exercised by test_verifier.c's "calls: two calls with
args" test.  Adjust BPF_TAILCALL_PROLOGUE_SKIP as needed.

Let's also make the prologue length a constant size regardless of
the combination of ->saw_frame_pointer and ->saw_tail_call
settings.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
arch/sparc/net/bpf_jit_comp_64.c