lkml.org 
[lkml]   [2015]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] x86_64, entry: Remove a bogus ret_from_fork optimization

* Andy Lutomirski <luto@amacapital.net> wrote:

> ret_from_fork checks TIF_IA32 to determine whether pt_regs and the
> related state make sense for ret_from_sys_call. This is entirely
> the wrong check. TS_COMPAT would make a little more sense, but
> there's really no point in keeping this optimization at all.
>
> This fixes a return to the wrong user CS if we came from int 0x80 in
> a 64-bit task.
>
> Signed-off-by: Andy Lutomirski <luto@amacapital.net>

Acked-by: Ingo Molnar <mingo@kernel.org>

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-02-25 08:41    [W:1.065 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site