Re: [PATCH 1/3] x86_64, entry: Remove a bogus ret_from_fork optimization

2015-02-24 Thread Ingo Molnar
* Andy Lutomirski 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. > >

[PATCH 1/3] x86_64, entry: Remove a bogus ret_from_fork optimization

2015-02-24 Thread Andy Lutomirski
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

Re: [PATCH 1/3] x86_64, entry: Remove a bogus ret_from_fork optimization

2015-02-24 Thread Ingo Molnar
* Andy Lutomirski l...@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

[PATCH 1/3] x86_64, entry: Remove a bogus ret_from_fork optimization

2015-02-24 Thread Andy Lutomirski
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