)]}'
{
  "commit": "acbd229d057d6cf06cd09bb6f911e930447205e0",
  "tree": "5d17c4f604fe4c4ab4e2ef77c99e5e4a0c331752",
  "parents": [
    "3db1b2d6a249eff0e52d0964503af751941088d3"
  ],
  "author": {
    "name": "Pedro Tammela",
    "email": "pctammela@mojatatu.com",
    "time": "Thu Feb 09 11:37:39 2023 -0300"
  },
  "committer": {
    "name": "Robert Kolchmeyer",
    "email": "rkolchmeyer@google.com",
    "time": "Sat Mar 11 00:29:46 2023 +0000"
  },
  "message": "net/sched: tcindex: update imperfect hash filters respecting rcu\n\ncommit ee059170b1f7e94e55fa6cadee544e176a6e59c2 upstream.\n\nThe imperfect hash area can be updated while packets are traversing,\nwhich will cause a use-after-free when \u0027tcf_exts_exec()\u0027 is called\nwith the destroyed tcf_ext.\n\nCPU 0:               CPU 1:\ntcindex_set_parms    tcindex_classify\ntcindex_lookup\n                     tcindex_lookup\ntcf_exts_change\n                     tcf_exts_exec [UAF]\n\nStop operating on the shared area directly, by using a local copy,\nand update the filter with \u0027rcu_replace_pointer()\u0027. Delete the old\nfilter version only after a rcu grace period elapsed.\n\nFixes: 9b0d4446b569 (\"net: sched: avoid atomic swap in tcf_exts_change\")\nReported-by: valis \u003csec@valis.email\u003e\nSuggested-by: valis \u003csec@valis.email\u003e\nSigned-off-by: Jamal Hadi Salim \u003cjhs@mojatatu.com\u003e\nSigned-off-by: Pedro Tammela \u003cpctammela@mojatatu.com\u003e\nLink: https://lore.kernel.org/r/20230209143739.279867-1-pctammela@mojatatu.com\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n(cherry picked from commit eb8e9d8572d1d9df17272783ad8a84843ce559d4)\nSigned-off-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\n\nBUG\u003db/272275066\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed a use-after-free issue in net/sched in the Linux kernel.\n\ncos-patch: bug\nChange-Id: I308ef7dcf7ede02eebd6045831cc8a23a7d7c663\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/44714\nReviewed-by: Oleksandr Tymoshenko \u003covt@google.com\u003e\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e9a8a2c86bbdd033b3dca556fcdb1e79b835b5cd",
      "old_mode": 33188,
      "old_path": "net/sched/cls_tcindex.c",
      "new_id": "dc87feaa3cb35a9e41a1209db82ebc5cef399462",
      "new_mode": 33188,
      "new_path": "net/sched/cls_tcindex.c"
    }
  ]
}
