[LTP] [PATCH v1 1/2] testcases/kernel: Add CVE tag to some existing tests.

Li Wang liwang@redhat.com
Tue Jun 20 10:30:07 CEST 2023


On Tue, Jun 20, 2023 at 4:17 PM Souta Kawahara <
souta.kawahara@miraclelinux.com> wrote:

> Signed-off-by: Souta Kawahara <souta.kawahara@miraclelinux.com>
>

Reviewed-by: Li Wang <liwang@redhat.com>

> ---
>  testcases/kernel/mem/ksm/ksm05.c                    | 4 ++++
>  testcases/kernel/syscalls/ipc/shmat/shmat03.c       | 1 +
>  testcases/kernel/syscalls/keyctl/keyctl02.c         | 1 +
>  testcases/kernel/syscalls/setsockopt/setsockopt02.c | 4 ++++
>  testcases/kernel/syscalls/uname/uname04.c           | 4 ++++
>  5 files changed, 14 insertions(+)
>
> diff --git a/testcases/kernel/mem/ksm/ksm05.c
> b/testcases/kernel/mem/ksm/ksm05.c
> index 25f3435b2..1f58c8325 100644
> --- a/testcases/kernel/mem/ksm/ksm05.c
> +++ b/testcases/kernel/mem/ksm/ksm05.c
> @@ -95,6 +95,10 @@ static struct tst_test test = {
>                 "CONFIG_KSM=y",
>                 NULL
>         },
> +       .tags = (const struct tst_tag[]) {
> +               {"CVE", "2011-2183"},
> +               {}
> +       }
>  };
>
>  #else
> diff --git a/testcases/kernel/syscalls/ipc/shmat/shmat03.c
> b/testcases/kernel/syscalls/ipc/shmat/shmat03.c
> index dfa427a56..16bf01009 100644
> --- a/testcases/kernel/syscalls/ipc/shmat/shmat03.c
> +++ b/testcases/kernel/syscalls/ipc/shmat/shmat03.c
> @@ -104,6 +104,7 @@ static struct tst_test test = {
>                 {"linux-git", "95e91b831f87"},
>                 {"linux-git", "a73ab244f0da"},
>                 {"linux-git", "8f89c007b6de"},
> +               {"CVE", "2017-5669"},
>                 {}
>         }
>  };
> diff --git a/testcases/kernel/syscalls/keyctl/keyctl02.c
> b/testcases/kernel/syscalls/keyctl/keyctl02.c
> index 572f34b16..35cc2838d 100644
> --- a/testcases/kernel/syscalls/keyctl/keyctl02.c
> +++ b/testcases/kernel/syscalls/keyctl/keyctl02.c
> @@ -144,6 +144,7 @@ static struct tst_test test = {
>         .test_all = do_test,
>         .tags = (const struct tst_tag[]) {
>                 {"linux-git", "b4a1b4f5047e"},
> +               {"CVE", "2015-7550"},
>                 {}
>         }
>  };
> diff --git a/testcases/kernel/syscalls/setsockopt/setsockopt02.c
> b/testcases/kernel/syscalls/setsockopt/setsockopt02.c
> index e7621538b..3349c9970 100644
> --- a/testcases/kernel/syscalls/setsockopt/setsockopt02.c
> +++ b/testcases/kernel/syscalls/setsockopt/setsockopt02.c
> @@ -96,4 +96,8 @@ static struct tst_test test = {
>         .needs_root = 1,
>         .setup = setup,
>         .cleanup = cleanup,
> +       .tags = (const struct tst_tag[]) {
> +               {"CVE", "2017-7308"},
> +               {}
> +       }
>  };
> diff --git a/testcases/kernel/syscalls/uname/uname04.c
> b/testcases/kernel/syscalls/uname/uname04.c
> index 2d0851c8b..885368c24 100644
> --- a/testcases/kernel/syscalls/uname/uname04.c
> +++ b/testcases/kernel/syscalls/uname/uname04.c
> @@ -79,4 +79,8 @@ static void run(unsigned int test_nr)
>  static struct tst_test test = {
>         .test = run,
>         .tcnt = 2,
> +       .tags = (const struct tst_tag[]) {
> +               {"CVE", "2012-0957"},
> +               {}
> +       }
>  };
> --
> 2.31.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>
>

-- 
Regards,
Li Wang


More information about the ltp mailing list