Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp689160pxb; Wed, 16 Feb 2022 02:05:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpCkUyuT5Mxy7Q7NqRqTyj30x0A6oHgvO14T7lnWwGAq7waDfe8om+jitkgM4KW6QfCW8l X-Received: by 2002:a63:f055:0:b0:362:d557:2ccb with SMTP id s21-20020a63f055000000b00362d5572ccbmr1626256pgj.377.1645005951661; Wed, 16 Feb 2022 02:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645005951; cv=none; d=google.com; s=arc-20160816; b=NgK02a5miIHXbBc7xq/Ez+dRdQ7z6Azx7u6ltr/FDc28qOr8nTugjYWAP+2c/dUADw Nu9U2/HbtFz4IftmMeogqtMos8Nx2KkdPNSuVGXZenm9l8U9XJHXkgvdO061DWDrKWvk TMhj8uj0SJEyTVl2cm1PO68fyNrSq9pAJ53fhxdjCle4PW7nQ2Hgk0ghQrScryL5DoL3 EcgAncRLIEv6mTsCCGbSDTQG0Q4vVNkcOHxnNy8sMYWnIxIhrbSRbm1lzKnBbAgaBKOF sP99fRwhUS5QkeG/fOwbjF6vzclIG2hlTOA70gpbuHRndAjOpPifDXfr4Wkt2JP6iw9d MrRw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0cUC2vgmFJ6TCsKflaK4OP0eUm8VyvRVDKj+kZFltPY=; b=KqSIw1lxCrW5lb37N6PQSL2cn7Y7wLVTwxWzieC/Yor/mOXXlqyDRZ0DFLzzw2OO7m GqgboVJCE89XQFD/Nmk432L8/UjR3wAGVX6Z+EugbjOQJoT1d+TnXEpYj2Oslx5FqVFs 91iQAxDiabFdI5X69PnKgRDEJ0j5R8DvXIAPfRu/WIL2Tk7J9Lew0JJZkYOtHuUdzomm iRFL/n5kVD96P7TpyPBzA4k6XKlRItddxLk0mMd+ZYAiGgsIw0csigjpVEXNtbJUtDRN qP7IAJS9h+nztcPhW20uc5u3Ly0ikjrBANtr2FWRNB5y+mN8oFDxVYSj0/tNB8OebLwK bdIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z4pivZNn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a15si5392991pgp.549.2022.02.16.02.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 02:05:51 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z4pivZNn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9FD72B6D6C; Wed, 16 Feb 2022 02:05:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232660AbiBPKFt (ORCPT + 99 others); Wed, 16 Feb 2022 05:05:49 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbiBPKFs (ORCPT ); Wed, 16 Feb 2022 05:05:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A5A79DD4F; Wed, 16 Feb 2022 02:05:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 46F37B81E5F; Wed, 16 Feb 2022 10:05:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65305C004E1; Wed, 16 Feb 2022 10:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645005934; bh=2J7xwzqTHWSDu2LH2Tt6SfS/J8p3zgSgjxdggOct+0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z4pivZNnjcWwH5gWkuZPpjR0L6KEqfJdR6PwK5kDhXQ8A3vR5/OYVmdZ1WCbQaA49 dQjJ1epwQ1D/MLUj1C8LE5hNAcDDyhq3VNC/2vtvIhUf7E9R7IbtvQJa11JxX1sV34 02B6PA4yjOIesDlOX37gQ6sdKQwFVe8vESYTHhxQ= Date: Wed, 16 Feb 2022 11:05:31 +0100 From: Greg KH To: Brian Geffon Cc: Dave Hansen , Thomas Gleixner , Willis Kung , Guenter Roeck , Borislav Petkov , Andy Lutomirski , "# v4 . 10+" , the arch/x86 maintainers , LKML Subject: Re: [PATCH stable 5.4,5.10] x86/fpu: Correct pkru/xstate inconsistency Message-ID: References: <543efc25-9b99-53cd-e305-d8b4d917b64b@intel.com> <20220215192233.8717-1-bgeffon@google.com> <066c9f4b-b0a3-9343-9db9-1c1c7303da6f@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 15, 2022 at 09:01:54PM -0500, Brian Geffon wrote: > On Tue, Feb 15, 2022 at 4:42 PM Dave Hansen wrote: > > > > On 2/15/22 13:32, Brian Geffon wrote: > > >> How was this tested, and what do the maintainers of this subsystem > > >> think? And will you be around to fix the bugs in this when they are > > >> found? > > > This has been trivial to reproduce, I've used a small repro which I've > > > put here: https://gist.github.com/bgaff/9f8cbfc8dd22e60f9492e4f0aff8f04f > > > , I also was able to reproduce this using the protection_keys self > > > tests on a 11th Gen Core i5-1135G7. > > > > I've got an i7-1165G7, but I'm not seeing any failures on a > > 5.11 distro kernel. > > > > Hi Dave, > I suspect the reason you're not seeing it is toolchain related, I'm > building with clang 14.0.0 and it produces the sequence of > instructions which use the cached value. Let me know if there is > anything I can do to help you investigate this further. Do older versions of clang have this problem? thanks, greg k-h