Please sign in to comment.
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 <firstname.lastname@example.org> Acked-by: Jaroslav Kysela <email@example.com> Cc: <firstname.lastname@example.org> Signed-off-by: Takashi Iwai <email@example.com>
- Loading branch information...
Showing with 28 additions and 6 deletions.