)]}'
{
  "commit": "8615dfb7470816ab28b148bb67bba5f12bb4ea0b",
  "tree": "3464593c0b66275c5856195b52dd074e83635810",
  "parents": [
    "ad3305fce7d60f0c0887e5594362a32fef9ca4fe"
  ],
  "author": {
    "name": "Kuan-Ting Chen",
    "email": "h3xrabbit@gmail.com",
    "time": "Mon May 04 23:27:12 2026 +0800"
  },
  "committer": {
    "name": "Cloud Image Release",
    "email": "cloud-image-release@prod.google.com",
    "time": "Fri May 08 01:13:32 2026 -0700"
  },
  "message": "xfrm: esp: avoid in-place decrypt on shared skb frags\n\nMSG_SPLICE_PAGES can attach pages from a pipe directly to an skb. TCP\nmarks such skbs with SKBFL_SHARED_FRAG after skb_splice_from_iter(),\nso later paths that may modify packet data can first make a private\ncopy. The IPv4/IPv6 datagram append paths did not set this flag when\nsplicing pages into UDP skbs.\n\nThat leaves an ESP-in-UDP packet made from shared pipe pages looking\nlike an ordinary uncloned nonlinear skb. ESP input then takes the no-COW\nfast path for uncloned skbs without a frag_list and decrypts in place\nover data that is not owned privately by the skb.\n\nMark IPv4/IPv6 datagram splice frags with SKBFL_SHARED_FRAG, matching\nTCP. Also make ESP input fall back to skb_cow_data() when the flag is\npresent, so ESP does not decrypt externally backed frags in place.\nPrivate nonlinear skb frags still use the existing fast path.\n\nThis intentionally does not change ESP output. In esp_output_head(),\nthe path that appends the ESP trailer to existing skb tailroom without\ncalling skb_cow_data() is not reachable for nonlinear skbs:\nskb_tailroom() returns zero when skb-\u003edata_len is nonzero, while ESP\ntailen is positive. Thus ESP output will either use the separate\ndestination-frag path or fall back to skb_cow_data().\n\nBUG\u003db/510939349\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dNone\n\ncos-patch: security-high\nFixes: cac2661c53f3 (\"esp4: Avoid skb_cow_data whenever possible\")\nFixes: 03e2a30f6a27 (\"esp6: Avoid skb_cow_data whenever possible\")\nFixes: 7da0dde68486 (\"ip, udp: Support MSG_SPLICE_PAGES\")\nFixes: 6d8192bd69bb (\"ip6, udp6: Support MSG_SPLICE_PAGES\")\nReported-by: Hyunwoo Kim \u003cimv4bel@gmail.com\u003e\nReported-by: Kuan-Ting Chen \u003ch3xrabbit@gmail.com\u003e\nTested-by: Hyunwoo Kim \u003cimv4bel@gmail.com\u003e\nCc: stable@vger.kernel.org\nChange-Id: I04b21eaf5706a01fda27bc12ce43e590d8059b95\nSigned-off-by: Kuan-Ting Chen \u003ch3xrabbit@gmail.com\u003e\nSigned-off-by: Steffen Klassert \u003csteffen.klassert@secunet.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/150003\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-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\nReviewed-by: Derek Taylor \u003cddtaylor@google.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/150083\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "deea0b934d9106ff9e6b85635b496e2a0acb503f",
      "old_mode": 33188,
      "old_path": "net/ipv4/esp4.c",
      "new_id": "2f548900e238b775804d4d335b85f7a3877c3dc1",
      "new_mode": 33188,
      "new_path": "net/ipv4/esp4.c"
    },
    {
      "type": "modify",
      "old_id": "55d905b154407388f1afcd3c59d6adb977f37da7",
      "old_mode": 33188,
      "old_path": "net/ipv4/ip_output.c",
      "new_id": "16e7240111924f80b59a8ae8956af48e3d46f689",
      "new_mode": 33188,
      "new_path": "net/ipv4/ip_output.c"
    },
    {
      "type": "modify",
      "old_id": "20c1149f0f0a363e28c8afefeffeed98b949678c",
      "old_mode": 33188,
      "old_path": "net/ipv6/esp6.c",
      "new_id": "a797d5740d9befb0e4d111b884322250fcacfcf4",
      "new_mode": 33188,
      "new_path": "net/ipv6/esp6.c"
    },
    {
      "type": "modify",
      "old_id": "23aaaa380fe421893da8683aad174b70be1b3206",
      "old_mode": 33188,
      "old_path": "net/ipv6/ip6_output.c",
      "new_id": "0d543a9674f0a9b403904e2d75db2ef1d39b7fa6",
      "new_mode": 33188,
      "new_path": "net/ipv6/ip6_output.c"
    }
  ]
}
