Re: [PATCH bpf-next 2/2] bpf: Add loop test case with 32 bit reg comparison against 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 2, 2019 at 5:30 PM Daniel Borkmann <daniel@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux