Re: [patch 41/60] x86/mm/kpti: Share entry text PMD

2017-12-07 Thread Borislav Petkov
On Mon, Dec 04, 2017 at 03:07:47PM +0100, Thomas Gleixner wrote: > From: Thomas Gleixner > > Share the entry text PMD of the kernel mapping with the user space > mapping. If large pages are enabled this is a single PMD entry and at the > point where it is copied into the user

Re: [patch 41/60] x86/mm/kpti: Share entry text PMD

2017-12-07 Thread Borislav Petkov
On Mon, Dec 04, 2017 at 03:07:47PM +0100, Thomas Gleixner wrote: > From: Thomas Gleixner > > Share the entry text PMD of the kernel mapping with the user space > mapping. If large pages are enabled this is a single PMD entry and at the > point where it is copied into the user page table the RW

[patch 41/60] x86/mm/kpti: Share entry text PMD

2017-12-04 Thread Thomas Gleixner
From: Thomas Gleixner Share the entry text PMD of the kernel mapping with the user space mapping. If large pages are enabled this is a single PMD entry and at the point where it is copied into the user page table the RW bit has not been cleared yet. Clear it right away so the

[patch 41/60] x86/mm/kpti: Share entry text PMD

2017-12-04 Thread Thomas Gleixner
From: Thomas Gleixner Share the entry text PMD of the kernel mapping with the user space mapping. If large pages are enabled this is a single PMD entry and at the point where it is copied into the user page table the RW bit has not been cleared yet. Clear it right away so the user space visible