From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 19:33:20 2015 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1DD6BE65 for ; Wed, 28 Jan 2015 19:33:20 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 80DD8F1 for ; Wed, 28 Jan 2015 19:33:18 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t0SJXF9k022963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 28 Jan 2015 22:33:15 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t0SJXFo3022962; Wed, 28 Jan 2015 22:33:15 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 28 Jan 2015 22:33:15 +0300 From: Gleb Smirnoff To: Konstantin Belousov Subject: Re: panic in softdep_slowdown() Message-ID: <20150128193315.GC15484@glebius.int.ru> References: <20150127203103.GZ15484@glebius.int.ru> <20150128104842.GL42409@kib.kiev.ua> <20150128182230.GB15484@glebius.int.ru> <20150128190441.GO42409@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150128190441.GO42409@kib.kiev.ua> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 19:33:20 -0000 On Wed, Jan 28, 2015 at 09:04:42PM +0200, Konstantin Belousov wrote: K> > I can't see where integer divide fault can happen with stat_flush_threads=1 :( K> K> Look at the exact asm instruction which faulted, also look at the registers K> content. K> K> It might be hypervisor bug, after all. Yes, for me it looks like it. %edx should be one as well as -0x44(%rbp). 0xffffffff80895d43 : mov -0x20(%rbp),%ecx 0xffffffff80895d46 : mov %ecx,%edx 0xffffffff80895d48 : shr $0x1f,%edx 0xffffffff80895d4b : add %edx,%ecx 0xffffffff80895d4d : sar %ecx 0xffffffff80895d4f : mov 0xffffffff80ee24c8,%edx 0xffffffff80895d56 : mov %rax,-0x40(%rbp) 0xffffffff80895d5a : mov %ecx,%eax 0xffffffff80895d5c : mov %edx,-0x44(%rbp) 0xffffffff80895d5f : cltd 0xffffffff80895d60 : mov -0x44(%rbp),%ecx 0xffffffff80895d63 : idiv %ecx (kgdb) p &stat_flush_threads $5 = (int *) 0xffffffff80ee24c8 (kgdb) info registers rax 0x12b86 76678 rbx 0x4 4 rcx 0x0 0 rdx 0x0 0 rsi 0x3e8 1000 rdi 0x99 153 rbp 0xfffffe001eb5f2b0 0xfffffe001eb5f2b0 ... (kgdb) p *(int *)($rbp - 0x44) $4 = 0 (kgdb) p *(int *)($rbp - 0x40) $8 = 0 (kgdb) p &max_softdeps_hard $11 = (int *) 0xfffffe001eb5f290 (kgdb) p (int *)($rbp - 0x20) $12 = (int *) 0xfffffe001eb5f290 (kgdb) p max_softdeps_hard $10 = 153357 -- Totus tuus, Glebius.