From owner-svn-src-all@FreeBSD.ORG Mon Nov 24 18:06:47 2014 Return-Path: Delivered-To: svn-src-all@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 B7E106BA; Mon, 24 Nov 2014 18:06:47 +0000 (UTC) Received: from bsdpad.com (xc1.bsdpad.com [195.154.136.64]) (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 C620296B; Mon, 24 Nov 2014 18:06:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bsdpad.com) by bsdpad.com with smtp (Exim 4.83 (FreeBSD)) (envelope-from ) id 1XsxzQ-000CSc-O6; Mon, 24 Nov 2014 18:03:56 +0000 Received: by bsdpad.com (nbSMTP-1.00) for uid 1001 br@bsdpad.com; Mon, 24 Nov 2014 18:03:56 +0000 (GMT) Date: Mon, 24 Nov 2014 18:03:56 +0000 From: Ruslan Bukin To: Konstantin Belousov Subject: Re: svn commit: r274914 - in head/sys: kern sys ufs/ffs vm Message-ID: <20141124180356.GA47782@bsdpad.com> References: <201411231201.sANC1rW1025589@svn.freebsd.org> <20141124110537.GA41282@bsdpad.com> <20141124173733.GI17068@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20141124173733.GI17068@kib.kiev.ua> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Gleb Smirnoff , src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2014 18:06:47 -0000 On Mon, Nov 24, 2014 at 07:37:33PM +0200, Konstantin Belousov wrote: > On Mon, Nov 24, 2014 at 11:05:37AM +0000, Ruslan Bukin wrote: > > Hi, Gleb, > > > > I get some problems with it: I'm working on block device emulation > > using virtio(4) in heterogeneous environment (FreeBSD/ARM frontend > > provide block to FreeBSD/MIPS64 soft core). On a MIPS side I now > > permanently receive panic below > > > > Any idea ? > > > > [...] > > crypto: cryptosoft0 registers alg 22 flags 0 maxoplen 0 > > crypto: cryptosoft0 registers alg 21 flags 0 maxoplen 0 > > crypto: cryptosoft0 registers alg 17 flags 0 maxoplen 0 > > Device configuration finished. > > Timecounters tick every 5.000 msec > > crypto: > > tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096 > > random: unblocking device. > > GEOM: new disk vtbd0 > > MAP: No valid partition found at vtbd0 > > Trying to mount root from ufs:vtbd0 []... > > WARNING: / was not properly dismounted > > warning: no time-of-day clock registered, system time will not be set accurately > > start_init: trying /sbin/init > > mtlctl: open mtl_reg0: No such file or directory > > Entropy harvesting:sysctl: unknown oid 'kern.ranndom.sys.harvest.interrupt': No such file or directory > > interruptssysctl: unknown oid 'kern.random.sys.harvest.ethernet': No such file or directory > > ethernetpanic: Bad link elm 0x980000000f9a0090 next->prev != elm > > KDB: enter: panic > > [ thread pid 31 tid 100028 ] > > Stopped at kdb_enter+0x8c: lui at,0x0 > > db> > > I this on stock kernel or on kernel with your modifications ? Stock one. I also checked with no virtio but MDROOT - same problems. > What is the backtrace ? [...] warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init panic: vm_page_insert_after: msucc doesn't succeed pindex KDB: enter: panic [ thread pid 14 tid 100026 ] Stopped at kdb_enter+0x8c: lui at,0x0 db> bt Tracing pid 14 tid 100026 td 0x98000000008854d0 db_trace_thread+40 (?,?,?,?) ra ffffffff80117654 sp c0000000056b10f0 sz 16 ffffffff801174c8+18c (0,?,ffffffff,?) ra ffffffff80116730 sp c0000000056b1100 sz 48 ffffffff801162a8+488 (?,?,?,?) ra ffffffff801169fc sp c0000000056b1130 sz 192 db_command_loop+f4 (?,?,?,?) ra ffffffff8011a570 sp c0000000056b11f0 sz 16 ffffffff8011a3c8+1a8 (?,?,?,?) ra ffffffff8027c678 sp c0000000056b1200 sz 816 kdb_trap+188 (?,?,?,?) ra ffffffff804ab424 sp c0000000056b1530 sz 64 trap+1114 (?,?,?,?) ra ffffffff804969bc sp c0000000056b1570 sz 288 MipsKernGenException+154 (0,4,804f5340,12f) ra ffffffff8027c214 sp c0000000056b1690 sz 368 kdb_enter+8c (?,?,?,?) ra ffffffff8022e808 sp c0000000056b1800 sz 16 ffffffff8022e658+1b0 (?,?,?,?) ra ffffffff8022e938 sp c0000000056b1810 sz 32 kassert_panic+c8 (?,4,851600,3d7) ra ffffffff80476900 sp c0000000056b1830 sz 96 ffffffff804767e0+120 (?,?,?,?) ra ffffffff8047a2a8 sp c0000000056b1890 sz 64 vm_page_alloc+7f8 (?,?,?,?) ra ffffffff8045e8a4 sp c0000000056b18d0 sz 80 ffffffff8045dd80+b24 (?,?,?,?) ra 0 sp c0000000056b1920 sz 272 pid 14 db> [...] warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init panic: Bad list head 0x9800000000851c30 first->prev != head KDB: enter: panic [ thread pid 14 tid 100026 ] Stopped at kdb_enter+0x8c: lui at,0x0 db> bt Tracing pid 14 tid 100026 td 0x98000000008854d0 db_trace_thread+40 (?,?,?,?) ra ffffffff80117654 sp c0000000056b10d0 sz 16 ffffffff801174c8+18c (0,?,ffffffff,?) ra ffffffff80116730 sp c0000000056b10e0 sz 48 ffffffff801162a8+488 (?,?,?,?) ra ffffffff801169fc sp c0000000056b1110 sz 192 db_command_loop+f4 (?,?,?,?) ra ffffffff8011a570 sp c0000000056b11d0 sz 16 ffffffff8011a3c8+1a8 (?,?,?,?) ra ffffffff8027c678 sp c0000000056b11e0 sz 816 kdb_trap+188 (?,?,?,?) ra ffffffff804ab424 sp c0000000056b1510 sz 64 trap+1114 (?,?,?,?) ra ffffffff804969bc sp c0000000056b1550 sz 288 MipsKernGenException+154 (0,4,804f5340,12f) ra ffffffff8027c214 sp c0000000056b1670 sz 368 kdb_enter+8c (?,?,?,?) ra ffffffff8022e808 sp c0000000056b17e0 sz 16 ffffffff8022e658+1b0 (?,?,?,?) ra ffffffff8022e870 sp c0000000056b17f0 sz 32 panic+30 (?,851c30,8051e990,8051e990) ra ffffffff80470ee8 sp c0000000056b1810 sz 96 vm_object_shadow+178 (?,?,?,?) ra ffffffff804694c8 sp c0000000056b1870 sz 48 vm_map_lookup+2f0 (56b1a68,ffffe000,?,?) ra ffffffff8045de28 sp c0000000056b18a0 sz 128 ffffffff8045dd80+a8 (?,?,?,?) ra 0 sp c0000000056b1920 sz 272 pid 14 db> > What is the file/line where the panic occured ? > Can mips dump vmcore ? not sure yet Ruslan