Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2010 19:27:13 -0400
From:      David Rhodus <sdrhodus@gmail.com>
To:        sdfsdf rwerwer <freebsd-tracker-int0dh@mail.ru>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: ngctl can crash the kernel
Message-ID:  <AANLkTi=o%2B2ugmgnU8Pe5tejK1AneuudwVFP0ZKdusznL@mail.gmail.com>
In-Reply-To: <E1PEMvu-0006UK-00.freebsd-tracker-int0dh-mail-ru@f231.mail.ru>
References:  <E1PEMvu-0006UK-00.freebsd-tracker-int0dh-mail-ru@f231.mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Same panic here...

Also the MPD2 port is broken,  I'm guessing a netgraph problem too.

2010/11/5 sdfsdf rwerwer <freebsd-tracker-int0dh@mail.ru>:
>
> 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 <path>
> =9Aconnect Connects hook <peerhook> of the node at <relpath> to <hook>
> =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 <name> to the node at <path>
> =9Aread Read and execute commands from a file
> =9Armhook Disconnect hook "hook" of the node at "path"
> =9Ashow Show information about the node at <path>
> =9Ashutdown Shutdown the node at <path>
> =9Astatus Get human readable status information from the node at <path>
> =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=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=o%2B2ugmgnU8Pe5tejK1AneuudwVFP0ZKdusznL>