From owner-freebsd-arm@FreeBSD.ORG Mon Aug 26 18:54:59 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D6A0BFD5 for ; Mon, 26 Aug 2013 18:54:59 +0000 (UTC) (envelope-from ThomasSkibo@sbcglobal.net) Received: from nm3-vm5.access.bullet.mail.bf1.yahoo.com (nm3-vm5.access.bullet.mail.bf1.yahoo.com [216.109.114.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7A5E727FA for ; Mon, 26 Aug 2013 18:54:59 +0000 (UTC) Received: from [66.196.81.157] by nm3.access.bullet.mail.bf1.yahoo.com with NNFMP; 26 Aug 2013 18:51:36 -0000 Received: from [98.139.221.55] by tm3.access.bullet.mail.bf1.yahoo.com with NNFMP; 26 Aug 2013 18:51:36 -0000 Received: from [127.0.0.1] by smtp108.sbc.mail.bf1.yahoo.com with NNFMP; 26 Aug 2013 18:51:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1377543096; bh=IqLRms5m/yTM8pwP/52Ohy359IWWVObQOcfuIGS0Fg0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=SynR7O8FcYsyWN2PnNNFf8IsrsOUvvXXElgTJsIvJ+Kj2AlIdh69UDM7Y7TTmFqmrEnqRtaGQL7uDM+UhmpITyAgYLwbLXTGo1PWqShLlZb8/zWDKiJY9m/aSDTO12WLBBwstdInS+eM4FQbs2dx5XaTCMeV0+n86QzihM1VoLU= X-Yahoo-Newman-Id: 816214.61709.bm@smtp108.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: LTLWdlQVM1l6IxxxFUsuQj2JgIyuEV.dlwBUcyGQ_O.6AbL RBfc28X7Z9vSJirCUvHXfgjtpKhIPHocqm1b.3q9JUdcji2NzDOYjFCzGITq giFD9i_lrOQj5FS23pxZDf9M7TsTfVcKm1iODwP_DPu.wjjUAZXvaQ26kj3a C934H7j2orRYP4qrcMUYAJqFxBXSJaSWOnnyrm.Tfj1PBwqyc3Ii0zemOIV4 pvmzzbW3E7B6MxEWQ5rTmaC1.ALIAPrWcvaUKSY0pmu7lqHHiLtPg1zbS5P2 XoiJUdq8DbwxbksVvZEPoD6cnDq6aMpIDy7.L3QD.k7gVIWrnI8llWMjxLH0 KeQT1qLllLBSssHjpxLSJHMH.Wwf6dZsUOMRODUGpM2F_7Z2.UTMqtq0OKbS yhWRkIhpW8p0dxZMV8EZJgcP69ybTiM7bWDDYCJRESgD0Lee2ACLApckDmTr 9V5DuJB.dQjQz98OMAU_RDI_ZDUNqp9sratuSjGY73t0zEi.GIItnu41wOJS O52VnlJ.Q8aveyxsHBEOOB9CNDqni.MX6qBGuHiHYPc7b5pXV5ij9lQ-- X-Yahoo-SMTP: tUxoRneswBA21azLM.3ybMESf0mC2bFhTbmt0VU5ervH0kqi5lo- X-Rocket-Received: from [192.168.1.9] (ThomasSkibo@71.139.173.243 with plain) by smtp108.sbc.mail.bf1.yahoo.com with SMTP; 26 Aug 2013 11:51:36 -0700 PDT Message-ID: <521BA3BF.10002@sbcglobal.net> Date: Mon, 26 Aug 2013 11:51:43 -0700 From: Thomas Skibo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: My BB-Black boot failure References: <1377262426.1111.50.camel@revolution.hippie.lan> <1377526174.1111.138.camel@revolution.hippie.lan> In-Reply-To: <1377526174.1111.138.camel@revolution.hippie.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 18:54:59 -0000 I've been experiencing this too on the Zedboard and I spent some time looking into it. In my case, arprequest() is overwriting past the end of an mbuf into the m_next field of the next one. Later, something tries to reference address 0x6401a8c0 which is actually the machine's IP address in network order. It looks like MH_ALIGN() used in arprequest() isn't working properly after the recent mbuf header changes. Here's the mbuf just after arprequest() has performed MH_ALIGN(). The m_data pointer is 0xc2c41de8 and the length is 0x1c. That puts the data over the edge into the next mbuf. The m_pkthdr appears to have been placed at 0xc2c41d18 (I think). It looks like the compiler inserted padding at 1d14 so MHLEN isn't correct. --Thomas XMD% mrd 0xc2c41d00 32 C2C41D00: 00000000 C2C41D04: 00000000 C2C41D08: C2C41DE8 (m_data) C2C41D0C: 0000001C (m_len) C2C41D10: 00000201 (m_type,m_flags) C2C41D14: 00000000 (?) C2C41D18: 00000000 (pkthdr.rcvif) C2C41D1C: 00000000 (pkthdr.tags) C2C41D20: 0000001C (pkthdr.len) C2C41D24: 00000000 C2C41D28: 00000000 C2C41D2C: 00000000 On 8/26/13 7:09 AM, Ian Lepore wrote: > On Mon, 2013-08-26 at 19:14 +0800, XiaoQI Ge wrote: >> I'm using the latest source code compiled kernel (r254898) >> Kernel panic after start >> >> Kernel entry at 0x80200100... >> Kernel args: (null) >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2013 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 10.0-CURRENT #2 r254898: Tue Aug 27 00:44:45 CST 2013 >> root@7axu.com:/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/BB-Black arm >> FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 >> WARNING: WITNESS option enabled, expect reduced performance. >> WARNING: DIAGNOSTIC option enabled, expect reduced performance. > >> [snip] > > > Several people are experiencing this address fault or similar ones, > sometimes in in_cksum() instead of so_receivegeneric(). > > It looks like the latest revision that I can build and boot the BB > without any trouble is r254777. > > The revision that actually breaks things appears to be r254807 (kudos to > Zbyszek Bodek for tracking it down to this rev), so you can boot using > r254806 but to get that rev to build you have to also apply the changes > from r254814. > > There was a large flurry of checkins over the past few days to get > things in before the cutoff for the 10.0 release. I have a feeling it > will be a few days before the dust settles and we get some fixes. > > -- Ian > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > -- -------- Thomas Skibo ThomasSkibo@sbcglobal.net