Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1399206pxj; Sat, 12 Jun 2021 07:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztz/rgy8tEkaDso/xXG6dLOUOCekSFOwPTKlFQuKOGwTk3cP0R8UzXX876RAeBig6Sqj4w X-Received: by 2002:aa7:c44b:: with SMTP id n11mr8971842edr.4.1623508012200; Sat, 12 Jun 2021 07:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623508012; cv=none; d=google.com; s=arc-20160816; b=E5jsMamD8VYjQ2tr2B3svKRRWh6s59BuHCwmkf6tNrF1nGjS1KHWtumtbeSEkG+0PS 8RPPUSUP4zAYDmA07hXWx32O3pmrHmFDCHKmovr1w8Uszk53DFjjcpgKpQjvZYkkDiX9 JlDNGNf5l/BkSZjo5dQKrufJ7g11tvD063noG369Hm72aM7uVt1ZKik/WSawuqTu61N5 KW/7c+cuIrX8oOnGb6UZLTZRxq9pmGtdTYC2U8Ult4BeS70VsYXk9gpolXbVUBujv8E9 ohROTMyztR3RNVW7OeFYtZO5UI7OkcequbdfK22yvibRKyrnwJhtLfCPLCvLoLQtlcvy cXGA== 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=XkjXyS+iTvhN1eC7lYBJUgrjRqxcGtDzY75aWJ8gSik=; b=hJ+A+/upYIF9HtlzZUj0ag83Ee/VQQyWV+X8tkemb1GJF5Z7Q0wHSCPfnPFHDtSgcg ByIwkauzxOngWZtAMlZkUOu8mcAmmKQ7qaa+H51Uv839vyYxvFpSIeoxrfXFSKYgr/d/ ovOVqrNXlUuy/JgLNjfGOOk9Z35yK8Cq9R7ZdG9gzwkQu0mHg8umIrXb0pMAJBpozr+u Ur/9RYdjf66stjYeG1MOtV6zUu9sTIVLKb9bE5m+HCn/enHgtvlmlSDHmuxs5vNt/oZw FY8gxnyfIEuHaxcpT9A8jvsvIWCtp9d7CjIesfNgKHH0NHHvmwnw3JZfu4sz03Ydwhqs 76Ww== 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 c27si7234816ejj.341.2021.06.12.07.26.29; Sat, 12 Jun 2021 07:26:52 -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 S231341AbhFLOV1 (ORCPT + 99 others); Sat, 12 Jun 2021 10:21:27 -0400 Received: from netrider.rowland.org ([192.131.102.5]:36467 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S230191AbhFLOV1 (ORCPT ); Sat, 12 Jun 2021 10:21:27 -0400 Received: (qmail 78830 invoked by uid 1000); 12 Jun 2021 10:19:26 -0400 Date: Sat, 12 Jun 2021 10:19:26 -0400 From: Alan Stern To: Greg KH Cc: syzbot , 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 vmk80xx_auto_attach/usb_submit_urb Message-ID: <20210612141926.GA78629@rowland.harvard.edu> References: <00000000000074a21005c482fce2@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 12, 2021 at 08:59:26AM +0200, Greg KH wrote: > On Fri, Jun 11, 2021 at 01:02:23PM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 614124be Linux 5.13-rc5 > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=12188667d00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=547a5e42ca601229 > > dashboard link: https://syzkaller.appspot.com/bug?extid=5f29dc6a889fc42bd896 > > compiler: Debian clang version 11.0.1-2 > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1687ec3fd00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=172f44ffd00000 > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+5f29dc6a889fc42bd896@syzkaller.appspotmail.com > > > > usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 > > usb 1-1: config 0 descriptor?? > > ------------[ cut here ]------------ > > usb 1-1: BOGUS urb xfer, pipe 1 != type 3 > > WARNING: CPU: 1 PID: 20 at drivers/usb/core/urb.c:494 usb_submit_urb+0xacd/0x1550 drivers/usb/core/urb.c:493 > > Looks correct to me, you did not create a valid USB device for the > system to use :) The problem is that vmk80xx_write_packet submits an interrupt URB to the ep_tx endpoint, but vmk80xx_find_usb_endpoints will set ep_tx to the first OUT endpoint it finds that is either interrupt or bulk. In this case it was bulk, so the driver submitted an interrupt URB to a bulk endpoint. Alan Stern