Date: Fri, 19 Sep 2008 17:43:35 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 150125 for review Message-ID: <200809191743.m8JHhZj8009388@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=150125 Change 150125 by zec@zec_tpx32 on 2008/09/19 17:43:14 curvnet is never set on entry to sysctl handlers, thus set the vnet context via TD_TO_VNET(curthread), because all threads must have a cred->vimage->vnet context set. Affected files ... .. //depot/projects/vimage-commit2/src/sys/netinet/tcp_subr.c#14 edit Differences ... ==== //depot/projects/vimage-commit2/src/sys/netinet/tcp_subr.c#14 (text+ko) ==== @@ -119,7 +119,7 @@ static int sysctl_net_inet_tcp_mss_check(SYSCTL_HANDLER_ARGS) { - INIT_VNET_INET(curvnet); + INIT_VNET_INET(TD_TO_VNET(curthread)); int error, new; new = V_tcp_mssdflt; @@ -141,7 +141,7 @@ static int sysctl_net_inet_tcp_mss_v6_check(SYSCTL_HANDLER_ARGS) { - INIT_VNET_INET6(curvnet); + INIT_VNET_INET6(TD_TO_VNET(curthread)); int error, new; new = V_tcp_v6mssdflt;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809191743.m8JHhZj8009388>