]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit73c864b38383f4abc9b559025cd663f4a81afa89
treeb728e14e460b2a53546bdb27e39507714b7701fa
parent2b7c6ba945fd3c10ca3e030be402098aff2f89d3
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