Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls: add haveBPFToBPFCalls feature probe
When trying to load a program containing bpf2bpf calls on a kernel that doesn't support it, we bubble up the verifier error to the caller: program xdp_prog: load program: invalid argument: unreachable insn 28 This is clear, but doesn't allow skipping tests when loading e.g. loader.c on older kernels due to it containing bpf2bpf calls. Implement a feature probe for bpf2bpf, return an unsupported error when trying to load a program with multiple subprogs on an older kernel. Update the test suite to skip unsupported features instead of hardcoding a skip on 4.16 and earlier. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information
Showing
6 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters