Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 19 Apr 2002 20:13:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 19 Apr 2002 20:13:28 -0400 Received: from rwcrmhc53.attbi.com ([204.127.198.39]:43923 "EHLO rwcrmhc53.attbi.com") by vger.kernel.org with ESMTP id ; Fri, 19 Apr 2002 20:13:26 -0400 Message-ID: <3CC0B217.902@didntduck.org> Date: Fri, 19 Apr 2002 20:11:03 -0400 From: Brian Gerst User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linus Torvalds CC: "H. Peter Anvin" , andrea@suse.de, ak@suse.de, linux-kernel@vger.kernel.org, jh@suse.cz Subject: Re: [PATCH] Re: SSE related security hole In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > On Fri, 19 Apr 2002, H. Peter Anvin wrote: > >>Indeed. Logically, FNINIT should have been extended to initialize it all - >>- it is a security hole that it doesn't initialize MMX properly. > > > Well, MMX should arguably be initialized with "emms", so the proper > sequence migth be something like > > if (sse) > asm("emms"); > asm("fninit"); > > What does emms do to SSE2? > > Linus > All emms does is reset the tag word. It doesn't touch the registers. -- Brian Gerst - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/