From owner-p4-projects@FreeBSD.ORG Fri Sep 19 17:43:35 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 835FD106567B; Fri, 19 Sep 2008 17:43:35 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4764C106566B for ; Fri, 19 Sep 2008 17:43:35 +0000 (UTC) (envelope-from zec@tel.fer.hr) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 399E58FC39 for ; Fri, 19 Sep 2008 17:43:35 +0000 (UTC) (envelope-from zec@tel.fer.hr) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8JHhZmJ009392 for ; Fri, 19 Sep 2008 17:43:35 GMT (envelope-from zec@tel.fer.hr) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8JHhZj8009388 for perforce@freebsd.org; Fri, 19 Sep 2008 17:43:35 GMT (envelope-from zec@tel.fer.hr) Date: Fri, 19 Sep 2008 17:43:35 GMT Message-Id: <200809191743.m8JHhZj8009388@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zec@tel.fer.hr using -f From: Marko Zec To: Perforce Change Reviews Cc: Subject: PERFORCE change 150125 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2008 17:43:35 -0000 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;