В ядре Linux была устранена следующая уязвимость: media: chips-media: wave5: Fix Reports От Kernel Lock Validator handle_dynamic_resolution изменение требует приобретения state_lock на базе lockdep_assert_held. Однако вызов handle_dynamic_resolution_change в initialize_sequence неправильно получает блокировку перед вызовом. Поскольку v4l2_ctrl_find и s_ctrl могут спать, их не следует вызывать, пока замок уже удерживается.
Храните fbc_buf_count, а затем правильно обновите управление, как только блокировка будет освобождена.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: media: chips-media: wave5: Fix Reports from Kernel Lock Validator handle_dynamic_resolution change requires that the state_lock be acquired based on the lockdep_assert_held. However, the handle_dynamic_resolution_change call in initialize_sequence does not properly obtain the lock before calling. Since the v4l2_ctrl_find and s_ctrl can sleep, they should not be called while a lock is already held. Store off the fbc_buf_count then properly update control once lock has been freed.