Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp337331pxb; Mon, 16 Aug 2021 06:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk/QnHsgR3UtY3s53mamXHD7pRTKtvdLFX7f9wKruJuDs0IQZ79mrHjZZM35uvqCaczuyl X-Received: by 2002:a17:906:1416:: with SMTP id p22mr16043339ejc.364.1629121037370; Mon, 16 Aug 2021 06:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629121037; cv=none; d=google.com; s=arc-20160816; b=La4gOmo8VNKCgfL8DuScLtV6t/x8Gz7wMEW8+hYaxb6u1sn6uSiRbULV8plj9KtELU 3+w2jb+P588IkNx7J8AW005Wgko0Uz3JzUMzPNc7Rm74SAQX1VFJsifCACr5Lwg/mewU EPE8rBZX97Ydw2mXQVjiUM75YZOApkW50rrvWlDosJncduyfDB2EaSKZiN4mUyruCnYj U3I1AWXiNV3OhXAENTU+Hf+sF4VelBKr9WHA5wJcB6V5JpfEYEc8x/F9OUI8fP+LJhan tl6V5alTOFG2QRp2GSrqdKN7E+bySBY52Q/cI7sDZF9vvDx8HKf3c8jCthMNotPJ7it7 yJsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Cz0PT4YHyloR73s9Ph+UwJxWOr2hrvA8MU5LtS/1SHw=; b=bGccozua++MxDDyztAjyToaOlRrrOc8gUu2xZJgfDDBqmAZay/rTMBAgl6bJ3AEL91 IkoNgk97seC5RpWfqEa/ryPNR8FvS0GzFc4dgr2PynYjGXXto66qPs6Qd1D3vhJvo6B2 I1ynbeZRhRmt76PvmIJ/KIVlPY/P33qJ4D+OYvtsZKoXJgcOLXWH538fx7Um/GXI0kKe k2JFT/p03Yk2YT1rw/JJHMlwh4R5zJVbZjgFurCsYg9zQxpy3CHplNuOjXTy80VKBCQJ IS1WrP5VeMk9cZmDw+Aov4WrPvp8XUgIo8RaRa0mchhO9DDHYkxMGbV4i8f8NlyXOkxf qSMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A8qh3Kro; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk13si7479695ejc.661.2021.08.16.06.36.53; Mon, 16 Aug 2021 06:37:17 -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=@linuxfoundation.org header.s=korg header.b=A8qh3Kro; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241551AbhHPNeO (ORCPT + 99 others); Mon, 16 Aug 2021 09:34:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:49794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241361AbhHPN04 (ORCPT ); Mon, 16 Aug 2021 09:26:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A027B60F46; Mon, 16 Aug 2021 13:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629120383; bh=FccUo5HenUCGhdfiLwZKVkvAVRIVEBhpQVlmGfIRgRI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A8qh3KrolVbPYupxdGchxWpE2mlynWjj74Lg1g5n7uzaM5CgD4VXbNnOD8P1enS9k EcktPJ7Bm01+AkVNq3ktTm9/AGKjgLNJ54zN500+g9lpK+tgGM1MuJ+NxDrR8UGK/w nToDQXm4oacgdCeZx41q2A9vqmS56rLa+j2LUS0g= Date: Mon, 16 Aug 2021 15:26:20 +0200 From: Greg Kroah-Hartman To: Michal Kubecek Cc: linux-usb@vger.kernel.org, Alan Stern , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires Subject: Re: [REGRESSION][BISECTED] flood of "hid-generic ... control queue full" since v5.14-rc1 Message-ID: References: <20210816130059.3yxtdvu2r7wo4uu3@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816130059.3yxtdvu2r7wo4uu3@lion.mk-sys.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 03:00:59PM +0200, Michal Kubecek wrote: > 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. But the message in the above commit does not match the message you are seeing in your log. Your message is coming from the hid-core.c file, where it checks to verify if you have enough room in the buffer. Ah, is the buffer filling up because a driver is trying to send the wrong amount of data? thanks, greg k-h