[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220615151721.404596-1-jakub@cloudflare.com>
Date: Wed, 15 Jun 2022 17:17:19 +0200
From: Jakub Sitnicki <jakub@...udflare.com>
To: bpf@...r.kernel.org
Cc: netdev@...r.kernel.org, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Maciej Fijalkowski <maciej.fijalkowski@...el.com>,
kernel-team@...udflare.com
Subject: [PATCH bpf-next 0/2] Fix tail call counting with bpf2bpf
When working on extending aarch64 JIT to support mixing bpf2bpf with tailcalls,
I ran into what looks like a bug in x64 JIT. Please see patch 1. Patch 2 adds a
test so that we don't regress.
Jakub Sitnicki (2):
bpf, x86: Fix tail call count offset calculation on bpf2bpf call
selftests/bpf: Test tail call counting with bpf2bpf and data on stack
arch/x86/net/bpf_jit_comp.c | 3 +-
.../selftests/bpf/prog_tests/tailcalls.c | 55 +++++++++++++++++++
.../selftests/bpf/progs/tailcall_bpf2bpf6.c | 42 ++++++++++++++
3 files changed, 99 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/selftests/bpf/progs/tailcall_bpf2bpf6.c
--
2.35.3
Powered by blists - more mailing lists