Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2005 11:28:36 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        freebsd-stable@FreeBSD.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: panic in RELENG_5 UMA
Message-ID:  <20050621092836.GD738@obiwan.tataz.chchile.org>
In-Reply-To: <20050621090701.GB34406@cell.sick.ru>
References:  <20050621070427.GA738@obiwan.tataz.chchile.org> <20050621090701.GB34406@cell.sick.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Gleb,

> 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.

This explanation sounds good but my box is an UP with PREEMPTION.
Is is supposed to be also possible in this case ?

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050621092836.GD738>