Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3250388pxj; Mon, 24 May 2021 02:13:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1lCBzTTVVjKPtxQxMnbz8+rqVAiOMgKXkfVuUqorWMT4SIO/Yn0+32kowuH/VIcCboMSE X-Received: by 2002:a02:a80f:: with SMTP id f15mr22702950jaj.101.1621847599178; Mon, 24 May 2021 02:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621847599; cv=none; d=google.com; s=arc-20160816; b=OkouQJwg9OT0ryOYPhPTwJ6gpAN7JVbTeC14I3mfnin/3RXMJ7tAgxk2K7sXqC/4/B kzqQb0iah4eWW0PgVHuGQYtpuQlDTOzqj+NvRpgH6DKRYgNxpXNDZVPrC55nEiQ3NsaW wzME6E6WJuEpIbUXTKM1eiXd/8mVlWRSHFQ2FMLspU5dyPEscCVELC/Q0sfOOGgIGxXQ 62j7E/t7e98iL9y+OSB07Wxa/j56hRmgf8q78Y3ASOzWxjhoWDhXdi4GY676cwF7Ie9r 7DkBEoIYoJE8desBMaA9sZ5elk/RQTWeQcn4y4yeyA2Ao877e1dbjm6p2OygDLVgSDXi 5m2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=lPTCN71kdTIP46F6qC7kgnVsu4PiqwngJoDLS7GOZM8=; b=v3agNwO2mV8TCEdvUIRPQ70vU2LlJyr9wHFyxkLi+3BcRjgTGY2uVppb47K7jhQfY/ IysKrTv4JeLFYa7rFGwQLTw6M+eCjg1NwAbkB87/Z2zz9VJ5uYr0wLf7TzocRXFEnosE TtK64vrhDy+ngXlf000N1GUP311OC+1iCB8loaQJXKGF9omzbGsVffj2nZEMWOIScPoO 6uSdxgXmbeMoIMTG0h0UVPfwdCdhFHX3DDh5/9+ZT8wjJJg11PkXYJrv1JKSVopdYDty AkMrWdiu/YQd6ZuY8GPxd3Z9vfO7O9CMnpU4EjgnnlNvaOvqV872Ug8e7V1JEbZkfkjM ATSQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si14460412ilu.64.2021.05.24.02.13.06; Mon, 24 May 2021 02:13:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232499AbhEXJNy (ORCPT + 99 others); Mon, 24 May 2021 05:13:54 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:48643 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbhEXJNx (ORCPT ); Mon, 24 May 2021 05:13:53 -0400 Received: by mail-il1-f198.google.com with SMTP id z11-20020a92d6cb0000b02901bb992c83cbso24490033ilp.15 for ; Mon, 24 May 2021 02:12:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=lPTCN71kdTIP46F6qC7kgnVsu4PiqwngJoDLS7GOZM8=; b=GVr4jV1mbg2VkuLed9G/Y+qF92mEdsMDMjZv8/re0AQ3WkZCbjPp5fI+yOPawwf/MT pM1uJWUIbFdxqwxtlwtkzKKMwxIewUz86Nw/6kPy21xLLnAYyGF0FcsBNZ78hMalStiH R9hAE+GOvf22PN9YYUF4iRQcSkf+usWpvfThW3ksCxcqrTbCUSFLix0w4Hthv4wCMHfq CARA9KC2ZMAiP1A/JsQobqoysvDp3ddVLqwJyU5ymVUC6YuuSRDi2GH6J92E2wA8wGbU ir0Zq5n6hYE3FymG942pPLz2vXEuLXzjlS4ttUhkyZXfeK9pnl6nrxqKP0iDvl1ewCHF rZHQ== X-Gm-Message-State: AOAM533vpcLLNibvtNPh2RTJTIQ3bFbGUbRk9jA0K8LuzmzmfsEwj2ox wi/usqSC3ixhW9YAkuJgfm32W4NCCflA6aXUCsyOseQbNXI2 MIME-Version: 1.0 X-Received: by 2002:a05:6602:54:: with SMTP id z20mr13602837ioz.48.1621847545496; Mon, 24 May 2021 02:12:25 -0700 (PDT) Date: Mon, 24 May 2021 02:12:25 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d449f105c30fce00@google.com> Subject: [syzbot] WARNING in qt2_attach/usb_submit_urb From: syzbot To: 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 5cc59c41 USB: core: WARN if pipe direction != setup packet.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=12dabf53d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=1206ee92dd3d988d dashboard link: https://syzkaller.appspot.com/bug?extid=19acce48d8344df49b3a syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1198ed07d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1772f1ddd00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+19acce48d8344df49b3a@syzkaller.appspotmail.com usb 1-1: string descriptor 0 read error: -22 usb 1-1: New USB device found, idVendor=061d, idProduct=c170, bcdDevice=11.41 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 quatech2 1-1:31.224: Quatech 2nd gen USB to Serial Driver converter detected ------------[ cut here ]------------ usb 1-1: BOGUS control dir, pipe 80000280 doesn't match bRequestType 40 WARNING: CPU: 1 PID: 2635 at drivers/usb/core/urb.c:410 usb_submit_urb+0x14aa/0x1830 drivers/usb/core/urb.c:410 Modules linked in: CPU: 1 PID: 2635 Comm: kworker/1:2 Not tainted 5.13.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event RIP: 0010:usb_submit_urb+0x14aa/0x1830 drivers/usb/core/urb.c:410 Code: 84 4c 01 00 00 e8 a6 14 b3 fd 4c 89 f7 e8 4e a7 1b ff 45 89 e8 44 89 e1 48 89 ea 48 89 c6 48 c7 c7 c0 09 63 86 e8 18 f1 fb 01 <0f> 0b 49 8d 4f 5c 48 b8 00 00 00 00 00 fc ff df 48 89 ca 48 89 4c RSP: 0018:ffffc900001b6e08 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888116d8c058 RCX: 0000000000000000 RDX: ffff888114e61b40 RSI: ffffffff812a6013 RDI: fffff52000036db3 RBP: ffff888109d7e690 R08: 0000000000000001 R09: 0000000000000000 R10: ffffffff814b996b R11: 0000000000000000 R12: 0000000080000280 R13: 0000000000000040 R14: ffff888116d8c0a8 R15: ffff8881097ac900 FS: 0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055777d5bd160 CR3: 00000001045ec000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: usb_start_wait_urb+0x101/0x4c0 drivers/usb/core/message.c:58 usb_internal_control_msg drivers/usb/core/message.c:102 [inline] usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:153 qt2_attach+0x82/0x550 drivers/usb/serial/quatech2.c:642 usb_serial_probe.cold+0x1229/0x292b drivers/usb/serial/usb-serial.c:1122 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 really_probe+0x291/0xf60 drivers/base/dd.c:576 driver_probe_device+0x298/0x410 drivers/base/dd.c:763 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4b0 drivers/base/dd.c:938 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbe0/0x2100 drivers/base/core.c:3320 usb_set_configuration+0x113f/0x1910 drivers/usb/core/message.c:2164 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd9/0x2c0 drivers/usb/core/driver.c:293 really_probe+0x291/0xf60 drivers/base/dd.c:576 driver_probe_device+0x298/0x410 drivers/base/dd.c:763 __device_attach_driver+0x203/0x2c0 drivers/base/dd.c:870 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431 __device_attach+0x228/0x4b0 drivers/base/dd.c:938 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xbe0/0x2100 drivers/base/core.c:3320 usb_new_device.cold+0x721/0x1058 drivers/usb/core/hub.c:2556 hub_port_connect drivers/usb/core/hub.c:5297 [inline] hub_port_connect_change drivers/usb/core/hub.c:5437 [inline] port_event drivers/usb/core/hub.c:5583 [inline] hub_event+0x2357/0x4330 drivers/usb/core/hub.c:5665 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x38c/0x460 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches