)]}'
{
  "commit": "4f73ff7e7bf0914a0cbe4e05728ac46b4c2c5df0",
  "tree": "3f2e1ac35747c19e5fc91323cd89142e157a417e",
  "parents": [
    "5064ec8b0bd891a62cb6dff7004e6fff4b9a407e"
  ],
  "author": {
    "name": "Yang Yingliang",
    "email": "yangyingliang@huawei.com",
    "time": "Wed Jul 03 11:16:08 2024 +0800"
  },
  "committer": {
    "name": "Oleksandr Tymoshenko",
    "email": "ovt@google.com",
    "time": "Tue Oct 15 23:07:15 2024 +0000"
  },
  "message": "sched/smt: Fix unbalance sched_smt_present dec/inc\n\ncommit e22f910a26cc2a3ac9c66b8e935ef2a7dd881117 upstream.\n\nI got the following warn report while doing stress test:\n\njump label: negative count!\nWARNING: CPU: 3 PID: 38 at kernel/jump_label.c:263 static_key_slow_try_dec+0x9d/0xb0\nCall Trace:\n \u003cTASK\u003e\n __static_key_slow_dec_cpuslocked+0x16/0x70\n sched_cpu_deactivate+0x26e/0x2a0\n cpuhp_invoke_callback+0x3ad/0x10d0\n cpuhp_thread_fun+0x3f5/0x680\n smpboot_thread_fn+0x56d/0x8d0\n kthread+0x309/0x400\n ret_from_fork+0x41/0x70\n ret_from_fork_asm+0x1b/0x30\n \u003c/TASK\u003e\n\nBecause when cpuset_cpu_inactive() fails in sched_cpu_deactivate(),\nthe cpu offline failed, but sched_smt_present is decremented before\ncalling sched_cpu_deactivate(), it leads to unbalanced dec/inc, so\nfix it by incrementing sched_smt_present in the error path.\n\nBUG\u003db/372870109\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed CVE-2024-44958 in the Linux kernel.\n\ncos-patch: security-moderate\nFixes: c5511d03ec09 (\"sched/smt: Make sched_smt_present track topology\")\nCc: stable@kernel.org\nChange-Id: Ie46e83db104e51326f37f37bae23d0a4ab078d8d\nSigned-off-by: Yang Yingliang \u003cyangyingliang@huawei.com\u003e\nSigned-off-by: Peter Zijlstra (Intel) \u003cpeterz@infradead.org\u003e\nReviewed-by: Chen Yu \u003cyu.c.chen@intel.com\u003e\nReviewed-by: Tim Chen \u003ctim.c.chen@linux.intel.com\u003e\nLink: https://lore.kernel.org/r/20240703031610.587047-3-yangyingliang@huaweicloud.com\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\nSigned-off-by: Kernel CVE Triage Automation \u003ccloud-image-kernel-cve-triage-automation@prod.google.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/83423\nReviewed-by: Kevin Berry \u003ckpberry@google.com\u003e\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-by: Arnav Kansal \u003crnv@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "559740d2846695ea3b4908688bbb390547861155",
      "old_mode": 33188,
      "old_path": "kernel/sched/core.c",
      "new_id": "669f6960728ed97e596aeeb4efac139991ff6106",
      "new_mode": 33188,
      "new_path": "kernel/sched/core.c"
    }
  ]
}
