From: Matt Fleming Subject: Re: [PATCH v2] x86/mm: warn on W+x mappings Date: Wed, 21 Oct 2015 21:45:22 +0100 Message-ID: <20151021204522.GB20338@codeblueprint.co.uk> References: <20151012144928.GF2579@codeblueprint.co.uk> <20151014151807.GA27013@gmail.com> <20151014210257.GF2782@codeblueprint.co.uk> <20151021094242.GA12155@gmail.com> <20151021124924.GA19262@gmail.com> <20151021132430.GD3575@pd.tnic> <20151021143651.GE3575@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski Cc: Borislav Petkov , Ard Biesheuvel , Ingo Molnar , Stephen Smalley , "x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Kees Cook , Thomas Gleixner , "H. Peter Anvin" , Peter Zijlstra , Andy Lutomirski , Denys Vlasenko , Brian Gerst , "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-efi@vger.kernel.org On Wed, 21 Oct, at 11:46:53AM, Andy Lutomirski wrote: > > If the UEFI stuff is mapped in its own PGD entry, we could just RO > that entire PGD entry everywhere except the UEFI pgd (and make sure to > clear G so that the TLB entries get zapped). What would be the benefit of making it RO as opposed to not having it mapped at all? The mappings only exist in the trampoline_pgd right now for x86 which minimizes the potentially vulnerable code paths to the EFI runtime calls and the suspend/resume code.