Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751928AbeACPsj (ORCPT + 1 other); Wed, 3 Jan 2018 10:48:39 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:46524 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbeACPsh (ORCPT ); Wed, 3 Jan 2018 10:48:37 -0500 X-Google-Smtp-Source: ACJfBotjupyNLZKSJlpueOgJ7gPz6Wh8sp5FU0zqEeJZj+nGKXEY8ezFQs3wFa6Z7mVbi85RzyEL7g== Date: Wed, 3 Jan 2018 16:48:33 +0100 From: Ingo Molnar To: Greg Kroah-Hartman Cc: Benjamin Gilbert , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org Subject: Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs Message-ID: <20180103154833.fhkbwonz6zhm26ax@gmail.com> References: <20180103084600.GA31648@trogon.sfo.coreos.systems> <20180103092016.GA23772@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180103092016.GA23772@kroah.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: * Greg Kroah-Hartman wrote: > On Wed, Jan 03, 2018 at 12:46:00AM -0800, Benjamin Gilbert wrote: > > [resending with less web] > > (adding lkml and x86 developers) > > > Hi all, > > > > In our regression tests on kernel 4.14.11, we're occasionally seeing a run > > of "bad pmd" messages during boot, followed by a "BUG: unable to handle > > kernel paging request". This happens on no more than a couple percent of > > boots, but we've seen it on AWS HVM, GCE, Oracle Cloud VMs, and local QEMU > > instances. It always happens immediately after "Loading compiled-in X.509 > > certificates". I can't reproduce it on 4.14.10, nor, so far, on 4.14.11 > > with pti=off. Here's a sample backtrace: A few other things to check: first please test the latest WIP.x86/pti branch which has a couple of fixes. In a -stable kernel tree you should be able to do: git pull --no-tags git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/pti in particular this recent fix from a couple of hours ago might make a difference: 52994c256df3: x86/pti: Make sure the user/kernel PTEs match Note that this commit: 694d99d40972: x86/cpu, x86/pti: Do not enable PTI on AMD processors disables PTI on AMD CPUs - so if you'd like to test it more broadly on all CPUs then you'll need to add "pti=on" to your boot commandline. Thanks, Ingo