Skip to contentSkip to conversation

selftests: test_tag: prog_tag is calculated using SHA256.

PATCH Applied Xing Guo 2 participants 2 messages Nov 21, 2025 – Nov 22, 2025

Subsystems (3)
lore
Share & tools
lore

Xing Guo

author
#0 lore raw

PATCH 1/1 selftests: test_tag: prog_tag is calculated using SHA256.

commit 603b44162325 ("bpf: Update the bpf_prog_calc_tag to use SHA256") changed digest of prog_tag to SHA256 but forgot to update tests correspondingly. This patch helps fix it.

Fixes 603b44162325 ("bpf: Update the bpf_prog_calc_tag to use SHA256")
---
 tools/testing/selftests/bpf/test_tag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/test_tag.c +1 -1
index 5546b05a0486..f1300047c1e0 100644
@@ -116,7 +116,7 @@ static void tag_from_alg(int insns, uint8_t *tag, uint32_t len)
 	static const struct sockaddr_alg alg = {
 		.salg_family	= AF_ALG,
 		.salg_type	= "hash",
-		.salg_name	= "sha1",
+		.salg_name	= "sha256",
 	};
 	int fd_base, fd_alg, ret;
 	ssize_t size;
Signature · 1 line
2.51.2
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 8 lines · On Fri, 21 Nov 2025 14:14:58 +0800 you wrote:

commit 603b44162325 ("bpf: Update the bpf_prog_calc_tag to use SHA256") changed digest of prog_tag to SHA256 but forgot to update tests correspondingly. This patch helps fix it.

Fixes 603b44162325 ("bpf: Update the bpf_prog_calc_tag to use SHA256")

[...]

Here is the summary with links:
- [bpf,v1] selftests: test_tag: prog_tag is calculated using SHA256.

    https://git.kernel.org/bpf/bpf-next/c/b7f7d76d6e35

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html