Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf v1] selftests: test_tag: prog_tag is calculated using SHA256.
@ 2025-11-21  6:14 Xing Guo
  2025-11-22  1:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Xing Guo @ 2025-11-21  6:14 UTC (permalink / raw)
  To: bpf; +Cc: linux-kselftest, ast, kpsingh

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")
Signed-off-by: Xing Guo <higuoxing@gmail.com>
---
 tools/testing/selftests/bpf/test_tag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/bpf/test_tag.c b/tools/testing/selftests/bpf/test_tag.c
index 5546b05a0486..f1300047c1e0 100644
--- a/tools/testing/selftests/bpf/test_tag.c
+++ b/tools/testing/selftests/bpf/test_tag.c
@@ -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;
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH bpf v1] selftests: test_tag: prog_tag is calculated using SHA256.
  2025-11-21  6:14 [PATCH bpf v1] selftests: test_tag: prog_tag is calculated using SHA256 Xing Guo
@ 2025-11-22  1:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-22  1:00 UTC (permalink / raw)
  To: Xing Guo; +Cc: bpf, linux-kselftest, ast, kpsingh

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

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")
> Signed-off-by: Xing Guo <higuoxing@gmail.com>
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-22  1:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-21  6:14 [PATCH bpf v1] selftests: test_tag: prog_tag is calculated using SHA256 Xing Guo
2025-11-22  1:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox