Received: by 10.192.165.156 with SMTP id m28csp268006imm; Tue, 17 Apr 2018 09:50:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ik5qD05Jw1+zu3kdS7tnPpVZRsRaessoGOoFVx0N8BBhHGhQS/RA0Eymn6guqxMOnbvA4 X-Received: by 10.99.128.73 with SMTP id j70mr2438482pgd.12.1523983801177; Tue, 17 Apr 2018 09:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523983801; cv=none; d=google.com; s=arc-20160816; b=XJiDiFfVV3Bztp0aGoKVop3GFvkTZmh5/TikM86lrquie3wgiMeyxXEhc5/v3eCs/+ s1q+4EbRoDYN5Z6y8lPInC7GdgLRdH4JTlTjrZt/NLfrhsGkLYAYTMLbVeyQNHsS7qYC 56ypHZZB8ipDRwZ3WdOQL0us+C2Qld535xGbLdJK0xdWVEJhVJnjtHl88GMBtqGdacUi BFQ8uiDKGegCbOCq1pMfGh6w92wIQzBRWZggqYMGLVITQUQeGZ93cD0y5T7xhKyY8C0p YX3TtEjqX/aYz65nl+23r/Xs4TfyOmWsISqEt0e+oiT8k12RHmkb7/ZZfaOPw2b1UlQf oqFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=3bWAYicPK/LmgdhP3R7bhRyyutOwm8cF4SlEVPM6ck4=; b=IL+guXfeEbFo7KZTPaL1ACxYndnY36c6bRM1JLnh25uDHUdxhMpwml3FDdXTwwDn7z Bv7TjjLo7h98uGMbD86b1knZr8z3A2N0qPRyNwVJ0OoWkCUixUmPddcDKE7NDgQGuztb LGEs4PdRt0k57CtWMEezuBwax23l6lIP5T025vgDJOl+TBr1I2hpZZZb62NMjcqRmQoy R+UCdeTAH9ngaInnM7Dar+IPuzwu17plTXaQlDceiKM2lV0vkN8S59peYSd+TW0n9ZqR P6coeVJW54nJBfhpIYrjy+tbjkKQpjVXGTe5RI0TvMhLJtJ4yaK7e+f0dQrdtbMCXwmQ tb7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si11342233pgv.246.2018.04.17.09.49.46; Tue, 17 Apr 2018 09:50:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754751AbeDQQsZ (ORCPT + 99 others); Tue, 17 Apr 2018 12:48:25 -0400 Received: from mga04.intel.com ([192.55.52.120]:11680 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753592AbeDQQsX (ORCPT ); Tue, 17 Apr 2018 12:48:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Apr 2018 09:48:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,464,1517904000"; d="scan'208";a="32662371" Received: from dalockle-mobl.amr.corp.intel.com (HELO [10.252.141.130]) ([10.252.141.130]) by fmsmga007.fm.intel.com with ESMTP; 17 Apr 2018 09:48:08 -0700 Subject: Re: 4.17.0-rc1 doesn't boot. To: Mike Galbraith , Borislav Petkov , =?UTF-8?Q?J=c3=b6rg_Otte?= References: <20180417081458.GA2894@pd.tnic> <20180417142715.GL18640@pd.tnic> <20180417153101.GB2894@pd.tnic> <1523980839.7093.1.camel@gmx.de> Cc: Linus Torvalds , Thomas Gleixner , Linux Kernel Mailing List , Aaro Koskinen From: Dave Hansen Message-ID: <017d65c5-748b-eeae-a020-fa4473f4507c@linux.intel.com> Date: Tue, 17 Apr 2018 09:48:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523980839.7093.1.camel@gmx.de> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/17/2018 09:00 AM, Mike Galbraith wrote: > On Tue, 2018-04-17 at 17:31 +0200, Borislav Petkov wrote: >> On Tue, Apr 17, 2018 at 05:21:30PM +0200, J?rg Otte wrote: >>> finished bisection. >>> 39114b7a743e6759bab4d96b7d9651d44d17e3f9 is the first bad commit >>> (x86/pti: Never implicitly clear _PAGE_GLOBAL for kernel image). >> >> Looks like you're not the only one: >> >> http://marc.info/?i=20180417150130.GA11166@ak-laptop.emea.nsn-net.net > > I'm hitting this too, but only with PREEMPT_RT. I put a bandaid on it > (tell pti_kernel_image_global_ok() to return true for PREEMPT_RT) while > waiting to see if it was really really as non-rt as it appeared to be. It looks like pti_init() is too early for change_page_attr()/set_memory_nonglobal() because they look for irqs_off(). This *should* be OK in practice because we only need to flush the boot CPU, not the others. That's what ends up causing the BUG_ON(). But, there's apparently something else going on too because things don't boot even with that BUG_ON() backed out. The good news is that its easy to reproduce.