public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: alsa-devel@alsa-project.org
Cc: kai.heng.feng@canonical.com, linux-kernel@vger.kernel.org,
	perex@perex.cz, syzkaller-bugs@googlegroups.com, tiwai@suse.com
Subject: Re: [syzbot] KASAN: use-after-free Read in usb_audio_disconnect
Date: Tue, 09 Mar 2021 12:38:40 +0100	[thread overview]
Message-ID: <s5him601rr3.wl-tiwai@suse.de> (raw)
In-Reply-To: <000000000000217e4d05bd18e750@google.com>

On Tue, 09 Mar 2021 12:32:18 +0100,
syzbot wrote:
> 
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    4641b323 Add linux-next specific files for 20210305
> git tree:       linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=103252ead00000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=b87b6a083d302a90
> dashboard link: https://syzkaller.appspot.com/bug?extid=ffad4c74b3b3ea3aa9c3
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1122d35cd00000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=17f6476cd00000
> 
> The issue was bisected to:
> 
> commit 9799110825dba087c2bdce886977cf84dada2005
> Author: Kai-Heng Feng <kai.heng.feng@canonical.com>
> Date:   Thu Mar 4 04:34:16 2021 +0000
> 
>     ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()
> 
> bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=166d91ead00000
> final oops:     https://syzkaller.appspot.com/x/report.txt?x=156d91ead00000
> console output: https://syzkaller.appspot.com/x/log.txt?x=116d91ead00000
> 
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+ffad4c74b3b3ea3aa9c3@syzkaller.appspotmail.com
> Fixes: 9799110825db ("ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()")
> 
> usb 1-1: USB disconnect, device number 2
> ==================================================================
> BUG: KASAN: use-after-free in usb_audio_disconnect+0x750/0x800 sound/usb/card.c:918

This must be fixed by the commit that was already merged to sound.git
tree today:
c5aa956eaeb0 ("ALSA: usb-audio: fix use after free in usb_audio_disconnect")


thanks,

Takashi

  reply	other threads:[~2021-03-09 11:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09 11:32 [syzbot] KASAN: use-after-free Read in usb_audio_disconnect syzbot
2021-03-09 11:38 ` Takashi Iwai [this message]
2021-03-09 12:22   ` Dmitry Vyukov
2021-03-09 12:23     ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5him601rr3.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=kai.heng.feng@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox