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=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 8FFFCC433DB for ; Tue, 22 Dec 2020 22:39:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D3A822573 for ; Tue, 22 Dec 2020 22:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728590AbgLVWi5 (ORCPT ); Tue, 22 Dec 2020 17:38:57 -0500 Received: from mail-il1-f200.google.com ([209.85.166.200]:42405 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728341AbgLVWi4 (ORCPT ); Tue, 22 Dec 2020 17:38:56 -0500 Received: by mail-il1-f200.google.com with SMTP id p10so12905989ilo.9 for ; Tue, 22 Dec 2020 14:38:41 -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=phZcz8GHgDbMEr4XKo0BIqA5dWEQGOsnMVPYM3W1vas=; b=trU4Pms7z1bZhSjh6/b4Tdwde2v5fbJkTriyLZ6rijUkOE4uGVbLbfU5bbqMJvq5oJ JvdWbAvKEx/pKvmC7KKlAa9nKGJNM+LQMDzP81XISXOWt1lgQejM/yv/xr5AjGNNAk7h Z+s4MfhceBHztFM8hVJeDuwFg9BowZUoKSywnlx1Z2CSf4rbEzhxqn5CVdAyVhWkx8FZ uWEfd5rXZPIRIAQL2jxIdiII2ckVe26vTVrxumdi55C/FxDe3KJAQ1+vJqW1F4AVEWtp Xt2kDEId/gpn6SdK0JdkpeppZXrcS9slq+OXZe++fO/eGM9C8/PZJXaVcS2z0Js6GPq+ LXmA== X-Gm-Message-State: AOAM532fS2Pkel6e7/7T4qW9oAOrquBBXSDC9sPqvNYUX95xHA/UMQsu RlMGZbGkY2K6s8pUU4OzliY4ceYm9RX7OXk847P2b/scDmw8 X-Google-Smtp-Source: ABdhPJyzjApcIzyu+k2K45bHD2KJm7nZ64jl/4wd4RpcvpOn88al+Y1kV/d84Xc7zi+ObDycuo8uB5ddCijryWgpoBms91IDki9i MIME-Version: 1.0 X-Received: by 2002:a92:bf09:: with SMTP id z9mr22316997ilh.194.1608676695952; Tue, 22 Dec 2020 14:38:15 -0800 (PST) Date: Tue, 22 Dec 2020 14:38:15 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000555a005b7153b7a@google.com> Subject: UBSAN: shift-out-of-bounds in snd_usbmidi_get_ms_info From: syzbot To: alsa-devel@alsa-project.org, clemens@ladisch.de, linux-kernel@vger.kernel.org, perex@perex.cz, syzkaller-bugs@googlegroups.com, tiwai@suse.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: 8653b778 Merge tag 'clk-for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=109531a3500000 kernel config: https://syzkaller.appspot.com/x/.config?x=98408202fed1f636 dashboard link: https://syzkaller.appspot.com/bug?extid=92e45ae45543f89e8c88 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1421ec47500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12bfa077500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+92e45ae45543f89e8c88@syzkaller.appspotmail.com usb 1-1: config 0 interface 0 altsetting 0 bulk endpoint 0x8A has invalid maxpacket 31 usb 1-1: New USB device found, idVendor=324b, idProduct=5963, bcdDevice= 0.d2 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? usb 1-1: MIDIStreaming interface descriptor not found ================================================================================ UBSAN: shift-out-of-bounds in sound/usb/midi.c:1928:8 shift exponent 244 is too large for 32-bit type 'int' CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 5.10.0-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 snd_usbmidi_get_ms_info.cold+0x83/0xd4 sound/usb/midi.c:1928 __snd_usbmidi_create+0x380/0x2320 sound/usb/midi.c:2404 snd_usb_create_quirk+0xa5/0xe0 sound/usb/quirks.c:562 usb_audio_probe+0x623/0x2ab0 sound/usb/card.c:795 --- 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