)]}'
{
  "commit": "ee5c8fcd02634e5a694f7fdcd352a0b0eb90de6a",
  "tree": "7cf1a3ee8e79a7dce6f01f51645ed67acef34758",
  "parents": [
    "5b5339693f00c2479d45a941b54875e4e67307bb"
  ],
  "author": {
    "name": "David Hildenbrand (Arm)",
    "email": "david@kernel.org",
    "time": "Thu Nov 26 22:18:37 2026 +0100"
  },
  "committer": {
    "name": "Willem de Bruijn",
    "email": "willemb@google.com",
    "time": "Mon Nov 30 22:26:25 2026 -0500"
  },
  "message": "net: skbuff: limit folio refcount when copying skb frag references\n\nVarious networking features copy frag references of an skb, for example\nwhen unsharing a cloned skb (AF_PACKET trimming a clone), when copying an\nskb (nft dup) or when building NFQUEUE messages. This is an effective\nway for multiplying folio references held by an skb, allowing for\nexceeding folio refcount limits.\n\nThis is not specific to large pagecache folios, but with them it is a\nlot easier to reach the refcount limit, as page table mappings can cheaply\ncreate many references.\n\nLet\u0027s introduce skb_frag_try_ref() and skb_frags_try_ref(), which use\ntry_get_page(), and use them in pskb_expand_head(), __pskb_copy_fclone(),\nskb_zerocopy() and pskb_carve_inside_*(). All of these can already fail,\nand their callers handle that.\n\nFixes: 800d8c63b2e9 (\"shmem: add huge pages support\")\nFixes: 99cb0dbd47a1 (\"mm,thp: add read-only THP support for (non-shmem) FS\")\nFixes: 793917d997df (\"mm/readahead: Add large folio readahead\")\nCc: stable@vger.kernel.org\nAcked-by: Pedro Falcato \u003cpfalcato@suse.de\u003e\nSigned-off-by: David Hildenbrand (Arm) \u003cdavid@kernel.org\u003e\nLink: https://patch.msgid.link/20261126-skb_refcount_overflow-v2-1-a6f600a5634a@kernel.org\nReviewed-by: Willem de Bruijn \u003cwillemb@google.com\u003e\nSigned-off-by: Willem de Bruijn \u003cwillemb@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b6f6da556ee9037883b60410f808c489c0b364c8",
      "old_mode": 33188,
      "old_path": "include/linux/skbuff_ref.h",
      "new_id": "560ddc863bbec7083e1dfe47b7ad1d0188b6f5aa",
      "new_mode": 33188,
      "new_path": "include/linux/skbuff_ref.h"
    },
    {
      "type": "modify",
      "old_id": "85d5caa0888777bb43bece69d3380e9843bdbf55",
      "old_mode": 33188,
      "old_path": "net/core/skbuff.c",
      "new_id": "b8e99900ce4710c14c309ae84dbdd556ca891e32",
      "new_mode": 33188,
      "new_path": "net/core/skbuff.c"
    }
  ]
}
