]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add various tests around spill/fill of regs
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 17 Oct 2016 12:28:35 +0000 (14:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 15:35:54 +0000 (11:35 -0400)
commitbc86508857f93a267e3b2354f754bd79ca9fdecb
tree092fce16a7122bf3ea0039a67d7ffc3d9f29d509
parent80d01bdc86b4d6a9c3d60753c8109b4ff3c2ba42
bpf: add various tests around spill/fill of regs

Add several spill/fill tests. Besides others, one that performs xadd
on the spilled register, one ldx/stx test where different types are
spilled from two branches and read out from common path. Verfier does
handle all correctly.

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