Re: [syzbot] KASAN: use-after-free Read in __snd_rawmidi_transmit_peek

From: syzbot
Date: Mon Apr 18 2022 - 11:25:52 EST


Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+70e777a39907d6d5fd0a@xxxxxxxxxxxxxxxxxxxxxxxxx

Tested on:

commit: a1994480 Merge tag 'hardening-v5.18-rc3' of git://git...
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
kernel config: https://syzkaller.appspot.com/x/.config?x=eb177500e563582f
dashboard link: https://syzkaller.appspot.com/bug?extid=70e777a39907d6d5fd0a
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=13d94b3f700000

Note: testing is done by a robot and is best-effort only.