)]}'
{
  "commit": "0de4e69cd021c99d0aa13e1f30aafd13ad74a2a5",
  "tree": "3f93f83cf3a2d3a143f95817d6925bc09b393951",
  "parents": [
    "33893757d5f40af69e9a1f80ffffee00a2eb0221"
  ],
  "author": {
    "name": "Eric Dumazet",
    "email": "edumazet@kernel.org",
    "time": "Mon Oct 26 16:59:27 2026 +0100"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Wed Oct 28 17:31:34 2026 -0700"
  },
  "message": "ppp: linearize and segment bridged packets when required\n\nPPP channel bridging hands packets received on one channel directly to\nthe start_xmit() of another. Packets received by PPPoE can be\nnon-linear, GSO since commit 55a5d8fca836 (\"net: pppoe: implement\nGRO/GSO support\"), or CHECKSUM_PARTIAL when injected with a\nvirtio_net_hdr. The regular transmit path never sees such packets, and\nonly PPPoE, which uses dev_queue_xmit(), handles them:\n\n- PPP Async reads the whole packet through skb-\u003edata, transmitting\n  unrelated memory for non-linear packets.\n- PPP Async and Sync send GSO packets as single frames of up to 64KB,\n  and CHECKSUM_PARTIAL packets with a bad L4 checksum.\n- PPTP and L2TP cannot segment a TCP GSO packet once their GRE or UDP\n  header is pushed, and do not finish pending checksums.\n\nAdd a xmit_offload flag to struct ppp_channel, set for PPPoE. For other\nchannels, segment GSO packets in software, using the PPP protocol field\nas the L2 header, finish CHECKSUM_PARTIAL checksums (including SCTP\nCRC32c), and linearize packets for channels without direct_xmit, as\nppp_push() does. Packets are dropped if any step fails, or if the\nchannel is busy, as before.\n\nskb-\u003edev is NULL at this point for PPPoE (cleared by __sk_receive_skb()),\nand tunnel and IPv6 UFO GSO handlers dereference it: only TCP, UDP L4\nand fraglist GSO packets without encapsulation are segmented, others\nare dropped.\n\nReceive paths like L2TP pull headers without updating the checksum\nstate, possibly leaving a CHECKSUM_PARTIAL state with csum_start before\nskb-\u003edata. Reset it to CHECKSUM_NONE, as skb_postpull_rcsum() does, so\nthat skb_checksum_help() does not warn, and so that PPPoE does not\noffload a checksum at a wrong offset.\n\nTested in a VM by bridging PPPoE (on a TAP with IFF_NAPI_FRAGS, or on\nveth) to PPP Async on a PTY, PPPoL2TP and PPPoE: non-linear packets no\nlonger leak garbage, GSO packets (including fraglist GRO) are sent as\nvalid segments for IPv4 and IPv6, CHECKSUM_PARTIAL packets get a valid\nchecksum, and PPPoE still receives GSO packets unchanged.\n\nFixes: 4cf476ced45d (\"ppp: add PPPIOCBRIDGECHAN and PPPIOCUNBRIDGECHAN ioctls\")\nFixes: 55a5d8fca836 (\"net: pppoe: implement GRO/GSO support\")\nReported-by: Sashiko \u003csashiko-bot@kernel.org\u003e\nCloses: https://sashiko.dev/#/patchset/20260908072135.877364-1-qingfang.deng@linux.dev\nCo-developed-by: Qingfang Deng \u003cqingfang.deng@linux.dev\u003e\nSigned-off-by: Qingfang Deng \u003cqingfang.deng@linux.dev\u003e\nSigned-off-by: Eric Dumazet \u003cedumazet@kernel.org\u003e\nCc: Felix Fietkau \u003cnbd@nbd.name\u003e\nCc: Pablo Neira Ayuso \u003cpablo@netfilter.org\u003e\nReviewed-by: Simon Horman \u003chorms@kernel.org\u003e\nLink: https://patch.msgid.link/20261026155927.707655-1-edumazet@kernel.org\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3998ce4332f4285d529e436b7266a3b30529bae9",
      "old_mode": 33188,
      "old_path": "drivers/net/ppp/ppp_generic.c",
      "new_id": "29847dc4bb454987842fb11ee5e38e1db7cea2ed",
      "new_mode": 33188,
      "new_path": "drivers/net/ppp/ppp_generic.c"
    },
    {
      "type": "modify",
      "old_id": "9edf8151bd7d187dc08ca22313c652d56c3040a3",
      "old_mode": 33188,
      "old_path": "drivers/net/ppp/pppoe.c",
      "new_id": "67c28ac763efd449a09fbae84ec3e0e63c104c65",
      "new_mode": 33188,
      "new_path": "drivers/net/ppp/pppoe.c"
    },
    {
      "type": "modify",
      "old_id": "2f63e9a6cc88984c075792dcbd6c832ff45acd51",
      "old_mode": 33188,
      "old_path": "include/linux/ppp_channel.h",
      "new_id": "15bc3aa4f1715c265a5808fcc1cc2b93cc44c519",
      "new_mode": 33188,
      "new_path": "include/linux/ppp_channel.h"
    }
  ]
}
