From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89604C433EF for ; Thu, 14 Oct 2021 15:08:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6AEF060551 for ; Thu, 14 Oct 2021 15:08:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233686AbhJNPKK (ORCPT ); Thu, 14 Oct 2021 11:10:10 -0400 Received: from mga14.intel.com ([192.55.52.115]:56743 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbhJNPJZ (ORCPT ); Thu, 14 Oct 2021 11:09:25 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="227977144" X-IronPort-AV: E=Sophos;i="5.85,372,1624345200"; d="scan'208";a="227977144" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2021 08:03:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,372,1624345200"; d="scan'208";a="487472600" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.171]) by fmsmga007.fm.intel.com with SMTP; 14 Oct 2021 08:03:46 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 14 Oct 2021 18:03:46 +0300 Date: Thu, 14 Oct 2021 18:03:46 +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 04:56:56PM +0200, Borislav Petkov wrote: > On Thu, Oct 14, 2021 at 05:43:14PM +0300, Ville Syrjälä wrote: > > 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; > > Whoops, I had it like that in the original patch: > > https://lore.kernel.org/all/163354193576.25758.8132624386883258818.tip-bot2@tip-bot2/ > > I blame tglx. :-) > > Does it work if you remove the mask negation "~"? The machine is currently preoccupied with other things. Should free up in an hour or two. Once it does I'll give this a spin and report back. -- Ville Syrjälä Intel