From nobody Mon Aug 12 05:51:50 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 4Wj3Yf5Gv7z5TC3d; Mon, 12 Aug 2024 05:51:50 +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 4Wj3Yf3SjLz4lHv; Mon, 12 Aug 2024 05:51:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723441910; 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=lz7fAWIv+WPl9ASooGFAA+GbcH8Jlrt0V+/by3A0V3I=; b=jfnZuKZwDTjUn0I6r/n5TuuiH1KIZmjELf+qytQNlaPl8y3oLUc+EaogQG92KWaLkoGb98 04sqcGJ1dzQ7D7q3djjs49Dbr0UW6tZI/qNDQawImkn2pU2L1/no0NGShncfI35mv1NOWN W/3mbDPBC35M58mZBBRFxNMT81y67+EfvFQHuUCcWiXKapedG44Y73BnltD+UyZPt4Coy7 siJ0ZRtb9jKBjeIJC4us2NwZ+ewvhAbPmICOKUJlPiEjeDcvUZgu+zXgQ1qMv0MwuPj8i1 pJGwwRa6djd3scFq2YoWJjgjJbcylaWtzmJEkJdJJnfRpI4Zyq9HUrCEM73f5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723441910; a=rsa-sha256; cv=none; b=uu6itt+Qa6bnU59P2SmUOQ886yMn5m0FA2ZPxI0fncj82bfnEvIDkBfxFrSWY8ho3f613O OdUyBSrL1Dw/+AbHnWXe+qfFj3zSooh33bh24qveGCT9pVzcxT86AC/g4XSaOtLzqNpjuM ueE6Aox+UZi7/8aaKf+uFdC60wl8eJH6NCWA+WAPpGAOSN0yb7ImHIxqecw1YNEmfSwYg4 aunWpUEagvomEle8yUED3dpwR8SeuJJjYv86oyn5RPleXLTr2Q99IaY4mm5bIsMugIaVDl oJbfwI0qnZqtGn/miZ8Ui1OZ0c0VWzFSdIyCD0Anx7qCZMNj98JI7PM3R7e+1Q== 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=1723441910; 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=lz7fAWIv+WPl9ASooGFAA+GbcH8Jlrt0V+/by3A0V3I=; b=fX4HYZC10333CgyIJJytShXeucK8aPOh1Spkge0qOHGPK8Ef7afHgAuztXxxH58oe7+o3h Jhv2gblaFXTY/gdq33JSFAXwe0VkuumpZs/VVKNv/x3PmKslRY+sTbQJKYlQ/vqmFfP+Jm Qu+CJs23EjyTFv80Kfb5LDOirJkg3BDEJmZBoGTkyMquMn9LpFXokF7NQOvu2YV9JEI3y1 xv+/vVcKFVYWcIdaV7BXRbpHqPFOhGvFIwqc2VCcnCXkkasYlfOf0cd3daLzIfb3obgBvq E4q5Q20UlEkaXd0klR9TlWUWqcVaxO8ZwznRF622I9U3Vh2U5V3UYmersy0iFw== 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 4Wj3Yf359VzFq6; Mon, 12 Aug 2024 05:51:50 +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 47C5pon5021719; Mon, 12 Aug 2024 05:51:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47C5poMT021716; Mon, 12 Aug 2024 05:51:50 GMT (envelope-from git) Date: Mon, 12 Aug 2024 05:51:50 GMT Message-Id: <202408120551.47C5poMT021716@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: 83572ae1f5dd - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 83572ae1f5dd85fc00f33d5fd95374b8ee546636 Auto-Submitted: auto-generated The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=83572ae1f5dd85fc00f33d5fd95374b8ee546636 commit 83572ae1f5dd85fc00f33d5fd95374b8ee546636 Author: Michael Tuexen AuthorDate: 2024-08-09 14:12:22 +0000 Commit: Michael Tuexen 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