Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2306856pxv; Sun, 11 Jul 2021 09:01:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+q+/HbtgRShz+2S1JVJl9Yun0Lh7lzV42GEqcHjlZPNHnAbNzmC4CIdUI/qVt6Cj6T5Ws X-Received: by 2002:a17:906:dbf6:: with SMTP id yd22mr25035088ejb.553.1626019282755; Sun, 11 Jul 2021 09:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626019282; cv=none; d=google.com; s=arc-20160816; b=XF35WDPS+U13woiQcbaYVM2sw2liAQ5hne2t5xrRgmvh/09f5W0Sl9eqiOaDl3njpm 3GNEzKyZBFkhypGJwC1EE+MiEQVHwpNWg0nSkerPhxYmMOqhGz9Oas1666hGPs9VhHca 32Gx1Byu7sUrYn2ANRks22D+4akYjdPAAmvdm0u6QK0z7Yxri/N8AcLPdPWn5iWcHtBZ nMX/rc6A8i35PKilU7jMKLUsoXXIkubJhjpwMT2BBjE7ox09885/p+ut2NHZimalGuKQ qYpv4B/buUnIDesi/a/6ZUfdLJu5z5anLie5uL0b8+PvB1NkrG8Sbhfv/hDhzjD6Hvoy 0MBQ== 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=gvTpCVLA9FtI219kfnUu1208yKvgBIp/2ASxQq/MPOk=; b=QG6m9eV0nbO+E1mqc9dLV9ueYc3wWh9YtWrD/cek7icmuhFUfK3XU/4usyVHOQkdxd EUh+tW74iUz0vEYJZgzgK6gnv2lSI71Pr2rLObf4lj4GTuRXcYaekv6YnyHGTWeaoFU+ +n+QjPpCeTHLbUTubEpQllGN92Z/gTAV4mlFtmO9WieD4Ykv3kQ9JIqRsF/3xN8M05f2 BUv3ojBPtrNPbgzbdiZYQL8SFxs9HS/T+AHScz7No5YOwgnkcbgTdsoheL6uLCRxaHvD ualXeQv5uiIFP1CWd/QIpCT+lorSN4gLJEUsyxoQfGVkx4vv+HpXDL6TabuKC2dgKVEd fEOQ== 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 p13si13772948edr.88.2021.07.11.09.00.58; Sun, 11 Jul 2021 09:01:22 -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 S236274AbhGKP4d (ORCPT + 99 others); Sun, 11 Jul 2021 11:56:33 -0400 Received: from netrider.rowland.org ([192.131.102.5]:32861 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S236269AbhGKP4d (ORCPT ); Sun, 11 Jul 2021 11:56:33 -0400 Received: (qmail 295134 invoked by uid 1000); 11 Jul 2021 11:53:45 -0400 Date: Sun, 11 Jul 2021 11:53:45 -0400 From: Alan Stern To: syzbot Cc: gregkh@linuxfoundation.org, johan@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, mathias.nyman@linux.intel.com, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] WARNING in do_proc_control/usb_submit_urb Message-ID: <20210711155345.GB293743@rowland.harvard.edu> References: <0000000000005d93c405c6c2f20d@google.com> <20210710145003.GA271154@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210710145003.GA271154@rowland.harvard.edu> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 10, 2021 at 10:50:03AM -0400, Alan Stern wrote: > On Sat, Jul 10, 2021 at 04:11:15AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: ee268dee Add linux-next specific files for 20210707 > > git tree: linux-next > > Is this an old version of syzbot? I thought it had been fixed up to > give a real URL (one that "#syz test:" would accept) for the git > tree and a 12-digit SHA-1 abbreviation for the HEAD commit. Actually, on further thought it looks like only a one-line change is needed. Let's make sure it works. Alan Stern #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git ee268dee > Index: usb-devel/drivers/usb/core/devio.c > =================================================================== > --- usb-devel.orig/drivers/usb/core/devio.c > +++ usb-devel/drivers/usb/core/devio.c > @@ -1133,7 +1133,7 @@ static int do_proc_control(struct usb_de > "wIndex=%04x wLength=%04x\n", > ctrl->bRequestType, ctrl->bRequest, ctrl->wValue, > ctrl->wIndex, ctrl->wLength); > - if (ctrl->bRequestType & 0x80) { > + if ((ctrl->bRequestType & USB_DIR_IN) && ctrl->wLength) { > pipe = usb_rcvctrlpipe(dev, 0); > snoop_urb(dev, NULL, pipe, ctrl->wLength, tmo, SUBMIT, NULL, 0); >