From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.skyhub.de ([5.9.137.197]:53136 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755749AbeFOMLb (ORCPT ); Fri, 15 Jun 2018 08:11:31 -0400 To: yu-cheng.yu@intel.com, Thomas Prescher , stable@vger.kernel.org From: Julian Stecklina Subject: Re: x86/fpu: Disable AVX when eagerfpu is off Message-ID: <06cd3941-9d74-fd39-dd81-8a6387bc2e35@alien8.de> Date: Fri, 15 Jun 2018 14:11:10 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DRrJ48kXGISRdAMEg8ygqSmOr2zLgBGxd" Sender: stable-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DRrJ48kXGISRdAMEg8ygqSmOr2zLgBGxd Content-Type: multipart/mixed; boundary="N1Ch000UtBiKzGG37xUjgbpIB8F0IPLK5"; protected-headers="v1" From: Julian Stecklina To: yu-cheng.yu@intel.com, Thomas Prescher , stable@vger.kernel.org Message-ID: <06cd3941-9d74-fd39-dd81-8a6387bc2e35@alien8.de> Subject: Re: x86/fpu: Disable AVX when eagerfpu is off --N1Ch000UtBiKzGG37xUjgbpIB8F0IPLK5 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Yu, Regarding your patch to disable AVX with eager fpu disabled in the 4.4 stable queue: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/t= ree/queue-4.4/x86-fpu-disable-mpx-when-eagerfpu-is-off.patch Why would this be necessary? In the Intel SDM Vol 2, Chapter 2.4, FPU/SIMD instructions are grouped into different classes and for all of them CR0.TS triggers a #NM exception in all modes but real mode and virtual 8086 mode. It seems to me lazy context switching of AVX is perfectly functional (disregarding the recently disclosed security issue). Am I missing something? Julian --N1Ch000UtBiKzGG37xUjgbpIB8F0IPLK5-- --DRrJ48kXGISRdAMEg8ygqSmOr2zLgBGxd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEENNPYZheA3V9c3udR68x/U3e55Y4FAlsjrOwACgkQ68x/U3e5 5Y7HnAf/YjoNpwWJ2NOGRzlel+EUfvl36IWvAvC33Rue1VXd8dv4Wq61yQ22YX7V uNhjx7tPDKzCl6akldXYhmaEXJybQFysKpm2hnkTyXE1YOrPha+ubNEUMWcdBs+V p9gftavAm3Yo6awNuNJSrt91A1cdUVa1XP7lraMyzAbL7fZGxRm/Ir7wc/JkCbx1 jfqRXmQ+oWQRJcu+uU+gyrWEwhVCCR2QJE5fLsc5WAUGj3G8ITfDRcfxC30tclOd S4BV5yJ8Ee+orlrrEfV/nmGGxlQMVN/uXR7W+IdgiR8GPtxDvVNoy1VcjSBnZ6nD 5ICDPHx4/wXjxbXtdjYSwbhGa1GruA== =URcM -----END PGP SIGNATURE----- --DRrJ48kXGISRdAMEg8ygqSmOr2zLgBGxd--