News for hackers. Stuff that matters.
Re:Reading privileged memory with a side-channel by caf on Wednesday January 03, 2018 @08:45PM (#16067306)
They test how a series of branches are predicted after returning from a hypercall, which lets them basically dump out the state of the BTB. From that, and knowledge of where the branches are in the hypervisor binary (the binaries themselves aren't really a secret, only the relocated load address is) they can figure out the load address of the hypervisor.

See the section "Reading host memory from a KVM guest / Locating the host kernel". It's terribly clever.

Re:Reading privileged memory with a side-channel by tankenmate on Thursday January 04, 2018 @04:47AM (#16069080)
But if you use AMD ASID it blocks this as memory mappings for VM guests are in a completely separate address space.

What I was wondering was for local OS user mode to local OS root / kernel mode access; i.e. user to kernel privilege escalation.

Re:Reading privileged memory with a side-channel by caf on Thursday January 04, 2018 @05:58AM (#16069361)
It isn't obvious at all how a separate address space would block that method.

What would block it is flushing the branch predictor state when switching privilege levels and/or address spaces.

Re:Reading privileged memory with a side-channel by loulan on Thursday January 04, 2018 @08:28AM (#16070167)
I've tried reading it and I still find all of this very confusing. Could you ELI5?