Linus Torvalds writes: (Summary) Most notably there are the
cacheability things where we've had machine check exceptions when the
same page is mapped non-cachable in user space and cacheable in kernel
space, which ends up causing all that pain we have in
arch/x86/mm/pageattr.c.
arch/x86/mm/pageattr.c.
I very much think you limit the pages that get mapped in the shadow page tables to the point where this shouldn't be an issue, but at the same time, I very much do want people to be aware of it and this be commented very clearly in the code.
commented very clearly in the code.
Honestly, the code looks like it is designed to, and can, map arbitrary physical pages at arbitrary virtual addresses.
arch/x86/mm/pageattr.c.
I very much think you limit the pages that get mapped in the shadow page tables to the point where this shouldn't be an issue, but at the same time, I very much do want people to be aware of it and this be commented very clearly in the code.
commented very clearly in the code.
Honestly, the code looks like it is designed to, and can, map arbitrary physical pages at arbitrary virtual addresses.