Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Mon, Dec 11, 2017 at 5:39 AM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> The kernel is very erratic as to which pagetables have _PAGE_USER > >> set. The vsyscall page gets lucky: it seems that

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Mon, Dec 11, 2017 at 5:39 AM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> The kernel is very erratic as to which pagetables have _PAGE_USER > >> set. The vsyscall page gets lucky: it seems that all of the > >> relevant pagetables are among the

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Andy Lutomirski
On Mon, Dec 11, 2017 at 5:39 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> The kernel is very erratic as to which pagetables have _PAGE_USER >> set. The vsyscall page gets lucky: it seems that all of the >> relevant pagetables are among the

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Andy Lutomirski
On Mon, Dec 11, 2017 at 5:39 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> The kernel is very erratic as to which pagetables have _PAGE_USER >> set. The vsyscall page gets lucky: it seems that all of the >> relevant pagetables are among the apparently arbitrary ones that set >>

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > The kernel is very erratic as to which pagetables have _PAGE_USER > set. The vsyscall page gets lucky: it seems that all of the > relevant pagetables are among the apparently arbitrary ones that set > _PAGE_USER. Rather than relying on chance, just

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > The kernel is very erratic as to which pagetables have _PAGE_USER > set. The vsyscall page gets lucky: it seems that all of the > relevant pagetables are among the apparently arbitrary ones that set > _PAGE_USER. Rather than relying on chance, just explicitly set >

[PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-10 Thread Andy Lutomirski
The kernel is very erratic as to which pagetables have _PAGE_USER set. The vsyscall page gets lucky: it seems that all of the relevant pagetables are among the apparently arbitrary ones that set _PAGE_USER. Rather than relying on chance, just explicitly set _PAGE_USER. This will let us clean up

[PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-10 Thread Andy Lutomirski
The kernel is very erratic as to which pagetables have _PAGE_USER set. The vsyscall page gets lucky: it seems that all of the relevant pagetables are among the apparently arbitrary ones that set _PAGE_USER. Rather than relying on chance, just explicitly set _PAGE_USER. This will let us clean up