)]}'
{
  "commit": "ae12bd0175b218deb33f013587d56e17dcd7d2bb",
  "tree": "b411729aeccfee3ff41dfeaa17e0e0629c0cf33f",
  "parents": [
    "1213df0bc5993e479706c5eba5830243d778f164"
  ],
  "author": {
    "name": "Jianbo Liu",
    "email": "jianbol@nvidia.com",
    "time": "Wed Nov 25 03:34:09 2026 +0200"
  },
  "committer": {
    "name": "Steffen Klassert",
    "email": "steffen.klassert@secunet.com",
    "time": "Mon Nov 30 11:36:32 2026 +0100"
  },
  "message": "xfrm: Give GC list nodes their own storage\n\ngclist currently shares storage with bydst, and dev_gclist\nshares storage with bysrc.\n\nThis is unsafe for bydst and bysrc, which can be traversed under\nRCU without holding xfrm_state_lock. __xfrm_state_delete() unlinks\nthese nodes with hlist_del_init_rcu(), so a reader that started before\nthe unlink may still be following their linkage after the state has\nbeen removed from the hash table.\n\nLater, when the last reference is dropped, __xfrm_state_destroy()\nadds x-\u003egclist to xfrm_state_gc_list. Since gclist and bydst\ncurrently share the same storage, adding the state to the GC list can\noverwrite the bydst linkage while an RCU reader is still using it.\nThe same issue applies to dev_gclist and bysrc.\n\nGive gclist, bydst, and bysrc separate storage so their hash-list\nlinkage remains valid for outstanding RCU readers. Share dev_gclist\nwith byseq instead. byseq has no RCU readers, only\n__xfrm_find_acq_byseq() under xfrm_state_lock, and the state is\nunlinked from byseq before dev_gclist is used. Sharing keeps the\ngrowth of struct xfrm_state at 16 bytes rather than 32.\n\nFixes: d737a5805581 (\"xfrm: state: don\u0027t use lock anymore unless acquire operation is needed\")\nSigned-off-by: Jianbo Liu \u003cjianbol@nvidia.com\u003e\nReviewed-by: Carolina Jubran \u003ccjubran@nvidia.com\u003e\nSigned-off-by: Steffen Klassert \u003csteffen.klassert@secunet.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5fbb73474e3257376e0a742b88bc11364bbed3bf",
      "old_mode": 33188,
      "old_path": "include/net/xfrm.h",
      "new_id": "cd37aa69c9ac993ea403e7eb2bba7a7afa6e595f",
      "new_mode": 33188,
      "new_path": "include/net/xfrm.h"
    },
    {
      "type": "modify",
      "old_id": "eb984ed11888422783c81460278ab21e6aa12716",
      "old_mode": 33188,
      "old_path": "net/xfrm/xfrm_state.c",
      "new_id": "9c101be250ee81d29b7e4925bb7abd53966b1323",
      "new_mode": 33188,
      "new_path": "net/xfrm/xfrm_state.c"
    }
  ]
}
