В ядре Linux устранена следующая уязвимость:
регулятор: ядро: исправление блокировки в пути ошибки регулятора_resolve_supply()
Если позднее включение регулятора питания не удается
регулятор_resolve_supply(), код в настоящее время запускает блокировку
предупреждение:
ВНИМАНИЕ: driver/regulator/core.c:2649 по адресу _regulator_put+0x80/0xa0, CPU#6: kworker/u32:4/596.
... Трассировка звонков:
_regulator_put+0x80/0xa0 (P)
регулятор_resolve_supply+0x7cc/0xbe0
регулятор_register_resolve_supply+0x28/0xb8
поскольку при вызове _regulator_put() должен сохраняться Regulator_list_mutex. Чтобы решить эту проблему, просто переключитесь на использование регулятора_put().
При этом мы также должны убедиться, что не происходит одновременного доступа. в наш rdev, пока мы очищаем указатель питания. Добавьте подходящее блокировка, чтобы гарантировать это. Хотя рассматриваемый код будет полностью удален в дальнейшем. commit, я считаю, что все же полезно исправить это перед удаление для дальнейшего использования.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: regulator: core: fix locking in regulator_resolve_supply() error path If late enabling of a supply regulator fails in regulator_resolve_supply(), the code currently triggers a lockdep warning: WARNING: drivers/regulator/core.c:2649 at _regulator_put+0x80/0xa0, CPU#6: kworker/u32:4/596 ... Call trace: _regulator_put+0x80/0xa0 (P) regulator_resolve_supply+0x7cc/0xbe0 regulator_register_resolve_supply+0x28/0xb8 as the regulator_list_mutex must be held when calling _regulator_put(). To solve this, simply switch to using regulator_put(). While at it, we should also make sure that no concurrent access happens to our rdev while we clear out the supply pointer. Add appropriate locking to ensure that. While the code in question will be removed altogether in a follow-up commit, I believe it is still beneficial to have this corrected before removal for future reference.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.2.1
|
6.19.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.2:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.2:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.2:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.2:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.2:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:4.2:rc8:*:*:*:*:*:*
|
— | — |