{"api_version":"1","generated_at":"2026-12-04T13:19:53+00:00","cve":"CVE-2026-143086","urls":{"html":"https://cve.report/CVE-2026-143086","api":"https://cve.report/api/cve/CVE-2026-143086.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143086","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143086"},"summary":{"title":"sched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()\n\nA sched_setattr() with SCHED_FLAG_KEEP_POLICY on a SCHED_DEADLINE task\nunlocks cpuset_mutex twice if the task's policy changes concurrently:\n\n  WARNING: bad unlock balance detected!\n  7.4.0-rc1 #1 Not tainted\n  -------------------------------------\n  repro/126 is trying to release lock (cpuset_mutex) at:\n  [<ffffffff9a17cacc>] __sched_setscheduler+0x9cc/0xc40\n  but there are no more locks to release!\n  ...\n  Call Trace:\n   print_unlock_imbalance_bug.part.0+0xfb/0x110\n   lock_release+0x286/0x2e0\n   __mutex_unlock_slowpath+0x1a/0x400\n   __sched_setscheduler+0x9cc/0xc40\n   __x64_sys_sched_setattr+0xa3/0x1b0\n   do_syscall_64+0x106/0x5f0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n__sched_setscheduler() samples p->policy before taking any lock, and\nrestarts from the recheck label if p->policy differs under the rq lock.\nThe restart drops cpuset_mutex but leaves cpuset_locked set, so a pass\nthat no longer needs the mutex still unlocks it on its way out:\n\n  CPU 1                                CPU 2\n  __sched_setscheduler(KEEP_POLICY)\n    policy = p->policy /* DEADLINE */\n                                       __sched_setscheduler(SCHED_OTHER)\n                                         p->policy = SCHED_OTHER\n    cpuset_locked = true\n    cpuset_lock()\n    rq = task_rq_lock(p)\n    oldpolicy != p->policy\n      cpuset_unlock()\n      goto recheck\n    /* no cpuset_lock() this time */\n    ...\n    if (cpuset_locked)\n      cpuset_unlock()\n\nWithout CONFIG_DEBUG_MUTEXES, or CONFIG_DEBUG_RT_MUTEXES on PREEMPT_RT,\nnothing warns. The second unlock still clears the owner field regardless\nof who holds the mutex, so another task can lose cpuset_mutex inside its\ncritical section. Entering SCHED_DEADLINE needs CAP_SYS_NICE, but a\nracing caller that owns the task does not need it if it samples a policy\nother than SCHED_DEADLINE.\n\nClear cpuset_locked when dropping the mutex for the restart. This should be\nsafe because the flag is only tested on the paths leaving the next pass,\nafter that pass has set it again if it took the mutex.\n\nThe following program, run as root, reproduces the splat, which no longer\nappears with this applied. On PREEMPT_RT it crashes the kernel within\nseconds, which this also fixes:\n\n  #define _GNU_SOURCE\n  #include <pthread.h>\n  #include <stdint.h>\n  #include <sys/syscall.h>\n  #include <unistd.h>\n\n  struct attr {\n      uint32_t size, policy;\n      uint64_t flags;\n      int32_t nice;\n      uint32_t prio;\n      uint64_t runtime, deadline, period;\n  };\n\n  static volatile int stop;\n  static volatile pid_t target;\n\n  static void set(struct attr a)\n  {\n      a.size = sizeof(a);\n      syscall(SYS_sched_setattr, target, &a, 0);\n  }\n\n  static void *sleeper(void *arg)\n  {\n      target = syscall(SYS_gettid);\n      while (!stop)\n          usleep(1000);\n      return arg;\n  }\n\n  static void *switcher(void *arg)\n  {\n      while (!stop) {\n          /* SCHED_DEADLINE, 2us every 1s */\n          set((struct attr){ .policy = 6, .runtime = 2000,\n                             .deadline = 1000000000,\n                             .period = 1000000000 });\n          set((struct attr){ .policy = 0 }); /* SCHED_OTHER */\n      }\n      return arg;\n  }\n\n  static void *racer(void *arg)\n  {\n      /* KEEP_POLICY | KEEP_PARAMS */\n      while (!stop)\n          set((struct attr){ .flags = 0x18 });\n      return arg;\n  }\n\n  int main(void)\n  {\n      pthread_t t[5];\n      int i;\n\n      pthread_create(&t[0], NULL, sleeper, NULL);\n      while (!target)\n          usleep(100);\n      pthread_create(&t[1], NULL, switcher, NULL);\n      for (i = 2; i < 5; i++)\n          pthread_create(&t[i], NULL, racer, NULL);\n      sleep(30);\n      stop = 1;\n      for (i = 0; i < 5; i++)\n          pthread_join(t[i], NULL);\n      return 0;\n  }\n\nAn LLM helped find the PREEMPT_RT crash and write this patch and its test.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:39","updated_at":"2026-12-03 10:17:39"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1a681de657bddffbd43d88a592525362404c6e3d","name":"https://git.kernel.org/stable/c/1a681de657bddffbd43d88a592525362404c6e3d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a87f48135265857af4ae9423963c873292310064","name":"https://git.kernel.org/stable/c/a87f48135265857af4ae9423963c873292310064","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0","name":"https://git.kernel.org/stable/c/cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f7141257dd67d4936f906a6cfd1d0007721f6898","name":"https://git.kernel.org/stable/c/f7141257dd67d4936f906a6cfd1d0007721f6898","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143086","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143086","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 111cd11bbc54850f24191c52ff217da88a5e639b 1a681de657bddffbd43d88a592525362404c6e3d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 111cd11bbc54850f24191c52ff217da88a5e639b a87f48135265857af4ae9423963c873292310064 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 111cd11bbc54850f24191c52ff217da88a5e639b cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 111cd11bbc54850f24191c52ff217da88a5e639b f7141257dd67d4936f906a6cfd1d0007721f6898 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b950133d9a73fbd502baea12369ccb99d6446c60 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d0eb4917f4d36f106e2c5daa9598f6f8bd08a734 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9bcfe1527882deac71d367ea1ff59d38c0fe9486 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 00f3719c85bf78412c9e6d9178099df5dd76634b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.193 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.129 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.50 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.4.13 6.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.5","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143086","cve":"CVE-2026-143086","epss":"0.002090000","percentile":"0.116450000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/sched/syscalls.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1a681de657bddffbd43d88a592525362404c6e3d","status":"affected","version":"111cd11bbc54850f24191c52ff217da88a5e639b","versionType":"git"},{"lessThan":"a87f48135265857af4ae9423963c873292310064","status":"affected","version":"111cd11bbc54850f24191c52ff217da88a5e639b","versionType":"git"},{"lessThan":"cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0","status":"affected","version":"111cd11bbc54850f24191c52ff217da88a5e639b","versionType":"git"},{"lessThan":"f7141257dd67d4936f906a6cfd1d0007721f6898","status":"affected","version":"111cd11bbc54850f24191c52ff217da88a5e639b","versionType":"git"},{"status":"affected","version":"b950133d9a73fbd502baea12369ccb99d6446c60","versionType":"git"},{"status":"affected","version":"d0eb4917f4d36f106e2c5daa9598f6f8bd08a734","versionType":"git"},{"status":"affected","version":"9bcfe1527882deac71d367ea1ff59d38c0fe9486","versionType":"git"},{"status":"affected","version":"00f3719c85bf78412c9e6d9178099df5dd76634b","versionType":"git"},{"lessThan":"5.11","status":"affected","version":"5.10.193","versionType":"semver"},{"lessThan":"5.16","status":"affected","version":"5.15.129","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.50","versionType":"semver"},{"lessThan":"6.5","status":"affected","version":"6.4.13","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/sched/syscalls.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.5"},{"lessThan":"6.5","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"6.5","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.193","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.129","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.50","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()\n\nA sched_setattr() with SCHED_FLAG_KEEP_POLICY on a SCHED_DEADLINE task\nunlocks cpuset_mutex twice if the task's policy changes concurrently:\n\n  WARNING: bad unlock balance detected!\n  7.4.0-rc1 #1 Not tainted\n  -------------------------------------\n  repro/126 is trying to release lock (cpuset_mutex) at:\n  [<ffffffff9a17cacc>] __sched_setscheduler+0x9cc/0xc40\n  but there are no more locks to release!\n  ...\n  Call Trace:\n   print_unlock_imbalance_bug.part.0+0xfb/0x110\n   lock_release+0x286/0x2e0\n   __mutex_unlock_slowpath+0x1a/0x400\n   __sched_setscheduler+0x9cc/0xc40\n   __x64_sys_sched_setattr+0xa3/0x1b0\n   do_syscall_64+0x106/0x5f0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n__sched_setscheduler() samples p->policy before taking any lock, and\nrestarts from the recheck label if p->policy differs under the rq lock.\nThe restart drops cpuset_mutex but leaves cpuset_locked set, so a pass\nthat no longer needs the mutex still unlocks it on its way out:\n\n  CPU 1                                CPU 2\n  __sched_setscheduler(KEEP_POLICY)\n    policy = p->policy /* DEADLINE */\n                                       __sched_setscheduler(SCHED_OTHER)\n                                         p->policy = SCHED_OTHER\n    cpuset_locked = true\n    cpuset_lock()\n    rq = task_rq_lock(p)\n    oldpolicy != p->policy\n      cpuset_unlock()\n      goto recheck\n    /* no cpuset_lock() this time */\n    ...\n    if (cpuset_locked)\n      cpuset_unlock()\n\nWithout CONFIG_DEBUG_MUTEXES, or CONFIG_DEBUG_RT_MUTEXES on PREEMPT_RT,\nnothing warns. The second unlock still clears the owner field regardless\nof who holds the mutex, so another task can lose cpuset_mutex inside its\ncritical section. Entering SCHED_DEADLINE needs CAP_SYS_NICE, but a\nracing caller that owns the task does not need it if it samples a policy\nother than SCHED_DEADLINE.\n\nClear cpuset_locked when dropping the mutex for the restart. This should be\nsafe because the flag is only tested on the paths leaving the next pass,\nafter that pass has set it again if it took the mutex.\n\nThe following program, run as root, reproduces the splat, which no longer\nappears with this applied. On PREEMPT_RT it crashes the kernel within\nseconds, which this also fixes:\n\n  #define _GNU_SOURCE\n  #include <pthread.h>\n  #include <stdint.h>\n  #include <sys/syscall.h>\n  #include <unistd.h>\n\n  struct attr {\n      uint32_t size, policy;\n      uint64_t flags;\n      int32_t nice;\n      uint32_t prio;\n      uint64_t runtime, deadline, period;\n  };\n\n  static volatile int stop;\n  static volatile pid_t target;\n\n  static void set(struct attr a)\n  {\n      a.size = sizeof(a);\n      syscall(SYS_sched_setattr, target, &a, 0);\n  }\n\n  static void *sleeper(void *arg)\n  {\n      target = syscall(SYS_gettid);\n      while (!stop)\n          usleep(1000);\n      return arg;\n  }\n\n  static void *switcher(void *arg)\n  {\n      while (!stop) {\n          /* SCHED_DEADLINE, 2us every 1s */\n          set((struct attr){ .policy = 6, .runtime = 2000,\n                             .deadline = 1000000000,\n                             .period = 1000000000 });\n          set((struct attr){ .policy = 0 }); /* SCHED_OTHER */\n      }\n      return arg;\n  }\n\n  static void *racer(void *arg)\n  {\n      /* KEEP_POLICY | KEEP_PARAMS */\n      while (!stop)\n          set((struct attr){ .flags = 0x18 });\n      return arg;\n  }\n\n  int main(void)\n  {\n      pthread_t t[5];\n      int i;\n\n      pthread_create(&t[0], NULL, sleeper, NULL);\n      while (!target)\n          usleep(100);\n      pthread_create(&t[1], NULL, switcher, NULL);\n      for (i = 2; i < 5; i++)\n          pthread_create(&t[i], NULL, racer, NULL);\n      sleep(30);\n      stop = 1;\n      for (i = 0; i < 5; i++)\n          pthread_join(t[i], NULL);\n      return 0;\n  }\n\nAn LLM helped find the PREEMPT_RT crash and write this patch and its test."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:19:07.856Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1a681de657bddffbd43d88a592525362404c6e3d"},{"url":"https://git.kernel.org/stable/c/a87f48135265857af4ae9423963c873292310064"},{"url":"https://git.kernel.org/stable/c/cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0"},{"url":"https://git.kernel.org/stable/c/f7141257dd67d4936f906a6cfd1d0007721f6898"}],"title":"sched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143086","datePublished":"2026-12-03T09:19:07.856Z","dateReserved":"2026-12-03T03:10:28.347Z","dateUpdated":"2026-12-03T09:19:07.856Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:39","lastModifiedDate":"2026-12-03 10:17:39","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143086","Ordinal":"1","Title":"sched/core: Fix cpuset_mutex double unlock in __sched_setschedul","CVE":"CVE-2026-143086","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143086","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()\n\nA sched_setattr() with SCHED_FLAG_KEEP_POLICY on a SCHED_DEADLINE task\nunlocks cpuset_mutex twice if the task's policy changes concurrently:\n\n  WARNING: bad unlock balance detected!\n  7.4.0-rc1 #1 Not tainted\n  -------------------------------------\n  repro/126 is trying to release lock (cpuset_mutex) at:\n  [<ffffffff9a17cacc>] __sched_setscheduler+0x9cc/0xc40\n  but there are no more locks to release!\n  ...\n  Call Trace:\n   print_unlock_imbalance_bug.part.0+0xfb/0x110\n   lock_release+0x286/0x2e0\n   __mutex_unlock_slowpath+0x1a/0x400\n   __sched_setscheduler+0x9cc/0xc40\n   __x64_sys_sched_setattr+0xa3/0x1b0\n   do_syscall_64+0x106/0x5f0\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n__sched_setscheduler() samples p->policy before taking any lock, and\nrestarts from the recheck label if p->policy differs under the rq lock.\nThe restart drops cpuset_mutex but leaves cpuset_locked set, so a pass\nthat no longer needs the mutex still unlocks it on its way out:\n\n  CPU 1                                CPU 2\n  __sched_setscheduler(KEEP_POLICY)\n    policy = p->policy /* DEADLINE */\n                                       __sched_setscheduler(SCHED_OTHER)\n                                         p->policy = SCHED_OTHER\n    cpuset_locked = true\n    cpuset_lock()\n    rq = task_rq_lock(p)\n    oldpolicy != p->policy\n      cpuset_unlock()\n      goto recheck\n    /* no cpuset_lock() this time */\n    ...\n    if (cpuset_locked)\n      cpuset_unlock()\n\nWithout CONFIG_DEBUG_MUTEXES, or CONFIG_DEBUG_RT_MUTEXES on PREEMPT_RT,\nnothing warns. The second unlock still clears the owner field regardless\nof who holds the mutex, so another task can lose cpuset_mutex inside its\ncritical section. Entering SCHED_DEADLINE needs CAP_SYS_NICE, but a\nracing caller that owns the task does not need it if it samples a policy\nother than SCHED_DEADLINE.\n\nClear cpuset_locked when dropping the mutex for the restart. This should be\nsafe because the flag is only tested on the paths leaving the next pass,\nafter that pass has set it again if it took the mutex.\n\nThe following program, run as root, reproduces the splat, which no longer\nappears with this applied. On PREEMPT_RT it crashes the kernel within\nseconds, which this also fixes:\n\n  #define _GNU_SOURCE\n  #include <pthread.h>\n  #include <stdint.h>\n  #include <sys/syscall.h>\n  #include <unistd.h>\n\n  struct attr {\n      uint32_t size, policy;\n      uint64_t flags;\n      int32_t nice;\n      uint32_t prio;\n      uint64_t runtime, deadline, period;\n  };\n\n  static volatile int stop;\n  static volatile pid_t target;\n\n  static void set(struct attr a)\n  {\n      a.size = sizeof(a);\n      syscall(SYS_sched_setattr, target, &a, 0);\n  }\n\n  static void *sleeper(void *arg)\n  {\n      target = syscall(SYS_gettid);\n      while (!stop)\n          usleep(1000);\n      return arg;\n  }\n\n  static void *switcher(void *arg)\n  {\n      while (!stop) {\n          /* SCHED_DEADLINE, 2us every 1s */\n          set((struct attr){ .policy = 6, .runtime = 2000,\n                             .deadline = 1000000000,\n                             .period = 1000000000 });\n          set((struct attr){ .policy = 0 }); /* SCHED_OTHER */\n      }\n      return arg;\n  }\n\n  static void *racer(void *arg)\n  {\n      /* KEEP_POLICY | KEEP_PARAMS */\n      while (!stop)\n          set((struct attr){ .flags = 0x18 });\n      return arg;\n  }\n\n  int main(void)\n  {\n      pthread_t t[5];\n      int i;\n\n      pthread_create(&t[0], NULL, sleeper, NULL);\n      while (!target)\n          usleep(100);\n      pthread_create(&t[1], NULL, switcher, NULL);\n      for (i = 2; i < 5; i++)\n          pthread_create(&t[i], NULL, racer, NULL);\n      sleep(30);\n      stop = 1;\n      for (i = 0; i < 5; i++)\n          pthread_join(t[i], NULL);\n      return 0;\n  }\n\nAn LLM helped find the PREEMPT_RT crash and write this patch and its test.","Type":"Description","Title":"sched/core: Fix cpuset_mutex double unlock in __sched_setschedul"}]}}}