Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933457AbdCUUZ2 (ORCPT ); Tue, 21 Mar 2017 16:25:28 -0400 Received: from mail-io0-f171.google.com ([209.85.223.171]:36296 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933300AbdCUUZ0 (ORCPT ); Tue, 21 Mar 2017 16:25:26 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170321045713.GE23490@yexl-desktop> From: Thomas Garnier Date: Tue, 21 Mar 2017 13:25:24 -0700 Message-ID: Subject: Re: [lkp-robot] [x86] 69218e4799: BUG:kernel_hang_in_boot_stage To: Linus Torvalds Cc: kernel test robot , Ingo Molnar , Alexander Potapenko , Andrew Morton , Andrey Ryabinin , Andy Lutomirski , Ard Biesheuvel , Boris Ostrovsky , Borislav Petkov , Chris Wilson , Christian Borntraeger , Dmitry Vyukov , Frederic Weisbecker , Jiri Kosina , Joerg Roedel , Jonathan Corbet , Josh Poimboeuf , Juergen Gross , Kees Cook , Len Brown , Lorenzo Stoakes , "Luis R . Rodriguez" , Matt Fleming , Michal Hocko , Paolo Bonzini , Paul Gortmaker , Pavel Machek , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "Rafael J . Wysocki" , Rusty Russell , Stanislaw Gruszka , Thomas Gleixner , Tim Chen , Vitaly Kuznetsov , zijun_hu , LKML , Stephen Rothwell , LKP Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1219 Lines: 43 The issue seems to be related to exceptions happening in close pages to the fixmap GDT remapping. The original page fault happen in do_test_wp_bit which set a fixmap entry to test WP flag. If I grow the number of processors supported increasing the distance between the remapped GDT page and the WP test page, the error does not reproduce. I am still looking at the exact distance between repro and no-repro as well as the exact root cause. On Tue, Mar 21, 2017 at 12:23 PM, Thomas Garnier wrote: > On Tue, Mar 21, 2017 at 12:20 PM, Linus Torvalds > wrote: >> >> On Tue, Mar 21, 2017 at 11:16 AM, Thomas Garnier wrote: >> > This error happens even with Andy TLS fix on 32-bit (GDT is on fixmap >> > but not readonly). I am looking into it. >> > >> > KVM internal error. Suberror: 3 >> > extra data[0]: 80000b0e >> > extra data[1]: 31 >> >> If I read that right, it's extra data[1] 0x31, which EXIT_REASON_EPT_MISCONFIG. >> >> I'm not seeing how the A bit in a GDT entry could have anything to do >> with it. I'm assuming it happens even without Andy's patch? > > Correct. > >> >> Linus > > > > > -- > Thomas -- Thomas