bpf/tests: Fix error in tail call limit tests
This patch fixes an error in the tail call limit test that caused the test to fail on for x86-64 JIT. Previously, the register R0 was used to report the total number of tail calls made. However, after a tail call fall-through, the value of the R0 register is undefined. Now, all tail call error path tests instead use context state to store the count. Fixes: 874be05f ("bpf, tests: Add tail call test suite") Reported-by: NPaul Chaignon <paul@cilium.io> Reported-by: NTiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: NJohan Almbladh <johan.almbladh@anyfinetworks.com> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net> Tested-by: NTiezhu Yang <yangtiezhu@loongson.cn> Link: https://lore.kernel.org/bpf/20210914091842.4186267-14-johan.almbladh@anyfinetworks.com
Showing
想要评论请 注册 或 登录