All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] ALSA: ctl: add dimension information validator
@ 2016-07-01  4:15 Takashi Sakamoto
  2016-07-01  4:15 ` [PATCH 1/3] ALSA: echoaudio: purge contradictions between dimension matrix members and total number of members Takashi Sakamoto
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Takashi Sakamoto @ 2016-07-01  4:15 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

Hi,

This patchset is revised version of my previous one.

[alsa-devel] [PATCH 0/3] ALSA: add dimension information validator
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-June/109811.html

The main purpose of this patchset is the same, just including some changes
below.
 * Add arithmetic overflow check
 * Add negative value check of first dimension level
 * Change function name of the validator and name of local variable so that
   the aim is clear.

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            | 87 +++++++++++++++++++++++++++++++++--------
 sound/pci/echoaudio/echoaudio.c |  6 +--
 2 files changed, 74 insertions(+), 19 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH 0/3 v3] ALSA: ctl: add dimension information validator
@ 2016-07-01 11:10 Takashi Sakamoto
  2016-07-01 11:10 ` [PATCH 2/3] ALSA: control: add dimension validator for userspace element Takashi Sakamoto
  0 siblings, 1 reply; 22+ messages in thread
From: Takashi Sakamoto @ 2016-07-01 11:10 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

This patchset is revised version of my previous one:
[alsa-devel] [PATCH 0/3 v2] ALSA: ctl: add dimension information validator
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-July/109830.html

Changes:
 * Apply simpler prevention of arithmetic overflow.

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            | 78 ++++++++++++++++++++++++++++++++---------
 sound/pci/echoaudio/echoaudio.c |  6 ++--
 2 files changed, 65 insertions(+), 19 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH 0/3] ALSA: add dimension information validator
@ 2016-06-30 14:04 Takashi Sakamoto
  2016-06-30 14:04 ` [PATCH 2/3] ALSA: control: add dimension validator for userspace element Takashi Sakamoto
  0 siblings, 1 reply; 22+ messages in thread
From: Takashi Sakamoto @ 2016-06-30 14:04 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

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(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2016-07-07  8:52 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-01  4:15 [PATCH 0/3 v2] ALSA: ctl: add dimension information validator Takashi Sakamoto
2016-07-01  4:15 ` [PATCH 1/3] ALSA: echoaudio: purge contradictions between dimension matrix members and total number of members Takashi Sakamoto
2016-07-01  4:15 ` [PATCH 2/3] ALSA: control: add dimension validator for userspace element Takashi Sakamoto
2016-07-01  7:19   ` Takashi Iwai
2016-07-01  8:30     ` Takashi Sakamoto
2016-07-01  8:50       ` Takashi Iwai
2016-07-01  9:08         ` Takashi Sakamoto
2016-07-01  9:52           ` Takashi Iwai
2016-07-01 10:46             ` Takashi Sakamoto
2016-07-01 10:52               ` Takashi Iwai
2016-07-01  4:15 ` [PATCH 3/3] ALSA: control: add dimension validator for kernel driver Takashi Sakamoto
  -- strict thread matches above, loose matches on Subject: below --
2016-07-01 11:10 [PATCH 0/3 v3] ALSA: ctl: add dimension information validator Takashi Sakamoto
2016-07-01 11:10 ` [PATCH 2/3] ALSA: control: add dimension validator for userspace element Takashi Sakamoto
2016-07-01 12:29   ` Takashi Sakamoto
2016-07-02  7:56     ` Takashi Iwai
2016-07-06 13:07       ` Takashi Sakamoto
2016-07-06 13:34         ` Takashi Iwai
2016-07-06 14:18           ` Takashi Sakamoto
2016-07-06 14:40             ` Takashi Iwai
2016-07-07  8:52               ` Takashi Sakamoto
2016-06-30 14:04 [PATCH 0/3] ALSA: add dimension information validator Takashi Sakamoto
2016-06-30 14:04 ` [PATCH 2/3] ALSA: control: add dimension validator for userspace element Takashi Sakamoto
2016-06-30 14:56   ` Takashi Iwai
2016-06-30 21:34     ` Takashi Sakamoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.