From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] x86/mm: fix use-after-free of ldt_struct To: Eric Biggers , x86@kernel.org References: <20170824175029.76040-1-ebiggers3@gmail.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Eric Biggers , Andrew Morton , Andy Lutomirski , Borislav Petkov , Brian Gerst , Christoph Hellwig , Denys Vlasenko , Dmitry Vyukov , "H . Peter Anvin" , Ingo Molnar , Linus Torvalds , Michal Hocko , Peter Zijlstra , Rik van Riel , Tetsuo Handa , Thomas Gleixner , stable@vger.kernel.org From: Dave Hansen Message-ID: <43bcad51-b210-c1fa-c729-471fe008ba61@linux.intel.com> Date: Thu, 24 Aug 2017 10:59:18 -0700 MIME-Version: 1.0 In-Reply-To: <20170824175029.76040-1-ebiggers3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: On 08/24/2017 10:50 AM, Eric Biggers wrote: > --- a/arch/x86/include/asm/mmu_context.h > +++ b/arch/x86/include/asm/mmu_context.h > @@ -148,9 +148,7 @@ static inline int init_new_context(struct task_struct *tsk, > mm->context.execute_only_pkey = -1; > } > #endif > - init_new_context_ldt(tsk, mm); > - > - return 0; > + return init_new_context_ldt(tsk, mm); > } Sheesh. That was silly. Thanks for finding and fixing this! Feel free to add my ack on it. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org