lkml.org 
[lkml]   [2017]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] x86/mm: fix use-after-free of ldt_struct
Ingo,

I'm assuming I get this through the -tip tree, which is where the
original commit 39a0526fb3f7 ("x86/mm: Factor out LDT init from
context init") came from.

Linus

On Thu, Aug 24, 2017 at 10:59 AM, Dave Hansen
<dave.hansen@linux.intel.com> wrote:
> 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.

\
 
 \ /
  Last update: 2017-08-24 20:40    [W:0.060 / U:8.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site