by amluto · 8y ago · 0 comments
Kind of. Linux, like every x86 kernel, puts some kernel memory in the userspace page tables. But it’s marked with a bit saying “no userspace access”. Meltdown-affected CPUs don’t do a very good job of respecting that bit.
> ...in order to reduce the overhead of context switches.
It’s done because it’s required. When a system call happens, for example, the CPU starts executing kernel code. That code must be mapped in memory.