From owner-freebsd-hackers@freebsd.org Wed Nov 1 09:26:26 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C740E5150C for ; Wed, 1 Nov 2017 09:26:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7AE664910 for ; Wed, 1 Nov 2017 09:26:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id vA19QKFL053725 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 1 Nov 2017 11:26:20 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua vA19QKFL053725 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id vA19QJuT053724; Wed, 1 Nov 2017 11:26:19 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 1 Nov 2017 11:26:19 +0200 From: Konstantin Belousov To: Andreas Longwitz Cc: freebsd-hackers@freebsd.org Subject: Re: double fault on 10.3-Stable i386 during installworld Message-ID: <20171101092619.GJ2566@kib.kiev.ua> References: <59D11664.1060206@incore.de> <20171001180943.GO95911@kib.kiev.ua> <59F910C5.8020709@incore.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59F910C5.8020709@incore.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2017 09:26:26 -0000 On Wed, Nov 01, 2017 at 01:09:41AM +0100, Andreas Longwitz wrote: > On the stack we have > > 0xe437faa0: 0x00000000 R7:0xc0bc051c 0x00000020 0x00010007 > > so there is an exception on the instruction "movl PCB_CR3(%edx),%eax" > in function cpu_switch(). The next stack entries indicates a lot of page > faults, but the "double fault" happens not until the page boundary at > 0xe437f000 is reached. I do not really understand this, but it seems to > me that the thread Can you try to recover the %ecx, %edx values for the faulted frame ? Note that %ecx is loaded from the on-stack argument. Do you have latest CPU microcode loaded ? Your machine is very old, I believe this is P4 class processor, am I right ? Sure if pcb access faults, the system is in very broken state and since an attempt to handle the fault causes a new fault for pcb access, it recurses and dies due to the stack overflow.