From owner-freebsd-current@FreeBSD.ORG Sat Jun 14 07:56:39 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7C3037B42C; Sat, 14 Jun 2003 07:56:39 -0700 (PDT) Received: from cognet.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5898243F93; Sat, 14 Jun 2003 07:56:35 -0700 (PDT) (envelope-from doginou@cognet.ci0.org) Received: from cognet.ci0.org (localhost [127.0.0.1]) by cognet.ci0.org (8.12.9/8.12.9) with ESMTP id h5EEtJvK013986; Sat, 14 Jun 2003 16:55:19 +0200 (CEST) (envelope-from doginou@cognet.ci0.org) Received: (from doginou@localhost) by cognet.ci0.org (8.12.9/8.12.9/Submit) id h5EEtD3Z013981; Sat, 14 Jun 2003 16:55:13 +0200 (CEST) Date: Sat, 14 Jun 2003 16:55:13 +0200 From: Olivier Houchard To: Maxime Henrion Message-ID: <20030614145513.GA13130@ci0.org> References: <14937.24.25.227.132.1055546004.squirrel@webmail.tekgenesis.net> <20030614143520.GB38547@garage.freebsd.pl> <20030614143628.GP21011@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030614143628.GP21011@elvis.mu.org> User-Agent: Mutt/1.5.4i cc: freebsd-current@freebsd.org cc: Robert Watson cc: Jason Dambrosio Subject: Re: 5.1-RELEASE panic, trace included X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 14:56:40 -0000 On Sat, Jun 14, 2003 at 04:36:28PM +0200, Maxime Henrion wrote: > Pawel Jakub Dawidek wrote: > > On Sat, Jun 14, 2003 at 02:28:33AM -0400, Robert Watson wrote: > > +> If you have the kernel.debug for this kernel, could you send the gdb -k > > +> output of: > > +> > > +> l *in6_pcbbind+0x2a7 > > > > I've looked at objdump -d kernel, and it looks like this is somewhere here: > > > > 214: t = in_pcblookup_local(pcbinfo, > > 215: sin.sin_addr, lport, > > 216: INPLOOKUP_WILDCARD); > > 217: if (t && > > 218: (so->so_cred->cr_uid != > > 219: t->inp_socket->so_cred->cr_uid) && > > 220: (ntohl(t->inp_laddr.s_addr) != > > 221: INADDR_ANY || > > 222: INP_SOCKAF(so) == > > 223: INP_SOCKAF(t->inp_socket))) > > 224: return (EADDRINUSE); > > > > We're talking about this line: > > > > test %eax,%eax > > je c03ac9c7 > > mov 0x64(%eax),%eax > > mov %eax,0xffffffd0(%ebp) > > => mov 0xc4(%eax),%edx > > mov 0xc4(%esi),%eax > > mov 0x4(%eax),%eax > > cmp 0x4(%edx),%eax > > je c03ac9c7 > > > > We're loading inp_socket->so_cred to edx here. > > So it looks like inp_socket is NULL. Hmm, it is possible? > > Yes, since jlemon's reduced TCP state work. Olivier > (cognet@FreeBSD.org) has a fix for this, so I added him to the Cc: line. Hi, I believe this patch : http://people.FreeBSD.org/~cognet/in6_pcb.c.diff fixes this issue. Unfortunately, I haven't been able to get it properly reviewed before 5.1-RELEASE. Cheers, Olivier