# Re: \[PATCH\] bpf: Fix off-by-one in tail call count limiting

- From: Johan Almbladh \<johan.almbladh@anyfinetworks.com\>
- Date: 2021-07-29 21:38:04 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/07/7775561
- Thread: https://ratatoskr.run/netdev/2021/07/7774828/t.md

```text
On Wed, Jul 28, 2021 at 9:13 PM Yonghong Song [ref] wrote:
> I also checked arm/arm64 jit. I saw the following comments:
>
>          /* if (tail_call_cnt > MAX_TAIL_CALL_CNT)
>           *      goto out;
>           * tail_call_cnt++;
>           */
>
> Maybe we have this MAX_TAIL_CALL_CNT + 1 issue
> for arm/arm64 jit?

That wouldn't be unreasonable. I don't have an arm or arm64 setup
available right now, but I can try to test it in qemu.
```
