From nobody Mon Aug 12 05:35:23 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 4Wj3Bh1gwyz5T9Wn; Mon, 12 Aug 2024 05:35:24 +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 4Wj3Bh0cwrz4jqn; Mon, 12 Aug 2024 05:35:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723440924; 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=h4UvG3E5sa5yZorFlH/8adXSFvAwZP2FKExW0MsMOso=; b=E4uw7vawZ9EBq1naqgzt3Og7mpKi6wgmquXoTVmeCj5GdXVmYq3KgIBQUgMcyIlunhlEXX fmZa4XmeAfV9WSO460iWp9ZhqkKNQL+g5HthX4Pbl9BXLTkL8+4Trwf+rmlkDcCJggLNFS M1vJ2sUGoZmCQgebZqWkUNxQmAnQPgXTlqMQIDBI60zm3rT3Qol33gV9mY6brKTMLD1eJd /+Wym0/0d/jG+shwDvdbKnMkZ6Tt1e6LMcM/S9pZMwMtJehIqnegaGh0+K9gB+mQGN8A1z qmWu0ir6TqvaEc1Nb1HOC1jdeXR9IyeTdrJ0PR2LYh0vHgQyEwIrAm34XWdjRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723440924; a=rsa-sha256; cv=none; b=DIsTHWl8LTNkbPg7TonHB1xZw3Wv6WPmZ8ZU7cbT2vvOUl+6HOoXI1hfT6RgzrZ4blP82B iRRovK1w7vdD/Ghq2zYzNtIsLWLviT2Nfkcwk7Ul1v8zfzQR+hwnbvicC5iynyn47iFDul L2sCMqBHqwIK9hOZ6WaiXkDlcZlVRpbyho50GlPrpIAt7iQiNk+wZzyqyt6k+ai3WhDFQs ChlY5ygI3oOPRvHVfaTbWZ1ZYVcW8vqTfukHBOyUOQXoVM6FDVXaU2uw5OeSXBJblgbJqh LFv8c/jn7FHjXez8jQM5X6hp1DNUIO9OwV8mF4FgzXbprfzKsWaJ+Rs8LRQ7vA== 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=1723440924; 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=h4UvG3E5sa5yZorFlH/8adXSFvAwZP2FKExW0MsMOso=; b=f+dItVXo07Zfx2UcimYBz16bpmHu05D13ZUtZbIsB7IypzY7Gy531IMJKLWllkJzHm6fhG EvTpsovnh9xHhqjjWTRmxuS1HhLdCnz0fdnpEc4/i+KmWRUV4pSTsM1zMbk1TCKLm78RnZ vMYzOYYKK1W6orrnWUkfzrdFaTZ5WZzgsjxTHdajjz2FGYaeZll3x9iqcVGZCt9li5wF9k agGIcS+o9gjGnPAcoqEH9u/wMbX7HJ5z/MH8dmvSfcyCwIobJyE3/ZNEQZiPrIbtYE8nPw h89ImgAyB6zG+vZB4UQQktShFqK3RG14MbvLQTDDFR2J1zPj3CnLknO4nzir9g== 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 4Wj3Bh0CxyzFlH; Mon, 12 Aug 2024 05:35:24 +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 47C5ZNKR092702; Mon, 12 Aug 2024 05:35:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47C5ZNwV092699; Mon, 12 Aug 2024 05:35:23 GMT (envelope-from git) Date: Mon, 12 Aug 2024 05:35:23 GMT Message-Id: <202408120535.47C5ZNwV092699@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: ce42e0ed036b - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: ce42e0ed036b39c5ddf18967b1449e95faf0d3c6 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=ce42e0ed036b39c5ddf18967b1449e95faf0d3c6 commit ce42e0ed036b39c5ddf18967b1449e95faf0d3c6 Author: Michael Tuexen AuthorDate: 2024-08-09 14:12:22 +0000 Commit: Michael Tuexen 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