From owner-freebsd-net@FreeBSD.ORG Tue Sep 27 00:51:55 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 6B86C1065673 for ; Tue, 27 Sep 2011 00:51:55 +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 24D5E8FC14 for ; Tue, 27 Sep 2011 00:51:54 +0000 (UTC) Received: by vcbf13 with SMTP id f13so4589738vcb.13 for ; Mon, 26 Sep 2011 17:51:54 -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=BxvcOsZ/lFPV/Im60Hln8gZM5B1oWblB2n1TMZ5cm3k=; b=CmW8VlaEpIi0hrYDZ1xTBwMFbYJtJLyxppFGKxuktvPktquE6sINLhsuc2AqaOtYvT 6/ywFQsD7iTu8yhlgklPbd2cjGzfLfnOz6kEsrSwy+Rp4hCsOvFMXvpkuxtrQb7CTK0C qFa3WvvJIIQBvJlw3mwwFhb0/8kFyjm3/PIx8= MIME-Version: 1.0 Received: by 10.52.95.244 with SMTP id dn20mr6509781vdb.452.1317084714032; Mon, 26 Sep 2011 17:51:54 -0700 (PDT) Received: by 10.52.107.194 with HTTP; Mon, 26 Sep 2011 17:51:53 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Sep 2011 08:51:53 +0800 Message-ID: From: dave jones To: Arnaud Lacombe 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 00:51:55 -0000 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 go= t >>> 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 issu= e? Guess what? another production machine got the same panic, oh my~ Is FreeBSD 9 really stable? > =A0- Arnaud BR, Dave.