git: ce42e0ed036b - stable/14 - tcp: initialize V_ts_offset_secret for all vnets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Aug 2024 05:35:23 UTC
The branch stable/14 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=ce42e0ed036b39c5ddf18967b1449e95faf0d3c6
commit ce42e0ed036b39c5ddf18967b1449e95faf0d3c6
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2024-08-09 14:12:22 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2024-08-12 05:34:35 +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.
Differential Revision: https://reviews.freebsd.org/D46246
(cherry picked from commit 9b569353e0b073a513cf10debbe634c2ceb29fdf)
---
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 a2424f2ab4d6..d633bd660346 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1508,6 +1508,7 @@ tcp_vnet_init(void *arg __unused)
VNET_PCPUSTAT_ALLOC(tcpstat, M_WAITOK);
V_tcp_msl = TCPTV_MSL;
+ arc4rand(&V_ts_offset_secret, sizeof(V_ts_offset_secret), 0);
}
VNET_SYSINIT(tcp_vnet_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_FOURTH,
tcp_vnet_init, NULL);
@@ -1545,7 +1546,6 @@ tcp_init(void *arg __unused)
/* 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