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

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Thu, 5 Aug 2004 11:00:20 -0400 (EDT)
On Thu, 5 Aug 2004, Jun Kuriyama wrote:

> 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?

==== //depot/user/rwatson/netperf/sys/netinet/tcp_subr.c#17 - /home/rwatson/p4/rwatson_netperf/sys/netinet/tcp_subr.c ====
_at__at_ -1236,7 +1236,7 _at__at_
 		bzero(&th, sizeof(th));
 		m_copydata(m, off, sizeof(*thp), (caddr_t)&th);
 
-		in6_pcbnotify(&tcb, sa, th.th_dport,
+		in6_pcbnotify(&tcbinfo, sa, th.th_dport,
 		    (struct sockaddr *)ip6cp->ip6c_src,
 		    th.th_sport, cmd, NULL, notify);
 
_at__at_ -1247,7 +1247,7 _at__at_
 		inc.inc_isipv6 = 1;
 		syncache_unreach(&inc, &th);
 	} else
-		in6_pcbnotify(&tcb, sa, 0, (const struct sockaddr *)sa6_src,
+		in6_pcbnotify(&tcbinfo, sa, 0, (const struct sockaddr *)sa6_src,
 			      0, cmd, NULL, notify);
 }
 #endif /* INET6 */
Received on Thu Aug 05 2004 - 13:01:39 UTC

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