From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D69FDC4361B for ; Wed, 9 Dec 2020 07:35:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9558F233CF for ; Wed, 9 Dec 2020 07:35:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728372AbgLIHeh (ORCPT ); Wed, 9 Dec 2020 02:34:37 -0500 Received: from mail-io1-f69.google.com ([209.85.166.69]:52449 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728106AbgLIHdw (ORCPT ); Wed, 9 Dec 2020 02:33:52 -0500 Received: by mail-io1-f69.google.com with SMTP id b136so597756iof.19 for ; Tue, 08 Dec 2020 23:33:37 -0800 (PST) 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=TUPvM5pjFJfI93K9gjTTWctfpryn4JBZxUDK8PvIsO0=; b=dUA0oTH59lKkE55WVlVQtos2XFhdRnsro8cLCf3y1LBXDd5UJOpdH+AYu5dTgNjgYf eUsteYHTocOuPLt03cIG4AZa/OXhuqcJMhQV3k0IOOHHTxQDQEbNfwJ2S1OQnbcg6Oui oS4G3arvNC0gPxVtHCKPX8cV/MhNmj7L+/4AS+B85Ow2w++zXIZNa7IQfI8sWVJ1xDwD 6+FDIViHMaMBXZzeHbdrP+OTceje5DV3GDvwUxJkUI+C7Fp2s1Ie0tIUawnUOpN4nS6e +yrM2iVB32ce1b5NJrwnrqsOUkgsU2qkyWjsQSM6dYBIEAWWHHZrMcwmKiCc3sNGX8nQ 8J3w== X-Gm-Message-State: AOAM5313Q7ZOWNxdqtSHJxEAv3mFV3qBQUGLNBdBUTv9EgdOITxAvHkj yi1cXKrN/MTKPyZkkgFaH/Zv3ZbFc1+cdrTIakhCnvmvOTee X-Google-Smtp-Source: ABdhPJwE9NVSuQ/nGiAUa58CMZD95IFRGhRzRaHIVh6FL34U2djGPAtG0oFSmbh4t9ksrqwTWS8B+vSh/a1UUbxiCXppk6yLd7Bk MIME-Version: 1.0 X-Received: by 2002:a92:8502:: with SMTP id f2mr1087693ilh.1.1607499191697; Tue, 08 Dec 2020 23:33:11 -0800 (PST) Date: Tue, 08 Dec 2020 23:33:11 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004c471e05b60312f9@google.com> Subject: UBSAN: shift-out-of-bounds in option_probe From: syzbot To: gregkh@linuxfoundation.org, johan@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, 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: 15ac8fdb Add linux-next specific files for 20201207 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17dc6adf500000 kernel config: https://syzkaller.appspot.com/x/.config?x=3696b8138207d24d dashboard link: https://syzkaller.appspot.com/bug?extid=8881b478dad0a7971f79 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12e89613500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17993623500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+8881b478dad0a7971f79@syzkaller.appspotmail.com usb 1-1: config 0 interface 109 has no altsetting 0 usb 1-1: New USB device found, idVendor=12d1, idProduct=02cb, bcdDevice= 1.fb usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? ================================================================================ UBSAN: shift-out-of-bounds in drivers/usb/serial/option.c:2120:21 shift exponent 109 is too large for 64-bit type 'long unsigned int' CPU: 0 PID: 3169 Comm: kworker/0:3 Not tainted 5.10.0-rc6-next-20201207-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:395 option_probe.cold+0x1a/0x1f drivers/usb/serial/option.c:2120 usb_serial_probe+0x32d/0xef0 drivers/usb/serial/usb-serial.c:905 usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 really_probe+0x2b1/0xe40 drivers/base/dd.c:554 driver_probe_device+0x285/0x3f0 drivers/base/dd.c:738 __device_attach_driver+0x216/0x2d0 drivers/base/dd.c:844 --- 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