Re: [PATCH v2 net-next 2/2] bpf/verifier: improve disassembly of BPF_NEG instructions

2017-09-26 Thread Daniel Borkmann
On 09/26/2017 05:35 PM, Edward Cree wrote: 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 Acked-by: Daniel Borkmann

Re: [PATCH v2 net-next 2/2] bpf/verifier: improve disassembly of BPF_NEG instructions

2017-09-26 Thread Alexei Starovoitov
On Tue, Sep 26, 2017 at 04:35:29PM +0100, Edward Cree wrote: > 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 Acked-by: Alexei Starovoitov thank you for the cleanup

[PATCH v2 net-next 2/2] bpf/verifier: improve disassembly of BPF_NEG instructions

2017-09-26 Thread Edward Cree
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 --- kernel/bpf/verifier.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifie