Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp668881pxb; Thu, 19 Aug 2021 08:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG8UVtZltH706spVZ2T2LFpMnvojl7KZOPfrO4acsYPEnkfce/A6oOVKl3n8ZBu2L5RlM0 X-Received: by 2002:aa7:d3cf:: with SMTP id o15mr16842683edr.98.1629386920568; Thu, 19 Aug 2021 08:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629386920; cv=none; d=google.com; s=arc-20160816; b=J62gYfrGbhRlXEe4zoJQ+b7nu0sPElBteMGcpE92Vr/bSdfScY009XHVLqTeBsYqav b/1+evvaoOJCj3d55ADuDFumzX/eyanrBc0IaXjWIV50+WBgFgwqcccmt7uV5Q4J21Pm dOY5zJZGQGZ1JK3C79yZ02nhqaeBEv2uvbNNUEzd4hxtOkxxUflcChdMuGzq2VOSsl6/ vwsahGNp0oILumiTWHE3ZjxdUhLzzaynA8zybH/8MXZC0glRifj4BRRNXarYvyAL3Nma 7v7dX6XbKGMbOUKOlrRlY7P0dpnrivseavv6yTwEE7LXunxCoZcp2TJhB9rgu5e+ZS3w 1SVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=CUEWKP5u36Y5JtulQFYEIyak5TV9oZJF54emqLtZYF4=; b=s0AvWYhAVGd9xEQRNq0Y9mwks9Ei0G/Mu8YJIIbrLnvEyYGCTz7618ZlgtIf9Tndr7 SNmkrFYwQeZvqwNI4HMNURST4yj6Hq2qGZ8sUcx1pApEqxRCAFFJGn3KQrS22CMWAn5V Deob8KrzddE3vd3jZ9ZZ5BXRRnC/5yWDafz0kkTDD2JJ1VAULt0uUpftQco03r0PNc6g +wBsepTzh/14B8b21Wns1LsuRZ1KoogxOUD+GA27R8zyvi4myFOTQj+lkoEHboJrMlsF DKOmQqS+r6fACrQy2BOk/wVKrJmuNhAD/WiHLVL1lTT2Hsuu5k2UCfZhXmppl1N2DZ7a uZCg== 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 f9si3426939eja.306.2021.08.19.08.28.11; Thu, 19 Aug 2021 08:28:40 -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; 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 S240260AbhHSP1D (ORCPT + 99 others); Thu, 19 Aug 2021 11:27:03 -0400 Received: from netrider.rowland.org ([192.131.102.5]:56875 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S238643AbhHSP1D (ORCPT ); Thu, 19 Aug 2021 11:27:03 -0400 Received: (qmail 230180 invoked by uid 1000); 19 Aug 2021 11:26:26 -0400 Date: Thu, 19 Aug 2021 11:26:26 -0400 From: Alan Stern To: syzbot Cc: benjamin.tissoires@redhat.com, jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, mkubecek@suse.cz, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] WARNING in hid_submit_ctrl/usb_submit_urb Message-ID: <20210819152626.GD228422@rowland.harvard.edu> References: <20210818184927.GD197200@rowland.harvard.edu> <000000000000f7ab1005c9db0f8e@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000f7ab1005c9db0f8e@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 18, 2021 at 01:13:06PM -0700, syzbot wrote: > Hello, > > syzbot has tested the proposed patch but the reproducer is still triggering an issue: > WARNING in hid_submit_ctrl/usb_submit_urb > > ------------[ cut here ]------------ > usb 1-1: BOGUS control dir, pipe 80000280 doesn't match bRequestType a1 > WARNING: CPU: 1 PID: 10180 at drivers/usb/core/urb.c:410 usb_submit_urb+0x149d/0x18a0 drivers/usb/core/urb.c:410 Looks like I was wrong. Let's see what's really happening. Alan Stern #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 794c7931a242 --- usb-devel.orig/drivers/hid/usbhid/hid-core.c +++ usb-devel/drivers/hid/usbhid/hid-core.c @@ -397,6 +397,8 @@ static int hid_submit_ctrl(struct hid_de } else padlen = 0; usbhid->urbctrl->transfer_buffer_length = padlen; + hid_err(hid, "submit_ctrl: maxpacket %d len %d padlen %d\n", + maxpacket, len, padlen); } usbhid->urbctrl->dev = hid_to_usb_dev(hid);