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

From: Dmitry Vyukov
Date: Mon Jul 04 2022 - 03:51:46 EST


On Fri, 1 Jul 2022 at 21:21, syzbot
<syzbot+39e3268af9968f153591@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> syzbot suspects this issue was fixed by commit:
>
> commit 0125de38122f0f66bf61336158d12a1aabfe6425
> Author: Takashi Iwai <tiwai@xxxxxxx>
> Date: Wed May 25 13:12:03 2022 +0000
>
> ALSA: usb-audio: Cancel pending work at closing a MIDI substream
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1180b25c080000
> start commit: 2a5699b0de4e Merge tag 'leds-5.19-rc1' of git://git.kernel..
> git tree: upstream
> kernel config: https://syzkaller.appspot.com/x/.config?x=f915857c44e13980
> dashboard link: https://syzkaller.appspot.com/bug?extid=39e3268af9968f153591
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=119d1fcbf00000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17716bedf00000
>
> If the result looks correct, please mark the issue as fixed by replying with:
>
> #syz fix: ALSA: usb-audio: Cancel pending work at closing a MIDI substream
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection

Looks reasonable:

#syz fix: ALSA: usb-audio: Cancel pending work at closing a MIDI substream