From owner-freebsd-stable@FreeBSD.ORG Tue Jun 21 09:07:05 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D98616A41C for ; Tue, 21 Jun 2005 09:07:05 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1FB743D4C for ; Tue, 21 Jun 2005 09:07:04 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id j5L972ES031438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 21 Jun 2005 13:07:02 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.1/8.12.8) with ESMTP id j5L97188035124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Jun 2005 13:07:01 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.1/8.13.1/Submit) id j5L971d9035123; Tue, 21 Jun 2005 13:07:01 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 21 Jun 2005 13:07:01 +0400 From: Gleb Smirnoff To: Jeremie Le Hen Message-ID: <20050621090701.GB34406@cell.sick.ru> References: <20050621070427.GA738@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20050621070427.GA738@obiwan.tataz.chchile.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: ClamAV version devel-20050125, clamav-milter version 0.80ff on relay.bestcom.ru X-Virus-Status: Clean Cc: freebsd-stable@FreeBSD.org Subject: Re: panic in RELENG_5 UMA X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 09:07:05 -0000 On Tue, Jun 21, 2005 at 09:04:27AM +0200, Jeremie Le Hen wrote: J> #25 0xc05a0a0b in m_freem (mb=0x0) at uma.h:304 J> No locals. J> #26 0xc05ee0d5 in arpresolve (ifp=0xc1a5b000, rt0=0xc1d44000, m=0xc1be7200, J> dst=0xd6d3fa94, desten=0xd6d3fa2c "/??]??????w??") J> at ../../../netinet/if_ether.c:442 J> la = (struct llinfo_arp *) 0xc1a75a00 J> sdl = (struct sockaddr_dl *) 0xc2128910 J> error = -1038972656 J> rt = (struct rtentry *) 0xc1d44000 IMHO, this looks like a race. The route is not locked, when its llinfo is edited. Probably the mbuf was freed when arp reply arrived and la_hold was send. Look into in_arpinput() near 736: (*ifp->if_output)(ifp, la->la_hold, rt_key(rt), rt); la->la_hold = 0; Yeah, I have just triggered another panic running 15 instances of this script on SMP box: ( while (true); do arp -d 81.19.64.111 >/dev/null 2>&1; ping -c 1 -t 1 81.19.64.111 >/dev/null 2>&1; done ) & But my duplicate free is in fxp_txeof(). This means that output thread has won the race. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE