[PATCH 1/1] KVM: arm64: Make nVHE ASLR conditional on nokaslr

Qixiang Xu qixiang.xu at outlook.com
Fri Sep 6 00:19:07 PDT 2024


Marc,

Thanks for your reply. 

> This is a change in behaviour that would leave the 2 implementations
> affected by Spectre-v3a unmitigated and leaking information to
> *guests*, while they would have been safe until this change. Is this
> what we really want to do?

The reason for adding this is to make debugging nvhe hyp code easier. 
Otherwise, we would need to calculate the offset every time.
Do you have any better suggestions for the debugging?


> This is also not disabling the whole thing, since we still do the
> indirect vector dance.

I'm not sure if my understanding is correct, but based on 
the hyp_map_vectors function, the address of the indirect vector
is only related to __io_map_base and is not random.


Thanks. 
Qixiang Xu


More information about the linux-arm-kernel mailing list