Re: [RFC PATCH] x86: Make sure verify_cpu has a good stack
From: Borislav Petkov
Date: Wed Mar 02 2016 - 13:16:12 EST
On Wed, Mar 02, 2016 at 09:53:28AM -0800, H. Peter Anvin wrote:
> Please explain why we can't use rip-relative addressing in some form...
We *can* do almost what Brian suggested:
movq stack_start(%rip), %rsp
subq $__START_KERNEL_map, %rsp
But we still have to subtract __START_KERNEL_map.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.