]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Test tail call counting with bpf2bpf and data on stack
authorJakub Sitnicki <jakub@cloudflare.com>
Thu, 16 Jun 2022 16:20:37 +0000 (18:20 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 16 Jun 2022 19:49:05 +0000 (21:49 +0200)
commit8310f5cb9e3ad491cd8016e759e894f0fd138b69
treeee6b26642923706daf2a48c0b96c083977ffbcfd
parent6b8e9add208cf11b6e65a6a2e7b11207bc14d0c6
selftests/bpf: Test tail call counting with bpf2bpf and data on stack

Cover the case when tail call count needs to be passed from BPF function to
BPF function, and the caller has data on stack. Specifically when the size
of data allocated on BPF stack is not a multiple on 8.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220616162037.535469-3-jakub@cloudflare.com
tools/testing/selftests/bpf/prog_tests/tailcalls.c
tools/testing/selftests/bpf/progs/tailcall_bpf2bpf6.c [new file with mode: 0644]