]> 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)
commitcfc0631b26d54026f97d17393240cd35b37bbb6f
treeb728e14e460b2a53546bdb27e39507714b7701fa
parentc0951321d2440031f5109d8f89ea192ea5b3ee14
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