]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/bpf: synthetic tests to push verifier limits
authorAlexei Starovoitov <ast@kernel.org>
Tue, 2 Apr 2019 04:27:49 +0000 (21:27 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Apr 2019 23:27:38 +0000 (01:27 +0200)
commit8aa2d4b4b92cd534d53353b0c2fb079572b97fdf
tree27109b9d8f1bcea48513a56186c60ed1930f34f0
parente5e7a8f2d858a91b79c4afc51a3f15edcbf9cb60
selftests/bpf: synthetic tests to push verifier limits

Add a test to generate 1m ld_imm64 insns to stress the verifier.

Bump the size of fill_ld_abs_vlan_push_pop test from 4k to 29k
and jump_around_ld_abs from 4k to 5.5k.
Larger sizes are not possible due to 16-bit offset encoding
in jump instructions.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c
tools/testing/selftests/bpf/verifier/ld_dw.c