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 21499C433F5 for ; Mon, 11 Apr 2022 13:28:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346475AbiDKNbI (ORCPT ); Mon, 11 Apr 2022 09:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346401AbiDKNbG (ORCPT ); Mon, 11 Apr 2022 09:31:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB51A18F; Mon, 11 Apr 2022 06:28:53 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id BCE2260BBF; Mon, 11 Apr 2022 13:28:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8FEEC385A4; Mon, 11 Apr 2022 13:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649683732; bh=TC0ZJSe2oB1L9uNa7i44bNF7FkAH5NEshanSOSJVJSE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BqCOa22gpra/JymKzjlJApCj3Ua7TxkeuayMdEOYjhzs6GMr26HGCAdbHwZt7xMFK mORd49l7ua9Nfb1+hSoKmFa7famg4xUU6kmE6yP6P1RKdstrU/YlzPNFBzNfwZQw+a xo/ruWE3Q64CAZ9W4RZiXsN140lD8HSzOjk+e9vQ= Date: Mon, 11 Apr 2022 15:28:49 +0200 From: Greg KH To: "Chang S. Bae" Cc: stable@vger.kernel.org, yang.zhong@intel.com, bonzini@gnu.org, tglx@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH][Rebased for 5.16] x86/fpu/xstate: Fix the ARCH_REQ_XCOMP_PERM implementation Message-ID: References: <164905801910825@kroah.com> <20220405110456.24877-1-chang.seok.bae@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405110456.24877-1-chang.seok.bae@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 05, 2022 at 04:04:56AM -0700, Chang S. Bae wrote: > From: Yang Zhong > > This is backport for 5.16 > > Upstream commit 063452fd94d153d4eb38ad58f210f3d37a09cca4 > > ARCH_REQ_XCOMP_PERM is supposed to add the requested feature to the > permission bitmap of thread_group_leader()->fpu. But the code overwrites > the bitmap with the requested feature bit only rather than adding it. > > Fix the code to add the requested feature bit to the master bitmask. > > Fixes: db8268df0983 ("x86/arch_prctl: Add controls for dynamic XSTATE components") > Signed-off-by: Yang Zhong > Signed-off-by: Chang S. Bae > Signed-off-by: Thomas Gleixner > Cc: Paolo Bonzini > Cc: stable@vger.kernel.org > Link: https://lore.kernel.org/r/20220129173647.27981-2-chang.seok.bae@intel.com > [chang: Backport for 5.16] > Signed-off-by: Chang S. Bae > --- > arch/x86/kernel/fpu/xstate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Now queued up, thanks. greg k-h