[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPhsuW6oGoBK28JyY3r6a+fzesqa8c7Zki+z33XXV2AS6=JVwQ@mail.gmail.com>
Date: Thu, 3 Oct 2019 13:56:53 -0700
From: Song Liu <liu.song.a23@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: Alexei Starovoitov <ast@...nel.org>, bpf <bpf@...r.kernel.org>,
Networking <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next 2/2] bpf: Add loop test case with 32 bit reg
comparison against 0
On Wed, Oct 2, 2019 at 5:30 PM Daniel Borkmann <daniel@...earbox.net> wrote:
>
> Add a loop test with 32 bit register against 0 immediate:
>
> # ./test_verifier 631
> #631/p taken loop with back jump to 1st insn, 2 OK
>
> Disassembly:
>
> [...]
> 1b: test %edi,%edi
> 1d: jne 0x0000000000000014
> [...]
>
> Pretty much similar to prior "taken loop with back jump to 1st
> insn" test case just as jmp32 variant.
>
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
Acked-by: Song Liu <songliubraving@...com>
Powered by blists - more mailing lists