From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap1.codethink.co.uk ([176.9.8.82]:57670 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754401AbdJPRzK (ORCPT ); Mon, 16 Oct 2017 13:55:10 -0400 Message-ID: <1508176506.22379.31.camel@codethink.co.uk> Subject: Re: Patch "x86/fpu: Don't let userspace set bogus xcomp_bv" has been added to the 4.4-stable tree From: Ben Hutchings To: Eric Biggers Cc: stable@vger.kernel.org, stable-commits@vger.kernel.org, Greg Kroah-Hartman , akpm@linux-foundation.org, bp@alien8.de, dave.hansen@linux.intel.com, dvyukov@google.com, ebiggers@google.com, fenghua.yu@intel.com, haokexin@gmail.com, keescook@chromium.org, luto@amacapital.net, luto@kernel.org, mhalcrow@google.com, mingo@kernel.org, oleg@redhat.com, peterz@infradead.org, riel@redhat.com, tglx@linutronix.de, torvalds@linux-foundation.org, wanpeng.li@hotmail.com, yu-cheng.yu@intel.com Date: Mon, 16 Oct 2017 18:55:06 +0100 In-Reply-To: <20171016175202.GB121701@gmail.com> References: <1506970761242129@kroah.com> <1508175292.22379.30.camel@codethink.co.uk> <20171016175202.GB121701@gmail.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: On Mon, 2017-10-16 at 10:52 -0700, Eric Biggers wrote: > Hi Ben, > > On Mon, Oct 16, 2017 at 06:34:52PM +0100, Ben Hutchings wrote: > > > > On Mon, 2017-10-02 at 20:59 +0200, gregkh@linuxfoundation.org wrote: > > [...] > > > > > > From: Eric Biggers > > > > > > commit 814fb7bb7db5433757d76f4c4502c96fc53b0b5e upstream. > > > > > > [Please apply to 4.4-stable.  Note: the backport includes the > > > fpstate_init() call in xstateregs_set(), since fix is useless without > > > it.  It was added by commit 91c3dba7dbc1 ("x86/fpu/xstate: Fix PTRACE > > > frames for XSAVES"), but it doesn't make sense to backport that whole > > > commit.] > > > > [...] > > > > Why doesn't it make sense to backport that?  It seems less important > > than this fix, but it fixes a userspace-visible regression. > > > > It seems that commit was part of a series of commits that fixed XSAVES support > and then re-enabled it.  Before then the XSAVES support was actually disabled; > see commit e88221c50cad ("x86/fpu: Disable XSAVES* support for now").  So commit > 91c3dba7dbc1 didn't fix a regression, as the code was already disabled. I missed that. Thanks. Ben. -- Ben Hutchings Software Developer, Codethink Ltd.