|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 1/2] xen/arm: entry: Place a speculation barrier following an ret instruction
Hi, On 16/06/2020 22:24, Stefano Stabellini wrote: From my understanding, the compiler will add a speculation barrier preventively after each 'ret' when the mitigation are turned on.So it feels to me we want to follow the same approach.On Tue, 16 Jun 2020, Julien Grall wrote:From: Julien Grall <jgrall@xxxxxxxxxx> Some CPUs can speculate past a RET instruction and potentially perform speculative accesses to memory before processing the return. There is no known gadget available after the RET instruction today. However some of the registers (such as in check_pending_guest_serror()) may contain a value provided the guest. Obviously, we can avoid them but I would like to have a justification for not adding them (nothing is overkilled against speculation ;)). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |