From owner-freebsd-net@FreeBSD.ORG Tue Sep 27 01:24:39 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 5D641106566B for ; Tue, 27 Sep 2011 01:24:39 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id E58318FC13 for ; Tue, 27 Sep 2011 01:24:36 +0000 (UTC) Received: by wyj26 with SMTP id 26so4679798wyj.13 for ; Mon, 26 Sep 2011 18:24:35 -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=U77IhGBCDQ78Zgcs1vR0RqOG32hC9R3hPmHQzIuy59M=; b=NB28YzY5gCIJzO+b/2ePdIzbLeRv/4blcRvTFHK/gkVFm/XacDBrXozcJt5uyj5l8D RCPz/5Gxs0m71igZnt3q+vVfyl5F3XGArLdbkzp3zGDTh8hF2rxXNE+X6XXna95yQ7Xz ufjpp44JTFMESDdl+lHD9Z3tef0xNNkZTfcps= MIME-Version: 1.0 Received: by 10.227.36.229 with SMTP id u37mr6726819wbd.21.1317086675354; Mon, 26 Sep 2011 18:24:35 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Mon, 26 Sep 2011 18:24:35 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Sep 2011 21:24:35 -0400 Message-ID: From: Arnaud Lacombe To: dave jones Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org 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: Tue, 27 Sep 2011 01:24:39 -0000 Hi, On Mon, Sep 26, 2011 at 8:51 PM, dave jones wrote: > On Mon, Sep 26, 2011 at 1:41 PM, Arnaud Lacombe wrote: >> Hi, >> >> On Mon, Sep 26, 2011 at 1:12 AM, Arnaud Lacombe wrote: >>> Hi, >>> >>> On Mon, Sep 26, 2011 at 12:43 AM, dave jones wrote: >>>> Hi, >>>> I have two production machines running on freebsd 9.0-beta2 and both g= ot >>>> kernel panic related to networking. Any idea how to solve it? thanks. >>>> >>>> http://http://60.248.161.9/p1.jpg >>>> http://http://60.248.161.9/p2.jpg >>>> >>> this host is really slow :-) >>> >>> To avoid the waiting time, the backtrace is: >>> >>> in_pcbbind_setup()+0x28f >>> in_pcbbind()+0xa9 >>> udp_bind() >>> bind() >>> kern_bind() >>> syscall_enter() >>> syscall() >>> >>> faulted at VA 0x07. Origin process in named. >>> >> AFAICT, the crash happens in the following block: >> >> =A0/* >> =A0 * XXX >> =A0 * This entire block sorely needs a rewrite. >> =A0 */ >> =A0 =A0 =A0 =A0if (t && >> =A0 =A0 =A0 =A0 =A0 =A0((t->inp_flags & INP_TIMEWAIT) =3D=3D 0) && >> =A0 =A0 =A0 =A0 =A0 =A0(so->so_type !=3D SOCK_STREAM || >> =A0 =A0 =A0 =A0 =A0 =A0 ntohl(t->inp_faddr.s_addr) =3D=3D INADDR_ANY) && >> =A0 =A0 =A0 =A0 =A0 =A0(ntohl(sin->sin_addr.s_addr) !=3D INADDR_ANY || >> =A0 =A0 =A0 =A0 =A0 =A0 ntohl(t->inp_laddr.s_addr) !=3D INADDR_ANY || >> =A0 =A0 =A0 =A0 =A0 =A0 (t->inp_socket->so_options & >> =A0 =A0 =A0 =A0 =A0 SO_REUSEPORT) =3D=3D 0) && >> =A0 =A0 =A0 =A0 =A0 =A0(inp->inp_cred->cr_uid !=3D >> =A0 =A0 =A0 =A0 =A0 =A0 t->inp_cred->cr_uid)) >> =A0 =A0 =A0 =A0 =A0return (EADDRINUSE); >> =A0 =A0 =A0} >> >> more specifically, `t->inp_socket' is NULL. The top comment may not be >> relevant, as it's been here for the past 8 years. > > Hi Arnaud, > > Ah, thanks for the info. I'm wondering if you have a patch to fix that is= sue? > Guess what? another production machine got the same panic, oh my~ Can you give us more precision on the condition of the crash ? is it immediately at boot-time ? If not, is it when a special network condition occurs ? What kind of load is named(9) having on average before the panic ? Are you using any fancy configuration or thing out of the ordinary ? Are you using named from the base system, or from port ? Thanks, - Arnaud