From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 2/2] Add test for CVE 2021-38198
Date: Mon, 6 May 2024 21:17:39 +0200 [thread overview]
Message-ID: <20240506191739.GA36275@pevik> (raw)
In-Reply-To: <20220421123351.17645-3-mdoucha@suse.cz>
Hi Martin, Cyril,
> --- /dev/null
> +++ b/testcases/kernel/kvm/kvm_pagefault01.c
...
> +static void setup(void)
> +{
> + disable_tdp();
> + tst_kvm_setup();
> +}
> +
> +static struct tst_test test = {
> + .test_all = tst_kvm_run,
> + .setup = setup,
> + .cleanup = tst_kvm_cleanup,
> + .needs_root = 1,
This test was merged some time ago.
FYI this .needs_root generates -Wsingle-bit-bitfield-constant-conversion error.
Nothing important, maybe you see an easy way to fix it.
kvm_pagefault01.c:218:16: warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
.needs_root = 1,
^
1 warning generated.
Kind regards,
Petr
> + .save_restore = (const struct tst_path_val[]) {
> + {"?/sys/module/kvm/parameters/tdp_mmu", "0"},
> + {}
> + },
> + .supported_archs = (const char *const []) {
> + "x86_64",
> + NULL
> + },
> + .tags = (struct tst_tag[]){
> + {"linux-git", "b1bd5cba3306"},
> + {"CVE", "2021-38198"},
> + {}
> + }
> +};
> +
> +#endif /* COMPILE_PAYLOAD */
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-05-06 19:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 12:33 [LTP] [PATCH v3 0/2] KVM testing Martin Doucha
2022-04-21 12:33 ` [LTP] [PATCH v3 1/2] KVM test infrastructure Martin Doucha
2022-04-21 13:07 ` Cyril Hrubis
2022-04-21 12:33 ` [LTP] [PATCH v3 2/2] Add test for CVE 2021-38198 Martin Doucha
2022-04-21 13:07 ` Cyril Hrubis
2024-05-06 19:17 ` Petr Vorel [this message]
2024-05-06 20:02 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240506191739.GA36275@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox