]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0aee5b41823a044741fe0cd7eb93ae2d7bedc89
treeb7013eec3efdf782371a429bbfa698b2cc5d43d4
parent3a80c7e2221dba53991bfce54e403432c77f2f09
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