[PATCH 10/13] testcases: Fix the CVE tags

Cyril Hrubis <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
The tags should be in the format year-seq. With the CVE prefix our
tolling is broken e.g. tst_test.c prints wrong URLs.

Signed-off-by: Cyril Hrubis <[email protected]>
---
 testcases/kernel/containers/userns/userns08.c                 | 2 +-
 testcases/kernel/pty/pty04.c                                  | 2 +-
 testcases/kernel/security/dirtypipe/dirtypipe.c               | 2 +-
 testcases/kernel/syscalls/bpf/bpf_prog05.c                    | 2 +-
 testcases/kernel/syscalls/bpf/bpf_prog06.c                    | 2 +-
 testcases/kernel/syscalls/bpf/bpf_prog07.c                    | 2 +-
 testcases/kernel/syscalls/gethostbyname_r/gethostbyname_r01.c | 2 +-
 testcases/kernel/syscalls/kill/kill13.c                       | 2 +-
 testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c     | 2 +-
 testcases/kernel/syscalls/setsockopt/setsockopt03.c           | 2 +-
 testcases/network/sockets/vsock01.c                           | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/testcases/kernel/containers/userns/userns08.c b/testcases/kernel/containers/userns/userns08.c
index 2ee4da558..4196bb064 100644
--- a/testcases/kernel/containers/userns/userns08.c
+++ b/testcases/kernel/containers/userns/userns08.c
@@ -139,7 +139,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "d2f007dbe7e4"},
-		{"CVE", "CVE-2018-18955"},
+		{"CVE", "2018-18955"},
 		{}
 	},
 };
diff --git a/testcases/kernel/pty/pty04.c b/testcases/kernel/pty/pty04.c
index 8bd1bfff5..b23cc0a9d 100644
--- a/testcases/kernel/pty/pty04.c
+++ b/testcases/kernel/pty/pty04.c
@@ -494,7 +494,7 @@ static struct tst_test test = {
 	.needs_root = 1,
 	.tags = (const struct tst_tag[]){
 		{"linux-git", "b9258a2cece4ec1f020715fe3554bc2e360f6264"},
-		{"CVE", "CVE-2020-11494"},
+		{"CVE", "2020-11494"},
 		{}
 	}
 };
diff --git a/testcases/kernel/security/dirtypipe/dirtypipe.c b/testcases/kernel/security/dirtypipe/dirtypipe.c
index 981793e64..a1bbe9465 100644
--- a/testcases/kernel/security/dirtypipe/dirtypipe.c
+++ b/testcases/kernel/security/dirtypipe/dirtypipe.c
@@ -164,7 +164,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "9d2231c5d74e"},
-		{"CVE", "CVE-2022-0847"},
+		{"CVE", "2022-0847"},
 		{},
 	}
 };
diff --git a/testcases/kernel/syscalls/bpf/bpf_prog05.c b/testcases/kernel/syscalls/bpf/bpf_prog05.c
index 05cb34e13..6412ca205 100644
--- a/testcases/kernel/syscalls/bpf/bpf_prog05.c
+++ b/testcases/kernel/syscalls/bpf/bpf_prog05.c
@@ -210,7 +210,7 @@ static struct tst_test test = {
 		{"linux-git", "468f6eafa6c4"},
 		{"linux-git", "e88b2c6e5a4d"},
 		{"linux-git", "9b00f1b78809"},
-		{"CVE", "CVE-2021-3444"},
+		{"CVE", "2021-3444"},
 		{}
 	}
 };
diff --git a/testcases/kernel/syscalls/bpf/bpf_prog06.c b/testcases/kernel/syscalls/bpf/bpf_prog06.c
index f701e9599..830159427 100644
--- a/testcases/kernel/syscalls/bpf/bpf_prog06.c
+++ b/testcases/kernel/syscalls/bpf/bpf_prog06.c
@@ -149,7 +149,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "64620e0a1e71"},
-		{"CVE", "CVE-2021-4204"},
+		{"CVE", "2021-4204"},
 		{}
 	}
 };
diff --git a/testcases/kernel/syscalls/bpf/bpf_prog07.c b/testcases/kernel/syscalls/bpf/bpf_prog07.c
index e3bf6e7cc..d82f97faf 100644
--- a/testcases/kernel/syscalls/bpf/bpf_prog07.c
+++ b/testcases/kernel/syscalls/bpf/bpf_prog07.c
@@ -153,7 +153,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "64620e0a1e71"},
-		{"CVE", "CVE-2022-23222"},
+		{"CVE", "2022-23222"},
 		{}
 	}
 };
diff --git a/testcases/kernel/syscalls/gethostbyname_r/gethostbyname_r01.c b/testcases/kernel/syscalls/gethostbyname_r/gethostbyname_r01.c
index e4c0cb716..73bf5da99 100644
--- a/testcases/kernel/syscalls/gethostbyname_r/gethostbyname_r01.c
+++ b/testcases/kernel/syscalls/gethostbyname_r/gethostbyname_r01.c
@@ -56,7 +56,7 @@ static struct tst_test test = {
 	.test_all = check_vulnerable,
 	.tags = (const struct tst_tag[]) {
 		{"glibc-git", "d5dd6189d506"},
-		{"CVE", "CVE-2015-0235"},
+		{"CVE", "2015-0235"},
 		{}
 	}
 };
diff --git a/testcases/kernel/syscalls/kill/kill13.c b/testcases/kernel/syscalls/kill/kill13.c
index ca281ca6c..bf6e4efeb 100644
--- a/testcases/kernel/syscalls/kill/kill13.c
+++ b/testcases/kernel/syscalls/kill/kill13.c
@@ -37,7 +37,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "4ea77014af0d"},
-		{"CVE", "CVE-2018-10124"},
+		{"CVE", "2018-10124"},
 		{}
 	}
 };
diff --git a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
index 65061bf3d..7481dcd8d 100644
--- a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
+++ b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
@@ -117,7 +117,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "cf01fb9985e8"},
-		{"CVE", "CVE-2017-7616"},
+		{"CVE", "2017-7616"},
 		{}
 	}
 };
diff --git a/testcases/kernel/syscalls/setsockopt/setsockopt03.c b/testcases/kernel/syscalls/setsockopt/setsockopt03.c
index 90d546611..134734acd 100644
--- a/testcases/kernel/syscalls/setsockopt/setsockopt03.c
+++ b/testcases/kernel/syscalls/setsockopt/setsockopt03.c
@@ -79,7 +79,7 @@ static struct tst_test test = {
 	.needs_root = 1,
 	.tags = (const struct tst_tag[]){
 		{"linux-git", "ce683e5f9d04"},
-		{"CVE", "CVE-2016-4997"},
+		{"CVE", "2016-4997"},
 		{}
 	}
 };
diff --git a/testcases/network/sockets/vsock01.c b/testcases/network/sockets/vsock01.c
index e46f663ed..84c9f9577 100644
--- a/testcases/network/sockets/vsock01.c
+++ b/testcases/network/sockets/vsock01.c
@@ -118,7 +118,7 @@ static struct tst_test test = {
 	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "c518adafa39f"},
-		{"CVE", "CVE-2021-26708"},
+		{"CVE", "2021-26708"},
 		{}
 	},
 };
-- 
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.