From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbdLETSG (ORCPT ); Tue, 5 Dec 2017 14:18:06 -0500 Received: from mx2.suse.de ([195.135.220.15]:60333 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570AbdLETSA (ORCPT ); Tue, 5 Dec 2017 14:18:00 -0500 Date: Tue, 5 Dec 2017 20:17:50 +0100 From: Borislav Petkov To: Thomas Gleixner Cc: LKML , x86@kernel.org, Linus Torvalds , Andy Lutomirsky , Peter Zijlstra , Dave Hansen , Greg KH , keescook@google.com, hughd@google.com, Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , aliguori@amazon.com, Will Deacon , daniel.gruss@iaik.tugraz.at, Dave Hansen Subject: Re: [patch 34/60] x86/mm/kpti: Populate user PGD Message-ID: <20171205191750.46frimb4c274mphz@pd.tnic> References: <20171204140706.296109558@linutronix.de> <20171204150607.644572098@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171204150607.644572098@linutronix.de> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 04, 2017 at 03:07:40PM +0100, Thomas Gleixner wrote: > From: Dave Hansen > > Populate the PGD entries in the init user PGD which cover the kernel half > of the address space. This makes sure that the installment of the user > visible kernel mappings finds a populated PGD. > > In clone_pgd_range() copy the init user PGDs which cover the kernel half of > the address space, so a process has all the required kernel mappings > visible. > > [ tglx: Split out from the big kaiser dump ] > > Signed-off-by: Dave Hansen > Signed-off-by: Thomas Gleixner > > --- > arch/x86/include/asm/pgtable.h | 5 +++++ > arch/x86/mm/kpti.c | 41 +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 46 insertions(+) Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --