diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-17 17:26:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-25 10:18:15 +0200 |
commit | 01b6ca65e10f2669965fbc62440cb9b09a25d086 (patch) | |
tree | af7a903e5c48eec6d5c23d66052394064b0b6a03 /kernel/debug/kdb/.gitignore | |
parent | 0cb6eaf5e5be88ddfda51100adc7149d00a28bb2 (diff) |
ALSA: rawmidi: Change resized buffers atomically
commit 39675f7a7c7e7702f7d5341f1e0d01db746543a0 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/debug/kdb/.gitignore')
0 files changed, 0 insertions, 0 deletions