Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2640910ybt; Tue, 16 Jun 2020 11:04:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrmGiAA/NKSKoDHVEDOuhCsykM3WUWYnVCEy9/PSRqJuKvqHZiMYznoejLqX4636vn1bOu X-Received: by 2002:a05:6402:1d84:: with SMTP id dk4mr3865425edb.22.1592330665431; Tue, 16 Jun 2020 11:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592330665; cv=none; d=google.com; s=arc-20160816; b=DBzNOTZdgmHFqq6Y/BF5+UdDiZh1up2TpCvkBoIWExWcDu490lTowYCcduL8RJq2oQ tzrN8aYIH7ELNXRMMV7lvHvlnrpfCtldtnu9h1nUAWGLjid99bEghpMjw02kAGQnzhGA lZmuujnlPfYf5WnESL64x9AHThGdKE2aqehqxEZqoOJTw7/Ca7G+cQgWVjxqjGohLj2L ZklvVRAzP8JmmQ9y+/tIhCDVX1FL4gIB3TMhjhJrcJk8l8KNzMiMl21tvNo/pd+xG/qc Vw2fOdDcy3LedtRrf+51hWIZYEOzBRVZDywZsHrlvOlhlWmybeJDQD/OkFMZU0ja4Do6 UbXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hqVl7foDxxfge5hzy354qD6wQeIWNCQs1gQEI+LCBC4=; b=q+vJWGSdDlaIAYXd5G3Qq26Ta6Zn1j87dUoGYs4deW0nlY/9PDUMaoYY2wIShL5ez9 7aR1LQ2XSTwWBAEb0TCHMIvxywpLnIIEo4bxA7u8ksdhODi2FXio3jcAm/QIDC8sPom+ doOgB2i2yc58QeVR4g4sku0tt3899tQdSd/VGcrNMjYRMgcCc0wp3KAYNaOYXhQbUN/3 3pOX02P+mZ1Xtv1mqqn2UzN9mcHHZui2utR6IbhNy5uIdOWkx8jdRSR56O8NJEH+sxqE 6OD4SlpZjI79dR+YoMQ5BMroyyJ67sZh5xscXb6lWmsoIK+7BPALiKupTRlGjtOQJ3pi ptvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=aTaZlC3y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr2si13434209ejc.18.2020.06.16.11.04.02; Tue, 16 Jun 2020 11:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=aTaZlC3y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731411AbgFPSBh (ORCPT + 99 others); Tue, 16 Jun 2020 14:01:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730613AbgFPSBg (ORCPT ); Tue, 16 Jun 2020 14:01:36 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E3CBC061573 for ; Tue, 16 Jun 2020 11:01:34 -0700 (PDT) Received: from zn.tnic (p200300ec2f0f4c001d7e5f403e90d72b.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:4c00:1d7e:5f40:3e90:d72b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 91E8B1EC02C3; Tue, 16 Jun 2020 20:01:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1592330492; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=hqVl7foDxxfge5hzy354qD6wQeIWNCQs1gQEI+LCBC4=; b=aTaZlC3yYdxaOyYbZFlqVO5L7S2UIRyNBYTwQS8QFNVUSCrH2nnR7Lt6gzM8FcZ4wQ42VX d4snp0rckqJXFxjvwPUEvkHkl/FkEPxVHth2HwmZn7EGGU0Is5hwCaZ8LD9wWSpRnGWtEE H7L0BgXHGlWfKVov0HK5y+oe3NXyfG8= Date: Tue, 16 Jun 2020 20:01:23 +0200 From: Borislav Petkov To: Andy Lutomirski Cc: x86-ml , jpa@kernelbug.mail.kapsi.fi, Dave Hansen , "H. Peter Anvin" , Sebastian Andrzej Siewior , lkml Subject: Re: [PATCH] x86/fpu: Reset MXCSR to default in kernel_fpu_begin() Message-ID: <20200616180123.GL13515@zn.tnic> References: <20200616095340.GD13515@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 09:53:39AM -0700, Andy Lutomirski wrote: > On Tue, Jun 16, 2020 at 2:53 AM Borislav Petkov wrote: > > > > Ok, > > > > here's the fix first so that it goes in. I'll hammer on the test case later. > > Does the 32-bit case need FNINIT? Pasting from IRC: I'm thinking if you'd need to reinit the FPU, then you need to do it for both, not only 32-bit or do you mean something else? Also, if you end up doing FNSAVE (old CPU) that one reinits state. Whatever we decide doing, this should be a separate patch anyway. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette