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,DKIM_SIGNED, DKIM_VALID,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 2BB3EC433DB for ; Tue, 9 Mar 2021 11:39:45 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6A7865228 for ; Tue, 9 Mar 2021 11:39:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6A7865228 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 4A80417C2; Tue, 9 Mar 2021 12:38:51 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4A80417C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1615289981; bh=s3jwF99y0+cbJHzmzctZ84t9ndOKCR30S8xAdk83f30=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ReZS1DsErUB/AhZolmWHTQhnZjkIZNlPXJ8EYgLwB/jW1Au9U8l0Frow2dW6uGFQD VZ1qVbodqahEKXDNux6Amr0evYlCN8DuiQDaWAVV6dXeTuVAdp7WG4iXSuHTphYKrR UuKoIAwHJ6Lw64RqcgHmki8J3ti6krJRTWg/+tRI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C2F6EF8019B; Tue, 9 Mar 2021 12:38:50 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 74F6CF80227; Tue, 9 Mar 2021 12:38:48 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8EE7EF800D0 for ; Tue, 9 Mar 2021 12:38:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8EE7EF800D0 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 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 Cc: tiwai@suse.com, kai.heng.feng@canonical.com, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 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