Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2589686pxu; Sat, 10 Oct 2020 00:19:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZStT6rWCd8uJ9ylK6B+KrViyBnjDA+u3hSdDZPc/BOJRwwK77JW5MiKegwWkEGJ/DvQOO X-Received: by 2002:a17:906:8297:: with SMTP id h23mr17507525ejx.383.1602314387443; Sat, 10 Oct 2020 00:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602314387; cv=none; d=google.com; s=arc-20160816; b=howDa/tCoPqmgVjj0C9uNTlcPJKjM1XEaASjn3328V4D7AWHlADAkjtuXnq+Wa437I uoG7GinKEigz4UnrbCkrBOQh21k/13WWHaqdAPmpgWXyarqhy1CynXKQBURhLezYYkHt a/+OY3G2JNlE9qPzr7tUNTH52xRjR4I4IRoThvvR35Vt4OVlphHMENWwSPdPTTIWAhYG 9BMf4LWiXbnOJ1xubKjs1WWMWLgXk0zK7lFlbuVVYWGz/nNot6wvg/3+QarRK9xm77Ej ll64G1RuipxjtqOcNsAPc+VKdVyuqkJf1xeXGFahAKxuvuKqEwG2iAtk5lOhQGXu75ij U2KA== 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=v96rdObBz8yhyHC/FzsfOq7tKraHPXYgmLqTxBoDZaM=; b=J1aOrF8bEkoRjzPtffnFdZ0VfhA42TT1O7EQ7L64S3jdA5sX4qE5Cls0aPjSh6dz0+ jDXSlbSuYsNHAy7NOVH/+rcyAr1HpEV1+zLRJAA4zVnoEt7Vc3nOm1IaQlyvcY0gv/jj n5HYedIknUpaJebUVn2ZAndECHjY6YBbUlQm7lWpNXs2mHdJabBG8Q7pwLXB07hOcCGB WzEvh0jx3gntDwtLIu7i2JbPcHJcNjcpe8+mcENOJzi3Tw7uAnGazZfN7HO/ghJaYHyL gb/T/6hOFwJySeMTArQCEfcvf9Qqzrz9V+7i6lSUh+dJZIr/L84zvHyZMwcw/OUWKibV un8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 g12si7349455ejx.495.2020.10.10.00.19.22; Sat, 10 Oct 2020 00:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729284AbgJJBhN (ORCPT + 99 others); Fri, 9 Oct 2020 21:37:13 -0400 Received: from netrider.rowland.org ([192.131.102.5]:58101 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729433AbgJJBIT (ORCPT ); Fri, 9 Oct 2020 21:08:19 -0400 Received: (qmail 557695 invoked by uid 1000); 9 Oct 2020 21:08:17 -0400 Date: Fri, 9 Oct 2020 21:08:17 -0400 From: Alan Stern To: syzbot Cc: andreyknvl@google.com, ath9k-devel@qca.qualcomm.com, eli.billauer@gmail.com, gregkh@linuxfoundation.org, gustavoars@kernel.org, ingrassia@epigenesys.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, oneukum@suse.com, syzkaller-bugs@googlegroups.com, tiwai@suse.de Subject: Re: WARNING in hif_usb_send/usb_submit_urb Message-ID: <20201010010817.GA557391@rowland.harvard.edu> References: <20201010004944.GB557008@rowland.harvard.edu> <000000000000ef564605b1468771@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000ef564605b1468771@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Oct 09, 2020 at 05:56:09PM -0700, syzbot wrote: > Hello, > > syzbot tried to test the proposed patch but the build/boot failed: Oops. One more try, with the typos fixed. #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.9-rc8 Index: usb-devel/drivers/net/wireless/ath/ath9k/hif_usb.c =================================================================== --- usb-devel.orig/drivers/net/wireless/ath/ath9k/hif_usb.c +++ usb-devel/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -1307,6 +1307,20 @@ static int ath9k_hif_usb_probe(struct us struct usb_device *udev = interface_to_usbdev(interface); struct hif_device_usb *hif_dev; int ret = 0; + struct usb_host_interface *alt; + struct usb_endpoint_descriptor *epd; + + /* Verify the expected endpoints are present */ + alt = interface->cur_altsetting; + if (!usb_find_int_in_endpoint(alt, &epd) || + usb_endpoint_num(epd) != USB_REG_IN_PIPE || + !usb_find_int_out_endpoint(alt, &epd) || + usb_endpoint_num(epd) != USB_REG_OUT_PIPE || + !usb_find_bulk_in_endpoint(alt, &epd) || + usb_endpoint_num(epd) != USB_WLAN_RX_PIPE || + !usb_find_bulk_out_endpoint(alt, &epd) || + usb_endpoint_num(epd) != USB_WLAN_TX_PIPE) + return -ENODEV; if (id->driver_info == STORAGE_DEVICE) return send_eject_command(interface);