)]}'
{
  "commit": "a400917f2cd092fba3310a2787214feb04fc0ee9",
  "tree": "abb9998b607441a16955b4c0a856da6b76a8ee32",
  "parents": [
    "a441b2f91be43df812f0a9b6a753409a2275634d"
  ],
  "author": {
    "name": "Eric Dumazet",
    "email": "edumazet@kernel.org",
    "time": "Fri Oct 30 12:15:28 2026 +0100"
  },
  "committer": {
    "name": "cloud-image-release",
    "email": "cloud-image-release@prod.google.com",
    "time": "Tue Nov 24 09:34:05 2026 -0800"
  },
  "message": "tcp: bound snd_cwnd_clamp to TCP_MAX_SND_CWND\n\nsnd_cwnd has no practical upper bound: snd_cwnd_clamp defaults to ~0,\nand RTAX_INITCWND, a locked RTAX_CWND metric, TCP_BPF_IW and\nTCP_BPF_SNDCWND_CLAMP accept any positive value.\n\nCongestion control modules do u32 arithmetic on cwnd that assumes\nmuch smaller values. For instance, ssthresh() handlers compute:\n\n  CUBIC, BIC, ROCCET:  cwnd * (BICTCP_BETA_SCALE + beta), up to 2047\n  DCTCP:               cwnd * dctcp_alpha, up to 1024\n  CDG, NV, CUBIC, ...: cwnd * beta, below 1024\n\nWith a large initcwnd route or TCP_BPF_IW, cwnd is set directly to\nsuch values, and the next RTO or recovery calls -\u003essthresh() with it.\nThe product then wraps: DCTCP with cwnd \u003d 2^24 and alpha \u003d 1024 gets\nssthresh \u003d\u003d cwnd, and CUBIC computes a wrong ssthresh and Wmax.\nCUBIC bictcp_update() also expects cwnd below about one million packets.\n\nThe paths that can grow cwnd by large amounts (tcp_slow_start(),\ntcp_cong_avoid_ai(), bbr_set_cwnd() and tcp_init_cwnd()) already\nbound it by snd_cwnd_clamp, so give snd_cwnd_clamp a finite default\nof 2^20 packets, and cap the metric and BPF paths that set it or set\ncwnd directly.\n\n2^20 packets do not limit real flows: with the maximum window scale\nof 14, a peer can not advertise more than 65535 \u003c\u003c 14 bytes (~1GB),\nwhich is less than 2^20 packets for any MSS of 1024 bytes or more.\n\nBUG\u003db/589860641\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed an integer overflow issue in TCP congestion control.\n\ncos-patch: security-high\nFixes: 1da177e4c3f4 (\"Linux-2.6.12-rc2\")\nReported-by: Chris Mason \u003cmason@kernel.org\u003e\nChange-Id: Id7c0571a13aa17b56db5d1bb0b0224a39fb01ca5\nSigned-off-by: Eric Dumazet \u003cedumazet@kernel.org\u003e\nLink: https://patch.msgid.link/20261030111528.2850082-1-edumazet@kernel.org\nSigned-off-by: Paolo Abeni \u003cpabeni@redhat.com\u003e\n(cherry picked from commit 475ff14ba558bb8857bca878f1d593784ccc4f0f)\nSigned-off-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/243686\nReviewed-by: Angel Adetula \u003cangeladetula@google.com\u003e\nMain-Branch-Verified: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/244086\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "488fa533a9c2c5616e236e9b39c7a081bd9d6b2c",
      "old_mode": 33188,
      "old_path": "include/net/tcp.h",
      "new_id": "d06e18541474dc3851820020507f0db442f29388",
      "new_mode": 33188,
      "new_path": "include/net/tcp.h"
    },
    {
      "type": "modify",
      "old_id": "2d6e2f772a6008bb6086b8b369aa72f7a89af277",
      "old_mode": 33188,
      "old_path": "net/core/filter.c",
      "new_id": "8fd29e9dea87b14d5c7167987257535dc5058379",
      "new_mode": 33188,
      "new_path": "net/core/filter.c"
    },
    {
      "type": "modify",
      "old_id": "ca84196f9ba9a1d107feb0135f97201ef08e2466",
      "old_mode": 33188,
      "old_path": "net/ipv4/tcp.c",
      "new_id": "2e27d0933147c9df4632ebf7d67c2412a95de603",
      "new_mode": 33188,
      "new_path": "net/ipv4/tcp.c"
    },
    {
      "type": "modify",
      "old_id": "10e86f1008e9d9c340eee0ecdefd7f21bd84bd5b",
      "old_mode": 33188,
      "old_path": "net/ipv4/tcp_metrics.c",
      "new_id": "9a38bbad00af622591a2a0d9db5c0915857029b0",
      "new_mode": 33188,
      "new_path": "net/ipv4/tcp_metrics.c"
    }
  ]
}
