Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1432562lqd; Thu, 25 Apr 2024 15:58:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBg3e+hhAyCK+TZEuyjW8Hqjgm2OFOJHJYBXK3iKOx5yw5XBIxAlTkajFYkyDwF1SK2BMxw4LdiwxGwpc1OEvbxMfg2vHowDaoMUtvzQ== X-Google-Smtp-Source: AGHT+IHA+KH4VW/IOHpU/JUhHKKwu2XIekA+YRMR0Id6DnCsh5GuHihQpFO21IjGjhpJrL2fp7YU X-Received: by 2002:a17:902:784f:b0:1e9:9fdb:567d with SMTP id e15-20020a170902784f00b001e99fdb567dmr983345pln.68.1714085883405; Thu, 25 Apr 2024 15:58:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714085883; cv=pass; d=google.com; s=arc-20160816; b=Cz0HR/hZB6eOCe0GqySl2ZmLeXIbqMf6YOoHyp6gclxFfmmJxBr/n3S0IjN5loTaFU je+jUY53aYkVhk48wsbyH+SGhjUi2CdWKVhElSFOW9jAf6U7E/kccF875Y3wVyOo3h6A SeLN0EI4kVjBggjIn35iy0VjHAg5A/FDzZRTstOz1LZy3ZiigZ8+UlHXqllbLQWDTGBT iFF2v+CvQhC/vEec43ejvNDY9FQQ1bpPwvHefFCVBtRRM1/wnbGcjhfVSSqxHVLIsLuC 7gCTokOlyjUq54BKTsyr3pq1bE9rLzNjwxuETqOPKakMTLJWLGBIHqKqNaAxzUmSsHCh pp1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=rIUPbbBy3jtdFd/AiJwZ9qXxu8bIr3Ik9WI01ccth0I=; fh=PejHI8rMWNuVgpFcTXfCt2KsfLllSU1GPDe0jS8hHCM=; b=Me1eg4D/C3MDeWZdXoqbx5CW3t47cNiGiruckgW5CRbf7nU3H5sBRmzCO1ghARfJWc EUKJuG4d0LDM4kH71kcenC3daJIcDTzLr76ARJd5Hw1XtnRrvy17YOIOkkfCJgEGcHVs l7bRD6PLCxWCJ/6W2nG49Q3cZYR1QFrewEFUptcargTcKVxup0TIOoRowogebizz7bws IafjsaNXaOMvBycoA9Geoz3G0aipiITLtQEz26fF+D+/ytjz7rGyILfTkH23DZ0Pu/Yl y/qwrvmvF616ZNbGRxSwhA0t2UvgV8VOYZ8xkPVMbGruKhlM195y5kXnb8fmum7oZfns h+Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-159343-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159343-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x11-20020a170902ec8b00b001e3e7148e5asi14569072plg.457.2024.04.25.15.58.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 15:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159343-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-159343-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159343-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 44593284F69 for ; Thu, 25 Apr 2024 22:57:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EC08156230; Thu, 25 Apr 2024 22:57:35 +0000 (UTC) Received: from mail115-24.sinamail.sina.com.cn (mail115-24.sinamail.sina.com.cn [218.30.115.24]) (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 0212212BF28 for ; Thu, 25 Apr 2024 22:57:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714085854; cv=none; b=V4YD/BWfbRSE/Rx4AUNbs5pZ223RPO4E9NKC04107PHVp5cKlISU3QHcu5hjGF9FQc8d8xitYsqnrr2MnxjYc6f/B5kyeaVrcRX1sYaD6RsP1TaGdu2GhjSJsfZ0qJ6j7C+AGJCvHscLdi1B4jncsdZIlcyrq1K3UE5OObzfCjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714085854; c=relaxed/simple; bh=LGzbZC8/xoQQsXyfN11J1Puhk0Soqjo6+qmLU5QDD1k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EAbJKQ8hrgqMgA4iwy1CnlElbcCLjhym3n9Z6hvI7hSs+7CNg3dC2iam+uCX9HUEnPM1tA1y75YVkbhiYcBfbVUkAbxHmHV9KSWWyYtvX6PWx+nbpPt2u6jjBZc2izV1uYIqoWE6Yh1aewBnLyJKmFAJB0phYJcF6qGhBLEhMc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([116.24.11.235]) by sina.com (10.75.12.45) with ESMTP id 662ADF4300003BBD; Thu, 26 Apr 2024 06:55:01 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 31961131457685 X-SMAIL-UIID: F35C7840F749482288CF30E0B3AFBC17-20240426-065501-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [usb?] WARNING in wdm_rxwork/usb_submit_urb (2) Date: Fri, 26 Apr 2024 06:55:01 +0800 Message-Id: <20240425225501.3242-1-hdanton@sina.com> In-Reply-To: <00000000000092e8f90616e4627f@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 24 Apr 2024 21:40:22 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: a160e1202ca3 usb: dwc3: qcom: Add multiport suspend/resume.. > git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166f3d27180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing --- x/drivers/usb/class/cdc-wdm.c +++ y/drivers/usb/class/cdc-wdm.c @@ -311,11 +311,12 @@ static void wdm_int_callback(struct urb && !test_bit(WDM_DISCONNECTING, &desc->flags) && !test_bit(WDM_SUSPENDING, &desc->flags)) { rv = usb_submit_urb(desc->response, GFP_ATOMIC); + if (rv) + clear_bit(WDM_RESPONDING, &desc->flags); dev_dbg(&desc->intf->dev, "submit response URB %d\n", rv); } spin_unlock_irqrestore(&desc->iuspin, flags); if (rv < 0) { - clear_bit(WDM_RESPONDING, &desc->flags); if (rv == -EPERM) return; if (rv == -ENOMEM) { --