From owner-freebsd-net@FreeBSD.ORG Thu Sep 29 02:15:14 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E471B106564A; Thu, 29 Sep 2011 02:15:14 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6D1658FC0C; Thu, 29 Sep 2011 02:15:14 +0000 (UTC) Received: by vcbf13 with SMTP id f13so128388vcb.13 for ; Wed, 28 Sep 2011 19:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Iwc4Ti/wOhStYN6Bz6yySiCPPqrc+JfOzcjRjqXbqKs=; b=wufUUX90Uab2kYibxKf+Gw7ZmIxIpdue4ILrP7lI7EHUipZxflX1d1GR8/v6wziknf /5Z590MEXAyOlzXBGWrpXRs0uUEJlGnry/zBgA0KcrRwAA2PbS7SijOKCU75L8b/kyGB tDoqhK/iyHWEGbIpZzERzs41eyHzs4j08S6MU= MIME-Version: 1.0 Received: by 10.52.108.68 with SMTP id hi4mr1471994vdb.385.1317262513446; Wed, 28 Sep 2011 19:15:13 -0700 (PDT) Received: by 10.52.107.194 with HTTP; Wed, 28 Sep 2011 19:15:13 -0700 (PDT) In-Reply-To: <8662kcigif.fsf@kopusha.home.net> References: <8662kcigif.fsf@kopusha.home.net> Date: Thu, 29 Sep 2011 10:15:13 +0800 Message-ID: From: dave jones To: Mikolaj Golub Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-net@freebsd.org" , Adrian Chadd , "K. Macy" , Arnaud Lacombe Subject: Re: Kernel panic on FreeBSD 9.0-beta2 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 02:15:15 -0000 2011/9/29 Mikolaj Golub : > > On Mon, 26 Sep 2011 16:12:55 +0200 K. Macy wrote: > > =A0KM> Sorry, didn't look at the images (limited bw), I've seen something > =A0KM> like this before in timewait. This "can't happen" with UDP so will= be > =A0KM> interested in learning more about the bug. > > The panic can be easily triggered by this: > > > > The other thread at that moment is in soclose->sofree->upd_detach->in_pcb= free. > > It looks for me that we should call in_pcbdrop() in udp_close() to remove > inpcb from hashed lists, like it is done for tcp_close(). > > With this patch I don't observe the panic. Hi Mikolaj, You rock! Machines have been running hours without panic after applying your patch. You should commit the atch asap :-) Thank you for your help! Best regards, Dave.