From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:11124 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756145AbeFOOSD (ORCPT ); Fri, 15 Jun 2018 10:18:03 -0400 Message-ID: <1529072090.17958.1.camel@2b52.sc.intel.com> Subject: Re: x86/fpu: Disable AVX when eagerfpu is off From: Yu-cheng Yu To: Julian Stecklina Cc: Thomas Prescher , stable@vger.kernel.org Date: Fri, 15 Jun 2018 07:14:50 -0700 In-Reply-To: <06cd3941-9d74-fd39-dd81-8a6387bc2e35@alien8.de> References: <06cd3941-9d74-fd39-dd81-8a6387bc2e35@alien8.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On Fri, 2018-06-15 at 14:11 +0200, Julian Stecklina wrote: > 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/tree/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 This is for MPX, not AVX. Yu-cheng