Re: Infinite loop with JA + JCOND

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

 



On Sat, Jun 15, 2024 at 11:49 PM Zac Ecob <zacecob@xxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> Found a program that the verifier accepts but causes an infinite loop. Works on 6.9.4 (which I ran in qemu-system-x86_64).
>
> The JA always jumps back to the start of the program, where the JCOND will never successfully jump to exit.
>
> Attached is the repro files.

Thanks for the report.
It exposes a bug in insn patching where may_goto is the first insn
and goto jumps to that very first insn.
So bpf_patch_insn_data() adjust JA's off unnecessarily.





[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