В ядре Linux устранена следующая уязвимость:
регулятор: ядро: исправление несбалансированного количества ссылок на узлы в регуляторе_dev_lookup()
Я получил следующий отчет:
OF: ОШИБКА: утечка памяти, ожидаемый счетчик ссылок 1 вместо 2,
of_node_get()/of_node_put() несбалансировано — уничтожить запись cset:
прикрепить узел наложения /i2c/pmic@62/regulators/exten
В of_get_regulator() узел возвращается из of_parse_phandle().
с увеличенным счетчиком ссылок после его использования необходимо вызвать of_node_put().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: regulator: core: fix unbalanced of node refcount in regulator_dev_lookup() I got the the following report: OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /i2c/pmic@62/regulators/exten In of_get_regulator(), the node is returned from of_parse_phandle() with refcount incremented, after using it, of_node_put() need be called.