)]}'
{
  "commit": "dc4dd12f80e499dc034710cd8195489abcf0b059",
  "tree": "259c00e1fd0aeb560456768838656a2f3a181cc6",
  "parents": [
    "59e72644a7e697fdaf3494e8df8af9ab2b2ba31d"
  ],
  "author": {
    "name": "Kyle Zeng",
    "email": "kylebot@openai.com",
    "time": "Wed Oct 28 19:14:50 2026 +0100"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Thu Oct 29 08:58:08 2026 -0700"
  },
  "message": "net/packet: check TX_RING fragments before memory accounting\n\ntpacket_fill_skb() adds the full non-linear payload length to\nskb-\u003etruesize and sk_wmem_alloc before checking MAX_SKB_FRAGS. With\nPACKET_VNET_HDR, userspace can submit a ring-sized frame even when it\ngreatly exceeds the device MTU.\n\nA near-INT_MAX frame can saturate sk_wmem_alloc before the fragment\nloop rejects it. A subsequent refcount_add(0x40000001) can temporarily\nturn REFCOUNT_SATURATED into 1. A concurrent TX completion can then\ndrop that apparent last reference and free the still-live packet\nsocket before refcount_warn_saturate() restores the counter.\n\nCheck that the remaining payload fits in MAX_SKB_FRAGS pages before\naccounting it. Include the initial page offset in the calculation,\nand move the existing -EFAULT handling out of the fragment loop.\nThis preserves the accepted packet sizes and error code while\npreventing an invalid frame from injecting an oversized byte charge.\n\nFixes: 69e3c75f4d54 (\"net: TX_RING and packet mmap\")\nCc: stable@vger.kernel.org\nCc: Willem de Bruijn \u003cwillemdebruijn.kernel@gmail.com\u003e\nSigned-off-by: Kyle Zeng \u003ckylebot@openai.com\u003e\n[edumazet: use net_warn_ratelimited() instead of pr_err(), add a Fixes: tag]\nSigned-off-by: Eric Dumazet \u003cedumazet@kernel.org\u003e\nReviewed-by: Willem de Bruijn \u003cwillemb@google.com\u003e\nLink: https://patch.msgid.link/20261028181450.2221013-1-edumazet@kernel.org\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "823e0911c910fa95d85bdf187eddef802cf65726",
      "old_mode": 33188,
      "old_path": "net/packet/af_packet.c",
      "new_id": "cf6429f09477263534b631199aae85c30de2fffe",
      "new_mode": 33188,
      "new_path": "net/packet/af_packet.c"
    }
  ]
}
