git: 83572ae1f5dd - stable/13 - 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:51:50 UTC
The branch stable/13 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=83572ae1f5dd85fc00f33d5fd95374b8ee546636
commit 83572ae1f5dd85fc00f33d5fd95374b8ee546636
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:47:40 +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 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