Re: panic: mutex inp not owned at /usr/src/sys/netinet/tcp_output.c:140

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Thu, 05 Aug 2004 23:28:39 +0900
At Thu, 5 Aug 2004 09:43:41 -0400 (EDT),
Robert Watson wrote:
> Could you try the attached patch?  This modifies the IPv6 code to match
> the IPv4 code in passing in the "inpcbinfo" reference for a protocol,
> rather than just its inpcb list.  This allows in6_pcbnotify() to lock the
> structure before walking it.  It also acquires the per-pcb locks before
> notifying each pcb of an event.

Can I have more patch?

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/src/sys/netinet/tcp_subr.c
/usr/src/sys/netinet/tcp_subr.c: In function `tcp6_ctlinput':
/usr/src/sys/netinet/tcp_subr.c:1241: warning: passing arg 1 of `in6_pcbnotify' from incompatible pointer type
/usr/src/sys/netinet/tcp_subr.c:1251: warning: passing arg 1 of `in6_pcbnotify' from incompatible pointer type


-- 
Jun Kuriyama <kuriyama_at_imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama_at_FreeBSD.org> // FreeBSD Project
Received on Thu Aug 05 2004 - 12:28:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC