Re: ngctl can crash the kernel

From: David Rhodus <sdrhodus_at_gmail.com>
Date: Fri, 5 Nov 2010 19:27:13 -0400
Same panic here...

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

2010/11/5 sdfsdf rwerwer <freebsd-tracker-int0dh_at_mail.ru>:
>
> Hi everybody,
>
> The following commands lead the 9.0-CURRENT kernel to crash:
>
>
> [root_at_freebsd /usr/home/int0dh]# ngctl
> Available commands:
> šconfig get or set configuration of node at <path>
> šconnect Connects hook <peerhook> of the node at <relpath> to <hook>
> šdebug Get/set debugging verbosity level
> šdot Produce a GraphViz (.dot) of the entire netgraph.
> šhelp Show command summary or get more help on a specific command
> šlist Show information about all nodes
> šmkpeer Create and connect a new node to the node at "path"
> šmsg Send a netgraph control message to the node at "path"
> šname Assign name <name> to the node at <path>
> šread Read and execute commands from a file
> šrmhook Disconnect hook "hook" of the node at "path"
> šshow Show information about the node at <path>
> šshutdown Shutdown the node at <path>
> šstatus Get human readable status information from the node at <path>
> štypes Show information about all installed node types
> šwrite Send a data packet down the hook named by "hook".
> šquit 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,
> š šstruct mbuf *m0, struct mbuf *control)
> {
> š š š šstruct mbuf *m, *n, *nlast;
> š š š šint space = asa->sa_len;
>
> š š š šSOCKBUF_LOCK_ASSERT(sb);
>
> š š š šif (m0 && (m0->m_flags & M_PKTHDR) == 0)
> š š š š{
> š š š š š š š španic("sbappendaddr_locked" ;
> š š š š}
>
> I`ve tried with the custom kernel only, but I think that issue can be reproduced with GENERIC too.
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Fri Nov 05 2010 - 22:54:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:08 UTC