]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/verifier: improve disassembly of BPF_NEG instructions
authorEdward Cree <ecree@solarflare.com>
Tue, 26 Sep 2017 15:35:29 +0000 (16:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:23:18 +0000 (10:23 -0700)
commit415e66e2ee339d25627c602275fdb5503b880684
treeb728e14e460b2a53546bdb27e39507714b7701fa
parent2a2287240a52771bf02a73adadbdcd26447f9e02
bpf/verifier: improve disassembly of BPF_NEG instructions

BPF_NEG takes only one operand, unlike the bulk of BPF_ALU[64] which are
 compound-assignments.  So give it its own format in print_bpf_insn().

Signed-off-by: Edward Cree <ecree@solarflare.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c