From nobody Mon Aug 12 16:43:09 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WjL195g9qz5Sd0q; Mon, 12 Aug 2024 16:43:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WjL193qtnz41K3; Mon, 12 Aug 2024 16:43:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723480989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Sxp0L3zeEkjE5euGSFv0teQEpfev7pGhFQ23NJXN/8=; b=y0Jh5AqQR/cJHDwJyzd52O0DeJqmwpcDSE7IvYyq5xrKKVsyi7Q1tp/sCDca9qWaj7n7Fy KepJrdGDb5tBZG5ZrerrutPy2CREeEhqIqTVEr+oqFqZWmljEn/w2lLQ18374uwsJmFG3c Wk5LNesg/tzy+9HjBUvt92QhgbgUrOEHyiMu16hkQpkapTBmZ58kOBXHwaDs6ZIWMnbCXc 0+tEOKKsGF+QL9sxv058oqSXMvLJd8T2u6Oh1Kj6kSOaXW7XqYzqt4d9MBkrraOxjPr3Po NN0zlqoZg6G8uoLLIGT43u5NLVG9ndC/5Kzc3DDmQmCl3h6hZbEmDAh/aSpIFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723480989; a=rsa-sha256; cv=none; b=jUA6lhF+X+vqgq4/O8VxGXUoL1Fepvd7pq+EQi18j8gqhCaVvz5TiL4cIzepdOotj7hpUu RToid9xKuiTwfwCDCd86j12CNfBMraA+fepBdG82Ggi3xD+Tzb5ovMJlCT2lI1yCyis+Og OH1KEL3F3wmqIpWB0jk5lKXdXvAjUG0NYdcTg6AMcun/q9NVXNrrdSvOa0ZN+y3KOpsdEJ 3dNJLVBikBA99aEm09tIC/CY9M6VwKp3XJIU1OX9UWmAB/l/sR7FCRMIrtX+inLq9aDAfB 8JuzQBVjxP3oomyfFBfxtLEn/Gi9nexmdl3mcWl2DV23VolOafHHPP97JbrZwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723480989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Sxp0L3zeEkjE5euGSFv0teQEpfev7pGhFQ23NJXN/8=; b=LFwQiIwMk8jjwDHKqQvgDqEIf7Zk0KXSO8DdB8l+6utWJ2D/b5DpZ07UXG+BEy406DF7n0 w2Skdh29H+qvrXiKQMTuxun/+h3hxzGUh+MsyJUD1wX4LTlriXNSMy7PS2P62SVb5BqjYV a9Q5r92cPdjCN01NI9xxpCul23Cy8OKbw1OiqH5yTOeW2HQpGSUyr2gqUhv6/z851qoSHQ 8QTgjb4R2DwZe4yeA7P+vU2hcEPXbTo9hUqLArPLkal6LUorGptwAnvMVS4IC+ZP6ep1g5 wNWuPVOuKYvAme8fBzPAwvR7TXSmAUoY2NCcDRlDFLe/hHf2nmb4FcFD6Y1Vgg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WjL193RBRzbcy; Mon, 12 Aug 2024 16:43:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47CGh931029240; Mon, 12 Aug 2024 16:43:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47CGh9tk029237; Mon, 12 Aug 2024 16:43:09 GMT (envelope-from git) Date: Mon, 12 Aug 2024 16:43:09 GMT Message-Id: <202408121643.47CGh9tk029237@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 6a0215b2e353 - releng/13.4 - tcp: initialize V_ts_offset_secret for all vnets List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.4 X-Git-Reftype: branch X-Git-Commit: 6a0215b2e3530815bde5ba1fc59e8ac234b510b6 Auto-Submitted: auto-generated The branch releng/13.4 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=6a0215b2e3530815bde5ba1fc59e8ac234b510b6 commit 6a0215b2e3530815bde5ba1fc59e8ac234b510b6 Author: Michael Tuexen AuthorDate: 2024-08-09 14:12:22 +0000 Commit: Michael Tuexen CommitDate: 2024-08-12 16:40:51 +0000 tcp: initialize V_ts_offset_secret for all vnets Initialize V_ts_offset_secret for each vnet, not only for the default vnet, since it is vnet specific. Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Approved by: re (cperciva@) Differential Revision: https://reviews.freebsd.org/D46246 (cherry picked from commit 9b569353e0b073a513cf10debbe634c2ceb29fdf) (cherry picked from commit 83572ae1f5dd85fc00f33d5fd95374b8ee546636) --- sys/netinet/tcp_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 9bf02d21a307..493f569104cb 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1448,6 +1448,7 @@ tcp_init(void) tcp_fastopen_init(); V_tcp_msl = TCPTV_MSL; + arc4rand(&V_ts_offset_secret, sizeof(V_ts_offset_secret), 0); /* Skip initialization of globals for non-default instances. */ if (!IS_DEFAULT_VNET(curvnet)) @@ -1481,7 +1482,6 @@ tcp_init(void) /* Initialize the TCP logging data. */ tcp_log_init(); #endif - arc4rand(&V_ts_offset_secret, sizeof(V_ts_offset_secret), 0); if (tcp_soreceive_stream) { #ifdef INET