From owner-freebsd-current@FreeBSD.ORG Thu Aug 5 14:28:42 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3BC516A4CE; Thu, 5 Aug 2004 14:28:42 +0000 (GMT) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [210.226.20.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E9343D39; Thu, 5 Aug 2004 14:28:42 +0000 (GMT) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by black.imgsrc.co.jp (Postfix) with ESMTP id E817A50BA9; Thu, 5 Aug 2004 23:28:40 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [IPv6:2001:218:422:2::9999]) by black.imgsrc.co.jp (Postfix) with ESMTP id ABF2150B6C; Thu, 5 Aug 2004 23:28:39 +0900 (JST) Date: Thu, 05 Aug 2004 23:28:39 +0900 Message-ID: <7mu0vhmzfs.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: Robert Watson In-Reply-To: References: <7mvffxn2mn.wl@black.imgsrc.co.jp> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd 0.1 cc: Current Subject: Re: panic: mutex inp not owned at /usr/src/sys/netinet/tcp_output.c:140 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 05 Aug 2004 14:28:42 -0000 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 // IMG SRC, Inc. // FreeBSD Project