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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B3EAC0015E for ; Sat, 12 Aug 2023 06:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236039AbjHLGHy (ORCPT ); Sat, 12 Aug 2023 02:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232008AbjHLGHy (ORCPT ); Sat, 12 Aug 2023 02:07:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E785A30DC for ; Fri, 11 Aug 2023 23:07:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 71601643CB for ; Sat, 12 Aug 2023 06:07:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82808C433C7; Sat, 12 Aug 2023 06:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691820472; bh=8ADH81whV3g7GhKdHG2jMlrC6l5YPoMozdDyjrBjRcA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K1aooKYvjWgyeOlCDebeWNb+p5Ua5grzQHFsw9cJuHYya0ObHo0LvQuKExNfHaV1Y eDIFHfNogHyxk3u9huD2YAl+PtR2kzqe+bgplLttJE0/OJaVEU65wJLU4FQwx+TH6g DDMAdwqiYWXJLBT2pBLmcYiJo7szBgJprAMNbRGM= Date: Sat, 12 Aug 2023 08:07:49 +0200 From: Greg KH To: Thadeu Lima de Souza Cascardo Cc: stable@vger.kernel.org, RAJESH DASARI , Thomas Gleixner , Borislav Petkov Subject: Re: [PATCH 5.4,5.10] x86/pkeys: Revert a5eff7259790 ("x86/pkeys: Add PKRU value to init_fpstate") Message-ID: <2023081241-simmering-compacted-20eb@gregkh> References: <20230810153106.172292-1-cascardo@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810153106.172292-1-cascardo@canonical.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Aug 10, 2023 at 12:31:06PM -0300, Thadeu Lima de Souza Cascardo wrote: > From: Thomas Gleixner > > Commit b3607269ff57fd3c9690cb25962c5e4b91a0fd3b upstream. > > This cannot work and it's unclear how that ever made a difference. > > init_fpstate.xsave.header.xfeatures is always 0 so get_xsave_addr() will > always return a NULL pointer, which will prevent storing the default PKRU > value in init_fpstate. > > Signed-off-by: Thomas Gleixner > Signed-off-by: Borislav Petkov > Reviewed-by: Borislav Petkov > Link: https://lkml.kernel.org/r/20210623121451.451391598@linutronix.de > Reported-by: RAJESH DASARI > Signed-off-by: Thadeu Lima de Souza Cascardo > --- > > This has been reported to cause a WARNing since the backport of b81fac906a8f > ("x86/fpu: Move FPU initialization into arch_cpu_finalize_init()"). > > a5eff7259790 was part of 5.2 and no older LTS kernels carry it, so not > necessary on 4.19 or 4.14. Now queued up, thanks. greg k-h