Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2479041pxb; Tue, 9 Mar 2021 03:40:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMru0aJwoHP+pPK9AUgi/86adl4F9GeUe2qP2rjYlbpBWVRvbFcAR2hG7VPQkJGO2klKB2 X-Received: by 2002:a17:906:ad4:: with SMTP id z20mr19284025ejf.496.1615290029371; Tue, 09 Mar 2021 03:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615290029; cv=none; d=google.com; s=arc-20160816; b=ltJVDq6UqnAC8YgUkSTQnUa2rsmQvTON+bmV4/5VBZLmLJGq1NSxJ05FljvBJ7Zy1x zUNgfte9c0JD0mC5HJJ9eeeWsGKHTPm2/Hj6cVtC6JgGoXNG7n+5kMkRXcW+EeWFHlqu UqFQ8LDjkIteBaH44UXE+Ts3EE2QvOVVGUgtJ1WHoBTvHBWUDggEngYQQIcI3K73nU5l /sdrTw7Xr68Eqdew0uPB9mjAQbO8EwNo/3m3qTM4CSqsvn+O2IU3ogR8SIUBzMDkyk9k APLChk7W2HEX/hgTKUcidFzAhAUKg3SOtoingHhCQJcCi4luh3+n1gmLCCpL6gnGjElv aKUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=SS1qp+5OVOSrI1r39uqT1Wz3+vaQM9kWXHRPXHagq+A=; b=SlOAh1v+vvGqfDxlnl3NlvE6PFbjZF3/QZjbj90ZaCW5f42oo3NZ3hpMUsVrk6gt1w 0wgZ0TrWGgPryI9ZP/zdK6ApGmj2TIGVf5cJidtwawm9cJW7KsWsvstrGMOR/FNWKpFH jb+ujMA+4G6qYxHUstNUIBh17LAbAIK65EhLdMrHYCpks+eRbY3U8zwfooKhdojMjK0G hEzf8W6uleAMuPBhwdahuSBiVF501ae6TCDfhwstQmfKplKfbbzub16gGc//AbVhjoof OR2R4N1UwcosSIvfcmpcjyLAJsEJTNE9IoWJzKDgWHwmPjayLVERwjM3VRb5fGFUY+Q0 qMqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si3318847edc.254.2021.03.09.03.40.06; Tue, 09 Mar 2021 03:40:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbhCILjI (ORCPT + 99 others); Tue, 9 Mar 2021 06:39:08 -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