Re: [PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-09 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Apr 3, 2018 at 3:39 PM, Andy Lutomirski wrote: > > For non-paranoid entries, idtentry knows how to switch from the > > kernel stack to the user stack, as does error_entry. This results > > in pointless duplication and code

Re: [PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-09 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Apr 3, 2018 at 3:39 PM, Andy Lutomirski wrote: > > For non-paranoid entries, idtentry knows how to switch from the > > kernel stack to the user stack, as does error_entry. This results > > in pointless duplication and code bloat. Make idtentry stop > >

Re: [PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-09 Thread Andy Lutomirski
On Tue, Apr 3, 2018 at 3:39 PM, Andy Lutomirski wrote: > For non-paranoid entries, idtentry knows how to switch from the > kernel stack to the user stack, as does error_entry. This results > in pointless duplication and code bloat. Make idtentry stop > thinking about stacks for

Re: [PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-09 Thread Andy Lutomirski
On Tue, Apr 3, 2018 at 3:39 PM, Andy Lutomirski wrote: > For non-paranoid entries, idtentry knows how to switch from the > kernel stack to the user stack, as does error_entry. This results > in pointless duplication and code bloat. Make idtentry stop > thinking about stacks for non-paranoid

[PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-03 Thread Andy Lutomirski
For non-paranoid entries, idtentry knows how to switch from the kernel stack to the user stack, as does error_entry. This results in pointless duplication and code bloat. Make idtentry stop thinking about stacks for non-paranoid entries. This reduces text size by 5377 bytes. This goes back to

[PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-03 Thread Andy Lutomirski
For non-paranoid entries, idtentry knows how to switch from the kernel stack to the user stack, as does error_entry. This results in pointless duplication and code bloat. Make idtentry stop thinking about stacks for non-paranoid entries. This reduces text size by 5377 bytes. This goes back to