Separate tests that need error injection#11010
Separate tests that need error injection#11010kernel-patches-daemon-bpf[bot] wants to merge 3 commits intobpf-next_basefrom
Conversation
The test verifies attachment to various hooks in a kernel module, however, everything is flattened into a single test. When running the test on a kernel which doesn't support some of the hooks, it is impossible to skip them selectively. Isolate each BPF program into a separate subtest. This is done by disabling auto-loading of programs and loading and testing each program separately. Signed-off-by: Viktor Malik <vmalik@redhat.com>
Split the test into two subtests: one for checking bpf_probe_read* of a vsyscall page from a non-sleepable probe and one for checking bpf_copy_from_user* of a vsyscall page from a sleepable probe. The split is useful for running the test on kernels which do not support sleepable fentry programs to allow skipping just a part of the test. Signed-off-by: Viktor Malik <vmalik@redhat.com>
The test_lsm/lsm_basic test contains a test attaching to a sleepable fentry, which doesn't logically fit into the LSM test suite. In addition, it makes the entire test fail on kernels which do not support sleepable fentry programs. Factor out the sleepable fentry part into a new test fentry_sleepable. Signed-off-by: Viktor Malik <vmalik@redhat.com>
|
Upstream branch: db975de |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: AI-authorship-score: low |
Pull request for series with
subject: Separate tests that need error injection
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1052739