diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-17 17:26:43 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-17 17:33:17 +0200 |
commit | 39675f7a7c7e7702f7d5341f1e0d01db746543a0 (patch) | |
tree | 5109d844e69ee0f48e8575f487967a78cb8b9c3c /Documentation/spi | |
parent | 0fca97a29b83e3f315c14ed2372cfd0f9ee0a006 (diff) | |
download | linux-39675f7a7c7e7702f7d5341f1e0d01db746543a0.tar.gz linux-39675f7a7c7e7702f7d5341f1e0d01db746543a0.tar.bz2 linux-39675f7a7c7e7702f7d5341f1e0d01db746543a0.zip |
ALSA: rawmidi: Change resized buffers atomically
The SNDRV_RAWMIDI_IOCTL_PARAMS ioctl may resize the buffers and the
current code is racy. For example, the sequencer client may write to
buffer while it being resized.
As a simple workaround, let's switch to the resized buffer inside the
stream runtime lock.
Reported-by: syzbot+52f83f0ea8df16932f7f@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/spi')
0 files changed, 0 insertions, 0 deletions