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:
> š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@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>