diff options
author | Takashi Iwai <[email protected]> | 2018-01-09 23:11:03 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2018-01-11 14:37:51 +0100 |
commit | b3defb791b26ea0683a93a4f49c77ec45ec96f10 (patch) | |
tree | c9539c590735a52b90dac37d859d0e49c83d6f5e /scripts/patch-kernel | |
parent | 23b19b7b50fe1867da8d431eea9cd3e4b6328c2c (diff) |
ALSA: seq: Make ioctls race-free
The ALSA sequencer ioctls have no protection against racy calls while
the concurrent operations may lead to interfere with each other. As
reported recently, for example, the concurrent calls of setting client
pool with a combination of write calls may lead to either the
unkillable dead-lock or UAF.
As a slightly big hammer solution, this patch introduces the mutex to
make each ioctl exclusive. Although this may reduce performance via
parallel ioctl calls, usually it's not demanded for sequencer usages,
hence it should be negligible.
Reported-by: Luo Quan <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions