From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 952AEC433DB for ; Tue, 9 Mar 2021 11:39:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4DCC665259 for ; Tue, 9 Mar 2021 11:39:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbhCILjJ (ORCPT ); Tue, 9 Mar 2021 06:39:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:44540 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbhCILil (ORCPT ); Tue, 9 Mar 2021 06:38:41 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AC3E6AB8C; Tue, 9 Mar 2021 11:38:40 +0000 (UTC) Date: Tue, 09 Mar 2021 12:38:40 +0100 Message-ID: From: Takashi Iwai 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 In-Reply-To: <000000000000217e4d05bd18e750@google.com> References: <000000000000217e4d05bd18e750@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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