From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870AbdJGCVR (ORCPT ); Fri, 6 Oct 2017 22:21:17 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:51796 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155AbdJGCVQ (ORCPT ); Fri, 6 Oct 2017 22:21:16 -0400 X-Google-Smtp-Source: AOwi7QC91i7RJLIJvvYcq15q/LD5s7v883bw89buBdVgzPtGXmktbjk4S1VlK0hpFv+IBtFEldKnag== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [BUG] GPF on reboot of box From: Nadav Amit In-Reply-To: <20171006213956.0b33cf61@gandalf.local.home> Date: Fri, 6 Oct 2017 19:21:26 -0700 Cc: LKML , Andy Lutomirski , Boris Ostrovsky , Thomas Gleixner , Ingo Molnar , Linus Torvalds Message-Id: <90068838-FBC3-4492-9D50-293509574617@gmail.com> References: <20171006213956.0b33cf61@gandalf.local.home> To: Steven Rostedt X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v972LN20014249 Steven Rostedt wrote: > Starting with v4.14-rc1 my box crashes during a reboot. All I get is > the following: > > [ 250.615793] sd 0:0:0:0: [sda] Synchronizing SCSI cache > [ 250.635639] reboot: Restarting system > [ 250.639671] reboot: machine restart > [ 250.643842] general protection fault: 0000 [#1] PREEMPT SMP KASAN > > Then nothing. No reboot, it just hangs there. > > I bisected it down to this commit: > > 660da7c9228f ("x86/mm: Enable CR4.PCIDE on supported systems") > > If I comment out the setting of X86_CR4_PCIDE in that commit, it boots > fine. But... > > I noticed that commit c7ad5ad29 ("x86/mm/64: Initialize CR4.PCIDE > early") moved the problem code from arch/x86/kernel/cpu/common.c to > arch/x86/mm/init.c > > If I comment it out in v4.14-rc1, it crashes on boot up. > > It appears that my box doesn't like having X86_CR4_PCIDE set. it causes > reboot to fail. But it also appears that setting that is required for > some other code to work. IIRC, there was a problem in rc1, which should be resolved in newer rcs. If you need to run rc1, you can try to use the kernel parameter “nopcid". Nadav