Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4237321pxj; Tue, 25 May 2021 03:31:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIq5Ma6h3Y4EXZAGMksTj07lssrmjk2LA1QnkUfnKhcz3uF4qQgkPKKTzntXgEGSTOMU6j X-Received: by 2002:a17:906:f894:: with SMTP id lg20mr27980572ejb.355.1621938675339; Tue, 25 May 2021 03:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621938675; cv=none; d=google.com; s=arc-20160816; b=MMV06qnJBZ3XkwWvHoF0T5/w4SmlWYqOBr1BYGujIyYFcPtA/p6VVfwaaX4WiWgD2b sSSZ/lLKXZVxA3lE1QDD0BfaGAyhoblVnf/TglY1kCGEMw+213MwUpW4BnXc4MMms/1v ZSKsSnSAcaRzuq0zWpQHC99qCe2Wga+hewebaLUdTUY4XzGu+tN/D547irVoXrPcLP5K 1u/T4+PbiaP3ZNWpV0mX3uSIvvLggO2N73it4rZ1VSIeAgSVTgjByFJiQwbY6KFfqgGI hDgAH2IlCU3tkehrC1udozFAHRULfQyeqQTjOpEX2jgTAHpzAJ6bdnIoO3/mdCqJIROu cCRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ms24khYHPj4BxD8bzoqSh7oXzx9g8e+VlN8nRkABfnM=; b=Ywz+MlX5zrrajVRY9jY9ZQlIyaW/xvLM2eg7werPtrxAbEwcvEoUVAcJbsk9s6CGXP Ms9Q+J+0/Dl/gLdhSB8GKatqoOT+TA2DoW53vaJnipe2Af88iOVTeLx8pm6zy2r94GZy DwxsbPZsEEOAyLbfEh4yKX0daDeAW8Ht5djuauVNIB618CyjhWpOOxINV1hyv+EdArhr /m7aQrQ8ZZQ0hGR7z+R5nGUzz9fN5gohhGrJIR7kXZZ2gzJSRmdH0nTUdzaXQ+Weq50Z o4v4l9sJd0lBFX+6zJM1UapRce53/l3T2UWajWmGR0CdAE6yNzuFyoUU/2egOgco4oEX MvuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=noMUn4A3; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si269305ejy.386.2021.05.25.03.30.52; Tue, 25 May 2021 03:31:15 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=noMUn4A3; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232202AbhEYJFw (ORCPT + 99 others); Tue, 25 May 2021 05:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232141AbhEYJFw (ORCPT ); Tue, 25 May 2021 05:05:52 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADCB0C061574 for ; Tue, 25 May 2021 02:04:22 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id q10so29697060qkc.5 for ; Tue, 25 May 2021 02:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ms24khYHPj4BxD8bzoqSh7oXzx9g8e+VlN8nRkABfnM=; b=noMUn4A3hoc1YoGSzpAWkdbsgDYUzyzdez89ur60YWFmbmqz+NDEbOFYKQuM5m5ujy 4/7nUbA+CmfoBKVdobCY89N+c+8dc8DFfk7X2qOeXDVdZ0jt8uJdOPAqhGPjBbdUcoEd UQuK/ImYC6QsZ1NeYeHsuQobEhiuA/vmf9qdHhCBdzrHc12OlmM+IxZLdDOKfuotdAsC zBccapTh/oWBrNtti4fB/RmJ9dVHoRIfCOf2bQDMUxmGU85m83WDaixp1fCiDWUEJWyl qrucjIGzVsfp46u9V9Tq4mMe7Bv2Ry4qM0AJ1T91qwHNsizm54oEgyeol6AykP2yKHun tzHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ms24khYHPj4BxD8bzoqSh7oXzx9g8e+VlN8nRkABfnM=; b=EWknCbaB1IpAc6f+mdYvVsRnHnm4RabZWippYCvzO56yzd3J5zUoo5/nw3XR4TQWVG q3Fc1yTkQkiBRGIR6aE7wnwkLfQzWMG6AU24H+w+AYdJUUxReuNvMLMd6m5Aajny84gA bEEtnzN3Kpp56EAFNekDtE0cEHgXpy6q5ME9xVpZXZfzbUTmoifjmkttyRbtafdeyI7M itOjm2vbpRyBFyI90W5QDtKaNpbMqZxUB/4nIGq0nPVj05f+I1hDTTrGe1gGddGdN4G7 x3YR7mFAQWK3SssEujMFrCCUCCRnjOOUM846RRg7zYnj+Tok3PgnXKfUUpPA0tbcuvhj 9VUQ== X-Gm-Message-State: AOAM530UWYDSL/1BwnNuP+kBxcALx5bNkXkUbbxeGEKgrCVGovde2e0p jQ2XwvNYEgGNBcd6D6m5x/fFFfYgWef4JjV4kbbz3w== X-Received: by 2002:a37:4694:: with SMTP id t142mr34713012qka.265.1621933461620; Tue, 25 May 2021 02:04:21 -0700 (PDT) MIME-Version: 1.0 References: <000000000000d449f105c30fce00@google.com> In-Reply-To: From: Dmitry Vyukov Date: Tue, 25 May 2021 11:04:10 +0200 Message-ID: Subject: Re: [syzbot] WARNING in qt2_attach/usb_submit_urb To: Johan Hovold Cc: syzbot , Greg Kroah-Hartman , LKML , USB list , mathias.nyman@linux.intel.com, syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 24, 2021 at 11:18 AM Johan Hovold wrote: > > On Mon, May 24, 2021 at 02:12:25AM -0700, syzbot wrote: > > 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 > > I had already found this one but not yet posted the v2. Should be fixed > here: > > https://lore.kernel.org/r/20210524091705.4282-1-johan@kernel.org > > Johan Hi Johan, Thanks for double checking. Let's tell syzbot about the fix: #syz fix: USB: serial: quatech2: fix control-request directions