Hi,
This patchset is to add a validator of dimension information for drivers in kernel/userspace.
The dimension information was added to ALSA control interface. With the information, members in an element compose multi-dimensional matrix. For example, this matrix can be used for row/column table with values. In this case, dimension level 1 and 2 are utilized to describe the number of rows and columns by element member unit.
When dimension information has no contradictions to the number of members in an element, there's no problem. Once it has, it can cause an issue. In worst case, it can cause buffer-overrun in userspace.
The aim of this patchset is to prevent this situation.
Takashi Sakamoto (3): ALSA: echoaudio: purge contradictions between dimension matrix members and total number of members ALSA: control: add dimension validator for userspace element ALSA: control: add dimension validator for kernel driver
sound/core/control.c | 77 ++++++++++++++++++++++++++++++++--------- sound/pci/echoaudio/echoaudio.c | 6 ++-- 2 files changed, 64 insertions(+), 19 deletions(-)