selftests/bpf: Remove hexdump dependency#11074
Closed
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf_basefrom
Closed
selftests/bpf: Remove hexdump dependency#11074kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf_basefrom
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf_basefrom
Conversation
Author
|
Upstream branch: 886bf92 |
Author
|
Upstream branch: 886bf92 |
5eebaed to
8da8683
Compare
12c5b36 to
7365a86
Compare
Author
|
Upstream branch: b0b1a85 |
8da8683 to
666dd67
Compare
7365a86 to
26293ad
Compare
Author
|
Upstream branch: 593fffb |
666dd67 to
ac397c3
Compare
26293ad to
fe9bc92
Compare
The verification signature header generation requires converting a binary certificate to a C array. Previously this only worked with xxd, and a switch to hexdump has been done in commit b640d55 ("selftests/bpf: Remove xxd util dependency"). hexdump is a more common utility program, yet it might not be installed by default. When it is not installed, BPF selftests build without errors, but tests_progs is unusable: it exits with the 255 code and without any error messages. When manually reproducing the issue, it is not too hard to find out that the generated verification_cert.h file is incorrect, but that's time consuming. When digging the BPF selftests build logs, this line can be seen amongst thousands others, but ignored: /bin/sh: 2: hexdump: not found Here, od is used with awk, instead of hexdump with sed. od is coming from the core utils package, and this new od command produces the same output when using od from GNU coreutils, uutils, and even busybox. This is more portable, and it produces the same results as what was done before with hexdump (without trailing whitespaces as a bonus). Fixes: b640d55 ("selftests/bpf: Remove xxd util dependency") Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Tested-by: Mykyta Yatsenko <yatsenko@meta.com>
Author
|
Upstream branch: 3b39d73 |
ac397c3 to
457d3b4
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request for series with
subject: selftests/bpf: Remove hexdump dependency
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1054626