Re: [PATCH 7/7] x86/entry/64: extend register clearing on syscall entry to lower registers

2018-03-30 Thread Ingo Molnar
* Dominik Brodowski wrote: > .endif > pushq \rdx/* pt_regs->dx */ > + xorl%edx, %edx /* nosepc dx */ > pushq %rcx/* pt_regs->cx */ > + xorl%ecx, %ecx /* nosepc cx */ > pushq \rax

Re: [PATCH 7/7] x86/entry/64: extend register clearing on syscall entry to lower registers

2018-03-30 Thread Ingo Molnar
* Dominik Brodowski wrote: > .endif > pushq \rdx/* pt_regs->dx */ > + xorl%edx, %edx /* nosepc dx */ > pushq %rcx/* pt_regs->cx */ > + xorl%ecx, %ecx /* nosepc cx */ > pushq \rax/* pt_regs->ax */ >

[PATCH 7/7] x86/entry/64: extend register clearing on syscall entry to lower registers

2018-03-30 Thread Dominik Brodowski
To reduce the chance that random user space content leaks down the call chain in registers, also clear lower registers on syscall entry: For 64bit syscalls, extend the register clearing in PUSH_AND_CLEAR_REGS to %dx and %cx. This should not hurt at all, also on the other callers of that macro. We

[PATCH 7/7] x86/entry/64: extend register clearing on syscall entry to lower registers

2018-03-30 Thread Dominik Brodowski
To reduce the chance that random user space content leaks down the call chain in registers, also clear lower registers on syscall entry: For 64bit syscalls, extend the register clearing in PUSH_AND_CLEAR_REGS to %dx and %cx. This should not hurt at all, also on the other callers of that macro. We