Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp309416pxb; Mon, 16 Aug 2021 06:03:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/dhZ4rSIQP117DhEghopbk93EUOl+l1gk3RlX/5sfSJg5kZmrZAcxKl9NDQ4WA6SOrare X-Received: by 2002:a17:906:9747:: with SMTP id o7mr15786134ejy.486.1629119014082; Mon, 16 Aug 2021 06:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629119014; cv=none; d=google.com; s=arc-20160816; b=KGmECHJUVHzht+L3xaH6uA8DFMZfj+Pt5KpN9X7vwa8/isLVWrUpsRJqojuaBeJkMC MOPPAfJdHm7lcwmanVrMav0Wm5MKF0E5knCi4nxBczbuqYKuQNlfDy3/OcYSnh//DBu2 eF+QiabgdU7Cp3eqMEdRxIlXXS/H7D9XQXGgUAG70xDFBi5J2T3KmHSaNGBIwua2Agsl eobstSO9n2dof4x/4W/K7uhO/lMRU+rk1fHBBoCUKTuyTuRxnVRGWof/y7xRIf5nBV7c unsmOeDodEswgWQpp+zOJxhm5y7+3UuLJXUVlgZbH1bTiY2m/58XtDLNc3u0EZ4V3U2x +Q/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=LZcYvKP3fKqG888iDvO787z29Bj4h7z0rCj5MqEN0PM=; b=w6A6sadwFTRoPbcrI3hWfIyqUwdUoSkSSKUWbMShEvkL7rul9ai2QfRvi4yWzZ04GM HWmIRjUWDcH5wTeChAMj6PsVOLbdOx3UyUEBrsdNr37F/L8TDCRu0wqUF9T6RdyTyJXM aiO7o0pjMTpawVxuHbBcappkgvGgofj/q47WXKPKK4khgPVnsoGfMRFmGt8KgTNL9K4Y itvG5DHzONtWnEDlb23i6mi2Olkr5s6lkTU9yn1RqKLiqUsNUEH9OjGizj7qFr/QH3/F gV0Uwo3PvKNBJT9zJks3SeEnX+szWgTFGnrZwy+mfuUZ21n60vUL3KzgIaS1hgVRttz9 ix3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ZTTl0fwV; dkim=neutral (no key) header.i=@suse.cz header.b=E89pGcW1; 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 p17si10787940edy.119.2021.08.16.06.03.09; Mon, 16 Aug 2021 06:03:34 -0700 (PDT) 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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ZTTl0fwV; dkim=neutral (no key) header.i=@suse.cz header.b=E89pGcW1; 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 S231769AbhHPNBd (ORCPT + 99 others); Mon, 16 Aug 2021 09:01:33 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:47294 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229917AbhHPNBc (ORCPT ); Mon, 16 Aug 2021 09:01:32 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 3E52C21E63; Mon, 16 Aug 2021 13:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1629118860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=LZcYvKP3fKqG888iDvO787z29Bj4h7z0rCj5MqEN0PM=; b=ZTTl0fwVMcAh64e7OtLNbWXTeobIUZwsld1IwntIyI8cDZSVbJDsCvpujROIWgSRYjvsXz YPca4KlEZaR0ICYNnavvj6MM9XUMsEpVqWtvb5arG38vALgwA2vJkhRhoo8eLIK3wbwBs0 swyU/v/guVSjLr0ufWQah7uNOnUgLJY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1629118860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=LZcYvKP3fKqG888iDvO787z29Bj4h7z0rCj5MqEN0PM=; b=E89pGcW1kdz3K7Ho9CATKs+IG89+Cm3RPWZxy46jaIgC25VUL99+hV32FTz1NNkiMSkZH+ xJ7o5axl5XjM/nDw== Received: from lion.mk-sys.cz (unknown [10.100.200.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0127FA3B88; Mon, 16 Aug 2021 13:01:00 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id DBB766082D; Mon, 16 Aug 2021 15:00:59 +0200 (CEST) Date: Mon, 16 Aug 2021 15:00:59 +0200 From: Michal Kubecek To: linux-usb@vger.kernel.org, Alan Stern , linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Kosina , Benjamin Tissoires Subject: [REGRESSION][BISECTED] flood of "hid-generic ... control queue full" since v5.14-rc1 Message-ID: <20210816130059.3yxtdvu2r7wo4uu3@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dfcrugjtzogdosw5" Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dfcrugjtzogdosw5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, starting with v5.14-rc1, my kernel log gets flooded with messages hid-generic 0003:051D:0002.0002: control queue full at rate of ~33 per second. Device 051d:0002 is an APC UPS (BR-650 VA). I bisected the issue to commit 7652dd2c5cb7 ("USB: core: Check buffer length matches wLength for control transfers") Reverting this commit on top of v5.14-rc6 resolves the issue. I suspect the problem is some missing cleanup when usb_submit_urb() bails out on the newly added check but I'm not familiar enough with the code to see what is missing or if the problem is on USB or HID side. Michal --dfcrugjtzogdosw5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEWN3j3bieVmp26mKO538sG/LRdpUFAmEaYYUACgkQ538sG/LR dpX7dwf+LxmPuDJNPaEYvkYFNTmEZFTaTJQTu2gPVihcZfOY2rwsgukq1pmpoKS3 y18U9cvJ8dWwpGLhSbgDUYcBW9sntNWFEiF1Chqp9KMlh96GecESESnNG1gFdTba iEeatloqTTMO4BOqoQiEoipff7zM62uSlizVB2M6dY/I+BZ4FfY6+b/zYoMiWm4J rGuxhV9JnkY72ksHj16CsIHbAMo8rJhm1nTf3UKogak/wLw/tYJYFiufO9O478pk fx1tC0WS4rGt/2+33uW2JU6c3yuLmW/Jv/JgcKuOnrg1u0wfK1QxkiUBjuhAfxym 1ByJ1INJOKNgC4ff3+1jOstnHMMtug== =hxJS -----END PGP SIGNATURE----- --dfcrugjtzogdosw5--