Re: [patch V3 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-30 Thread Joerg Roedel
On Wed, Aug 28, 2019 at 11:54:55PM +0200, Thomas Gleixner wrote: > --- a/arch/x86/mm/pti.c > +++ b/arch/x86/mm/pti.c > @@ -330,13 +330,15 @@ pti_clone_pgtable(unsigned long start, u > > pud = pud_offset(p4d, addr); > if (pud_none(*pud)) { > - addr +

Re: [patch V3 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Song Liu > > pti_clone_pmds() assumes that the supplied address is either: > > - properly PUD/PMD aligned > or > - the address is actually mapped which means that independently >of the mapping level (PUD/PMD/PTE) the next higher mapping >exists. >

[patch V3 1/2] x86/mm/pti: Handle unaligned address gracefully in pti_clone_pagetable()

2019-08-28 Thread Thomas Gleixner
From: Song Liu pti_clone_pmds() assumes that the supplied address is either: - properly PUD/PMD aligned or - the address is actually mapped which means that independently of the mapping level (PUD/PMD/PTE) the next higher mapping exists. If that's not the case the unaligned address can