]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit1a776b9ce82d2df9c7ba140588a49721ffb0dc8f
tree092fce16a7122bf3ea0039a67d7ffc3d9f29d509
parent1441dc99faba2b3fd3a55e18cd955feb3667346a
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