git: 6a0215b2e353 - releng/13.4 - tcp: initialize V_ts_offset_secret for all vnets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Aug 2024 16:43:09 UTC
The branch releng/13.4 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=6a0215b2e3530815bde5ba1fc59e8ac234b510b6 commit 6a0215b2e3530815bde5ba1fc59e8ac234b510b6 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2024-08-09 14:12:22 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> 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