]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: rawmidi: Initialize allocated buffers
authorTakashi Iwai <tiwai@suse.de>
Mon, 3 Sep 2018 13:16:43 +0000 (15:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Sep 2018 13:16:43 +0000 (15:16 +0200)
commitdc50b624321caefe035440b6af14191f0164f36f
tree7fcc7ecd8dee882d67f5f810eea08dfc38b866b3
parentfb39f78f5d49b5b01b3769efeec142b9c1bfbc9f
ALSA: rawmidi: Initialize allocated buffers

syzbot reported the uninitialized value exposure in certain situations
using virmidi loop.  It's likely a very small race at writing and
reading, and the influence is almost negligible.  But it's safer to
paper over this just by replacing the existing kvmalloc() with
kvzalloc().

Reported-by: syzbot+194dffdb8b22fc5d207a@syzkaller.appspotmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/rawmidi.c