ACK: [PATCH] cpu: msr: do not check SYSCALL MSRs

ivanhu ivan.hu at canonical.com
Wed Apr 11 08:58:05 UTC 2018



On 04/06/2018 01:38 PM, Alex Hung wrote:
> This includes IA32_STAR, IA32_LSTAR and IA32_FMASK registers
>
> Signed-off-by: Alex Hung <alex.hung at canonical.com>
> ---
>  src/cpu/msr/msr.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/src/cpu/msr/msr.c b/src/cpu/msr/msr.c
> index 362bb33..70d8965 100644
> --- a/src/cpu/msr/msr.c
> +++ b/src/cpu/msr/msr.c
> @@ -294,9 +294,12 @@ static const msr_info AMD_MSRs[] = {
>  	{ "PAT",			0x00000277,	0x0707070707070703ULL, NULL },
>  	{ "MTRR_DEF_TYPE",		0x000002ff,	0x0000000000000c0fULL, NULL },
>  	{ "EFER",			0xc0000080,	0x0000000000000d01ULL, NULL },
> +	/* Do not check syscall MSRs, they will be different on
> +	 * each CPU, so checking them across CPUs is incorrect
>  	{ "STAR",			0xc0000081,	0xffffffffffffffffULL, NULL },
>  	{ "LSTAR",			0xc0000082,	0xffffffffffffffffULL, NULL },
>  	{ "FMASK",			0xc0000084,	0xffffffffffffffffULL, NULL },
> +	 */
>  	//{ "FS_BASE",			0xc0000100,	0xffffffffffffffffULL, NULL },
>  	//{ "GS_BASE",			0xc0000101, 	0xffffffffffffffffULL, NULL },
>  	{ "KERNEL_GS_BASE",		0xc0000102, 	0xffffffffffffffffULL, NULL },
> @@ -437,9 +440,12 @@ static const msr_info IA32_MSRs[] = {
>  	{ "A_PMC6",			0x000004c7,	0xffffffffffffffffULL, NULL },
>  	{ "A_PMC7",			0x000004c8,	0xffffffffffffffffULL, NULL },
>  	{ "EFER",			0xc0000080,	0x0000000000000d01ULL, NULL },
> +	/* Do not check syscall MSRs, they will be different on
> +	 * each CPU, so checking them across CPUs is incorrect
>  	{ "STAR",			0xc0000081,	0xffffffffffffffffULL, NULL },
>  	{ "LSTAR",			0xc0000082,	0xffffffffffffffffULL, NULL },
>  	{ "FMASK",			0xc0000084,	0xffffffffffffffffULL, NULL },
> +	 */
>  	//{ "FS_BASE",			0xc0000100,	0xffffffffffffffffULL, NULL },
>  	//{ "GS_BASE",			0xc0000101, 	0xffffffffffffffffULL, NULL },
>  	{ "KERNEL_GS_BASE",		0xc0000102, 	0xffffffffffffffffULL, NULL },

Acked-by: Ivan Hu <ivan.hu at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180411/695af41f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180411/695af41f/attachment.sig>


More information about the fwts-devel mailing list