Re: [PATCH v2 03/12] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-04 Thread David Woodhouse
On Wed, 2018-01-03 at 18:00 -0800, Andi Kleen wrote: > @@ -269,8 +270,9 @@ entry_SYSCALL_64_fastpath: > * This call instruction is handled specially in stub_ptregs_64. > * It might end up jumping to the slow path.  If it jumps, RAX > * and all argument registers are

Re: [PATCH v2 03/12] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-04 Thread David Woodhouse
On Wed, 2018-01-03 at 18:00 -0800, Andi Kleen wrote: > @@ -269,8 +270,9 @@ entry_SYSCALL_64_fastpath: > * This call instruction is handled specially in stub_ptregs_64. > * It might end up jumping to the slow path.  If it jumps, RAX > * and all argument registers are

[PATCH v2 03/12] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-03 Thread Andi Kleen
From: Andi Kleen Convert all indirect jumps in core 32/64bit entry assembler code to use non speculative sequences. Based on code from David Woodhouse and Tim Chen Signed-off-by: Andi Kleen --- arch/x86/entry/entry_32.S | 5 +++--

[PATCH v2 03/12] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-03 Thread Andi Kleen
From: Andi Kleen Convert all indirect jumps in core 32/64bit entry assembler code to use non speculative sequences. Based on code from David Woodhouse and Tim Chen Signed-off-by: Andi Kleen --- arch/x86/entry/entry_32.S | 5 +++-- arch/x86/entry/entry_64.S | 12 +++- 2 files