bpf: change back to orig prog on too many passes
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 6 Jan 2017 23:26:33 +0000 (00:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jan 2017 22:00:18 +0000 (17:00 -0500)
commit9d5ecb09d525469abd1a10c096cb5a17206523f2
tree6596162007a93575bf50a08acb35a68ab7a5ba82
parentf5992b72ebe0dde488fa8f706b887194020c66fc
bpf: change back to orig prog on too many passes

If after too many passes still no image could be emitted, then
swap back to the original program as we do in all other cases
and don't use the one with blinding.

Fixes: 959a75791603 ("bpf, x86: add support for constant blinding")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/x86/net/bpf_jit_comp.c