Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752940AbeADTiT (ORCPT + 1 other); Thu, 4 Jan 2018 14:38:19 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:36531 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752463AbeADTiR (ORCPT ); Thu, 4 Jan 2018 14:38:17 -0500 X-Google-Smtp-Source: ACJfBothy8ESiQrFgR7KBi5Nt4F+lh1E7IxUoCPbZwkzMPfzUcDmY88lGcZSgG0+cR8PPkBEvJcP5g== Date: Thu, 4 Jan 2018 11:38:14 -0800 From: Benjamin Gilbert To: Thomas Gleixner Cc: Andy Lutomirski , Greg Kroah-Hartman , X86 ML , LKML , linux-mm@kvack.org, stable , Ingo Molnar , Dave Hansen , Peter Zijlstra , Thomas Garnier , Alexander Kuleshov Subject: Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs Message-ID: <20180104193814.GA26859@trogon.sfo.coreos.systems> References: <20180103084600.GA31648@trogon.sfo.coreos.systems> <20180103092016.GA23772@kroah.com> <20180104003303.GA1654@trogon.sfo.coreos.systems> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 04, 2018 at 01:28:59PM +0100, Thomas Gleixner wrote: > On Wed, 3 Jan 2018, Andy Lutomirski wrote: > > Our memory map code is utter shite. This kind of bug should not be > > possible without a giant warning at boot that something is screwed up. > > You're right it's utter shite and the KASLR folks who added this insanity > of making vaddr_end depend on a gazillion of config options and not > documenting it in mm.txt or elsewhere where it's obvious to find should > really sit back and think hard about their half baken 'security' features. > > Just look at the insanity of comment above the vaddr_end ifdef maze. > > Benjamin, can you test the patch below please? Seems to work! Thanks, --Benjamin Gilbert