From owner-freebsd-current@FreeBSD.ORG Fri Nov 5 23:54:13 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B86A31065674 for ; Fri, 5 Nov 2010 23:54:13 +0000 (UTC) (envelope-from sdrhodus@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB018FC15 for ; Fri, 5 Nov 2010 23:54:12 +0000 (UTC) Received: by wwb28 with SMTP id 28so59629wwb.31 for ; Fri, 05 Nov 2010 16:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Kim22NMyOEQAKeTaZp22/MEkTs2XfGANZXnghz0eyOM=; b=AanDhK+J+uMnww/Mo8dGzEB8LmvcvNB6pDKN8VKgSX+uZNJcnADKmXBFfjqM6tujV1 9VCmZqRDi2E3gXM8FJrrknOWWdF1VR26xAkE2M0zL2EhOm+qS4SR9tUP7wPlZ2g6bFhe L7ztb28kdgfDa2arYrrJpi1RMyAFhuGO0fAx4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=jmKwM0RLkie7dT2uWWPeuxXEDfecbWyBuCdxgTNcCh4AxMrROqNIOM20ocBBdPhMaE XGFsCAz/HXNgXhVilCaH18VIGwTwxaJiLQQN+1s0peJCD8BVDyMBd5MF+/QahAA+x59s JRGJk0hAJEk7Gpt9MFH9wam5bk36S9PUld4PQ= Received: by 10.216.132.131 with SMTP id o3mr2736732wei.19.1288999654142; Fri, 05 Nov 2010 16:27:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.60.137 with HTTP; Fri, 5 Nov 2010 16:27:13 -0700 (PDT) In-Reply-To: References: From: David Rhodus Date: Fri, 5 Nov 2010 19:27:13 -0400 Message-ID: To: sdfsdf rwerwer Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-current Subject: Re: ngctl can crash the kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 05 Nov 2010 23:54:13 -0000 Same panic here... Also the MPD2 port is broken, I'm guessing a netgraph problem too. 2010/11/5 sdfsdf rwerwer : > > Hi everybody, > > The following commands lead the 9.0-CURRENT kernel to crash: > > > [root@freebsd /usr/home/int0dh]# ngctl > Available commands: > =9Aconfig get or set configuration of node at > =9Aconnect Connects hook of the node at to > =9Adebug Get/set debugging verbosity level > =9Adot Produce a GraphViz (.dot) of the entire netgraph. > =9Ahelp Show command summary or get more help on a specific command > =9Alist Show information about all nodes > =9Amkpeer Create and connect a new node to the node at "path" > =9Amsg Send a netgraph control message to the node at "path" > =9Aname Assign name to the node at > =9Aread Read and execute commands from a file > =9Armhook Disconnect hook "hook" of the node at "path" > =9Ashow Show information about the node at > =9Ashutdown Shutdown the node at > =9Astatus Get human readable status information from the node at > =9Atypes Show information about all installed node types > =9Awrite Send a data packet down the hook named by "hook". > =9Aquit Exit program > + mkpeer ksocket myhook inet/stream/tcp > + msg .:myhook connect inet/127.0.0.1:22 > > After last command the kernel panics. > > > Any listening TCP port can be used instead of 22. > The panic occurs here (sys/kern/uipc_sockbuf.c): > > > int > sbappendaddr_locked(struct sockbuf *sb, const struct sockaddr *asa, > =9A =9Astruct mbuf *m0, struct mbuf *control) > { > =9A =9A =9A =9Astruct mbuf *m, *n, *nlast; > =9A =9A =9A =9Aint space =3D asa->sa_len; > > =9A =9A =9A =9ASOCKBUF_LOCK_ASSERT(sb); > > =9A =9A =9A =9Aif (m0 && (m0->m_flags & M_PKTHDR) =3D=3D 0) > =9A =9A =9A =9A{ > =9A =9A =9A =9A =9A =9A =9A =9Apanic("sbappendaddr_locked" ; > =9A =9A =9A =9A} > > I`ve tried with the custom kernel only, but I think that issue can be rep= roduced with GENERIC too. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >