svn commit: r318846 - stable/11/sys/netinet6

Navdeep Parhar np at FreeBSD.org
Thu May 25 01:14:35 UTC 2017


Author: np
Date: Thu May 25 01:14:34 2017
New Revision: 318846
URL: https://svnweb.freebsd.org/changeset/base/318846

Log:
  MFC r318124:
  
  ip6_output runs with the inp lock held, just like ip_output.

Modified:
  stable/11/sys/netinet6/ip6_output.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet6/ip6_output.c
==============================================================================
--- stable/11/sys/netinet6/ip6_output.c	Thu May 25 01:09:45 2017	(r318845)
+++ stable/11/sys/netinet6/ip6_output.c	Thu May 25 01:14:34 2017	(r318846)
@@ -324,6 +324,7 @@ ip6_output(struct mbuf *m0, struct ip6_p
 	uint32_t id;
 
 	if (inp != NULL) {
+		INP_LOCK_ASSERT(inp);
 		M_SETFIB(m, inp->inp_inc.inc_fibnum);
 		if ((flags & IP_NODEFAULTFLOWID) == 0) {
 			/* unconditionally set flowid */


More information about the svn-src-stable mailing list