[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211001130348.3670534-1-johan.almbladh@anyfinetworks.com>
Date: Fri, 1 Oct 2021 15:03:38 +0200
From: Johan Almbladh <johan.almbladh@...finetworks.com>
To: ast@...nel.org, daniel@...earbox.net, andrii@...nel.org
Cc: kafai@...com, songliubraving@...com, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org, iii@...ux.ibm.com,
paul@...ium.io, yangtiezhu@...ngson.cn, netdev@...r.kernel.org,
bpf@...r.kernel.org,
Johan Almbladh <johan.almbladh@...finetworks.com>
Subject: [PATCH bpf-next 00/10] bpf/tests: Extend eBPF JIT test suite
This patch set adds a number of new tests to the test_bpf.ko test suite.
The new tests focus on the behaviour of operations with different
combinations of register operands, and in particular, when two or more
register operands are in fact the same register. It also verifies things
like a src register not being zero-extended in-place in ALU32 operations,
and that operations implemented with function calls do not clobber any
other eBPF registers.
Johan Almbladh (10):
bpf/tests: Add tests of BPF_LDX and BPF_STX with small sizes
bpf/tests: Add zero-extension checks in BPF_ATOMIC tests
bpf/tests: Add exhaustive tests of BPF_ATOMIC magnitudes
bpf/tests: Add tests to check source register zero-extension
bpf/tests: Add more tests for ALU and ATOMIC register clobbering
bpf/tests: Minor restructuring of ALU tests
bpf/tests: Add exhaustive tests of ALU register combinations
bpf/tests: Add exhaustive tests of BPF_ATOMIC register combinations
bpf/tests: Add test of ALU shifts with operand register aliasing
bpf/tests: Add test of LDX_MEM with operand aliasing
lib/test_bpf.c | 2803 ++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 2571 insertions(+), 232 deletions(-)
--
2.30.2
Powered by blists - more mailing lists