Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4660240pxb; Thu, 14 Oct 2021 09:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl4/rgsuB3dAvR54xwnAqN2p0L8DkHnvTucjNyB95XFZMwt7QEAiV812GrricLjcWGct96 X-Received: by 2002:a17:902:be0f:b0:13a:19b6:6870 with SMTP id r15-20020a170902be0f00b0013a19b66870mr6007393pls.64.1634228815790; Thu, 14 Oct 2021 09:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634228815; cv=none; d=google.com; s=arc-20160816; b=QfzooImLGR10rnKLT4rKl1/QQQHTfWg+43G2XKfQAMM8yp1INKFN1sWJgbRFrgk7t8 7PXqFlagDKM4AbaecUOuExIOzhQE/CQE8fnD34PB0YvnW3YFoS1ec2CiA+YtSQE/ZoE1 QJGh9WhBbqKg38dahGA1rF2GtKnR/AZOCVz9MAzxTixtsNSn3Qo1SvcFLAfQFpIfnJRg nQooOspzekvXnaw0LMZlQCYccgnROI7+BzlltYpRjqedKMk8Yd04pahgxNT55enIUFFi 7Q0AHT0YMWvA+p1xH/yZG5tWFUyIKRVo9I4FFEmKZRkp8vXnnfzeobvAjuJ9Utri5xg+ 2nIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=p3S3cTphYD1NYV7IeLMuMhNGgzzNEXJiHNvqVZz3H+A=; b=VJjjj6s8j7nDFNyhrjZVP/IKg5JNL4JilGalmec8wWITj5qitHvBCBeEek5Bl77ASp U3dywW8A+O3bClDE4zIYPCS2BVao9i8tOiHcM8z+yecc0rPRFvg4Y/7GRYylM8s615Nd CiCMJNO+FmZGGUAWOPf8i/8J0RUy88QAoFkgB/K5W9PSIPqBljvhI6u1Fn2Cv5ivWZQY E/zp3A+36LOrpWUrXfzpywNTZyQWBiWJQygpLyfJ+tyFc00VnIg51dbqvo53jodUyijF bxq9/wBHKTuCpY4SCWMo3K5T8EHlC6UIgfoXonvQlV/nRc9KGmvpA56y8+IaYp00kViW lGww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y30si4293566pgk.563.2021.10.14.09.26.42; Thu, 14 Oct 2021 09:26:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231685AbhJNOpY (ORCPT + 99 others); Thu, 14 Oct 2021 10:45:24 -0400 Received: from mga04.intel.com ([192.55.52.120]:38521 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbhJNOpX (ORCPT ); Thu, 14 Oct 2021 10:45:23 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="226459991" X-IronPort-AV: E=Sophos;i="5.85,372,1624345200"; d="scan'208";a="226459991" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2021 07:43:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,372,1624345200"; d="scan'208";a="442137190" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.171]) by orsmga006.jf.intel.com with SMTP; 14 Oct 2021 07:43:14 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 14 Oct 2021 17:43:14 +0300 Date: Thu, 14 Oct 2021 17:43:14 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Borislav Petkov Cc: Ser Olmy , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [regression] commit d298b03506d3 ("x86/fpu: Restore the masking out of reserved MXCSR bits") Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 05:34:14PM +0300, Ville Syrj?l? wrote: > On Thu, Oct 14, 2021 at 04:27:07PM +0200, Borislav Petkov wrote: > > On Thu, Oct 14, 2021 at 02:44:33PM +0300, Ville Syrj?l? wrote: > > > I have a 32bit installation here that stopped working. Bisected it > > > to commit d298b03506d3 ("x86/fpu: Restore the masking out of reserved > > > MXCSR bits"). > > > > Lemme make sure I understand this correctly: this patch is bad and with > > it reverted it works? > > Yes. > > > > > Because before this patch, the restoring would be a more restrictive > > than before and this patch reverts the code to the old behavior for > > invalid MXCSR bits. Yeah, it's a bit weird. Hmm. Actually I just stared at the code a bit more it looks a bit funny. Was it supposed to do this instead? - fpu->state.fxsave.mxcsr &= ~mxcsr_feature_mask; + fpu->state.fxsave.mxcsr &= mxcsr_feature_mask; -- Ville Syrj?l? Intel