From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DA4E189BBF; Tue, 15 Oct 2024 06:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728974890; cv=none; b=GVUqRCtWMPuhymz5eDjmlu86leJnJtKSz+3CVN3xM7H/dlsTGeg+8NdPqgNsyCIRzEl/sRxPciIxGMH/Yv17qNQc3TQ67JntuyT8YuAT5R2G5TqJ5JuhoW0MSidkTQ93oGRHqXJbAbcFiNCAAV9kPxE808zys3OXJUotnhoF+dI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728974890; c=relaxed/simple; bh=Mciw6yhCANdXF5sjQVXRJKl08/eUKEIsu2jyoWqK8uw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RT8q8dwrtX7MXFTFJgK2xeNGajCi2r8Fa3ythU7r6/jOqfFMK/BnLyMC7hk67qS6LpThG05FGldX6S2hw4QL16N67jUxME/FjFiXjkKKozJMyFW7jQXqe1fzjoKNe0Vtejy59g8tfduUu4fDBM8NQ+aV0U8PD5TdUDUZs9FsjwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0kEBBViw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0kEBBViw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D3A5C4CEC7; Tue, 15 Oct 2024 06:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728974890; bh=Mciw6yhCANdXF5sjQVXRJKl08/eUKEIsu2jyoWqK8uw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0kEBBViwGucY+T//4KaFg6XYuQDpM4aKae1jn7orluthv9c7oKjAbFco858au0N6b 1MKPdTl8j+RRpoPHCyOCt+yBv+KFWJ/KSgrg6xg5MMSHsRxbWys/ZDfucBzpAGmK+n v+zomLwruUhm3W5X07H1gtzInHO7T1kBgLsDOF0E= Date: Tue, 15 Oct 2024 08:48:04 +0200 From: Greg Kroah-Hartman To: Hui Guo Cc: Alan Stern , Alex Elder , Aditya Garg , Grant Grundler , Kerem Karabay , Douglas Anderson , Oliver Neukum , Yajun Deng , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Andrew Morton , syzkaller-bugs@googlegroups.com Subject: Re: WARNING: refcount bug in put_device Message-ID: <2024101515-helmet-stoic-1c97@gregkh> References: Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Oct 15, 2024 at 02:37:47PM +0800, Hui Guo wrote: > Hi Kernel Maintainers, > we found a crash "WARNING: refcount bug in put_device" in upstream, we > also have successfully reproduced it manually: > > HEAD Commit: 9852d85ec9d492ebef56dc5f229416c925758edc(tag 'v6.12-rc1') > kernel config: https://raw.githubusercontent.com/androidAppGuard/KernelBugs/main/6.12.config > > console output: > https://raw.githubusercontent.com/androidAppGuard/KernelBugs/main/9852d85ec9d492ebef56dc5f229416c925758edc/83e10c2b482009dbb3b32ece907dcc361978f9b9/log0 > repro report: https://raw.githubusercontent.com/androidAppGuard/KernelBugs/main/9852d85ec9d492ebef56dc5f229416c925758edc/83e10c2b482009dbb3b32ece907dcc361978f9b9/repro.report > syz reproducer: > https://raw.githubusercontent.com/androidAppGuard/KernelBugs/main/9852d85ec9d492ebef56dc5f229416c925758edc/83e10c2b482009dbb3b32ece907dcc361978f9b9/repro.prog > c reproducer: https://raw.githubusercontent.com/androidAppGuard/KernelBugs/main/9852d85ec9d492ebef56dc5f229416c925758edc/83e10c2b482009dbb3b32ece907dcc361978f9b9/repro.cprog As this is using a "fake" yealink device, odds are there's some reference counting bug on the disconnect path that you have found. Care to send a patch to fix it up as you can test it easily? thanks, greg k-h