From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751097AbdKYJjy (ORCPT ); Sat, 25 Nov 2017 04:39:54 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:34349 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbdKYJjx (ORCPT ); Sat, 25 Nov 2017 04:39:53 -0500 X-Google-Smtp-Source: AGs4zMb6mB6FNDZxAA5uSN9sZFKLKSJYlRXRAfdL/dKvEZHhDvpSbr9flEvjKjpaVhg6iGMuvfrIug== Date: Sat, 25 Nov 2017 10:39:49 +0100 From: Ingo Molnar To: Andy Lutomirski , Dave Hansen , Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Thomas Gleixner , "H . Peter Anvin" , Peter Zijlstra , Borislav Petkov , Linus Torvalds Subject: Re: [crash] PANIC: double fault, error_code: 0x0 Message-ID: <20171125093949.qbnibvj3nej5vidz@gmail.com> References: <20171124172411.19476-1-mingo@kernel.org> <20171124202237.oytdkqq25s3ak2ul@gmail.com> <20171124220934.q7ovq4yzaihevqls@gmail.com> <464B14E7-EC38-4A5A-8BF6-B086F437C6D1@amacapital.net> <20171124225311.zpbgsejobpzxm7tb@gmail.com> <20171125092113.p2shs3hjy6q2mip2@gmail.com> <20171125093243.4gmkelmyb4mnhvos@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171125093243.4gmkelmyb4mnhvos@gmail.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 * Ingo Molnar wrote: > > diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S > > index 4ac952080869..ea992ca4e74f 100644 > > --- a/arch/x86/entry/entry_64.S > > +++ b/arch/x86/entry/entry_64.S > > @@ -547,6 +547,8 @@ END(irq_entries_start) > > ud2 > > .Lokay_\@: > > addq $8, %rsp > > +#else > > + .rep 64; nop; .endr > > Also note that turning off CONFIG_UNWINDER_ORC also solves the crash. I did that > in an attempt to get a different backtrace. > > So it's either unwinder related, or seemingly minor changes to code > alignment/placement will make the bug go away. Ok, I think the Orc unwinder is innocent: I just forced a build with frame pointers but with ORC debuginfo and unwinder, and that is booting fine too. So it's the specific code size and alignment present in the config I sent that is triggering the bug. Fudging that alignment/sizing with the workaround patch above makes the crash go away. Thanks, Ingo