В ядре Linux была устранена следующая уязвимость: sched_ext: Wait for SCX_OPSS_DISPATCHING перед перемещением задач с DSQs Задача может быть найдена на нелокальном DSQ, в то время как CPU, который отправил его, все еще работает ops.dequeue() и не очищает SCX_OPSS_DISPATCHING. Маршруты потребления и перемещения DSQ не ждут окончания отправки и могут работать над задачей одновременно с диспетчером. Вызовите scx_wait_dispatching() в scx_move_local_task_to_local_dsq(), unlink_dsq_and_switch_rq_lock() и move_task_between_dsqs(), прежде чем они будут работать над задачей.
В scx_move_local_task_to_local_dsq(), подождите до scx_resolve_local_dsq(), так как он может обновить p->scx.flags.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs A task can be found on a non-local DSQ while the CPU which dispatched it is still running ops.dequeue() and hasn't cleared SCX_OPSS_DISPATCHING. The DSQ consume and move paths don't wait for the dispatch to finish and can operate on the task concurrently with the dispatcher. Call scx_wait_dispatching() in scx_move_local_task_to_local_dsq(), unlink_dsq_and_switch_rq_lock() and move_task_between_dsqs() before they operate on the task. In scx_move_local_task_to_local_dsq(), wait before scx_resolve_local_dsq() as it may update p->scx.flags.
Характеристики атаки
Последствия
Строка CVSS v3.1