Home
last modified time | relevance | path

Searched hist:"07 f4d9d74a04aa7c72c5dae0ef97565f28f17b92" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/include/sound/
H A Dcore.hdiff 07f4d9d74a04aa7c72c5dae0ef97565f28f17b92 Wed Jun 18 06:32:31 CDT 2014 Lars-Peter Clausen <lars@metafoo.de> ALSA: control: Protect user controls against concurrent access

The user-control put and get handlers as well as the tlv do not protect against
concurrent access from multiple threads. Since the state of the control is not
updated atomically it is possible that either two write operations or a write
and a read operation race against each other. Both can lead to arbitrary memory
disclosure. This patch introduces a new lock that protects user-controls from
concurrent access. Since applications typically access controls sequentially
than in parallel a single lock per card should be fine.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
/openbmc/linux/sound/core/
H A Dinit.cdiff 07f4d9d74a04aa7c72c5dae0ef97565f28f17b92 Wed Jun 18 06:32:31 CDT 2014 Lars-Peter Clausen <lars@metafoo.de> ALSA: control: Protect user controls against concurrent access

The user-control put and get handlers as well as the tlv do not protect against
concurrent access from multiple threads. Since the state of the control is not
updated atomically it is possible that either two write operations or a write
and a read operation race against each other. Both can lead to arbitrary memory
disclosure. This patch introduces a new lock that protects user-controls from
concurrent access. Since applications typically access controls sequentially
than in parallel a single lock per card should be fine.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
H A Dcontrol.cdiff 07f4d9d74a04aa7c72c5dae0ef97565f28f17b92 Wed Jun 18 06:32:31 CDT 2014 Lars-Peter Clausen <lars@metafoo.de> ALSA: control: Protect user controls against concurrent access

The user-control put and get handlers as well as the tlv do not protect against
concurrent access from multiple threads. Since the state of the control is not
updated atomically it is possible that either two write operations or a write
and a read operation race against each other. Both can lead to arbitrary memory
disclosure. This patch introduces a new lock that protects user-controls from
concurrent access. Since applications typically access controls sequentially
than in parallel a single lock per card should be fine.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>