Takashi Iwai 39675f7a7c 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>
2018-07-17 17:33:17 +02:00
..
2017-09-04 14:50:49 +02:00
2018-06-15 18:10:01 -03:00
2018-06-12 16:19:22 -07:00
2017-11-13 15:45:57 +01:00
2018-06-07 12:34:37 -07:00
2017-11-13 15:45:57 +01:00
2018-06-15 17:24:40 +09:00
2018-05-31 09:11:03 +02:00