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 3D372C433E0 for ; Mon, 15 Feb 2021 23:19:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A86E64DE8 for ; Mon, 15 Feb 2021 23:19:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbhBOXTA (ORCPT ); Mon, 15 Feb 2021 18:19:00 -0500 Received: from mail-il1-f199.google.com ([209.85.166.199]:50164 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbhBOXS6 (ORCPT ); Mon, 15 Feb 2021 18:18:58 -0500 Received: by mail-il1-f199.google.com with SMTP id q3so6410206ilv.16 for ; Mon, 15 Feb 2021 15:18:42 -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=RhDtHpOLvv7u6BJ1lSgPY8LsKAeZXSIEoChoNXHhq+c=; b=Ejamfm0QCl51+pfsjPVY7AcOhxTP4N5ej2SfCAD5w1jOfX5ZDBucWcCSQAWkmyT6T+ yJVUMOfd4PYaVIkhbs1zdSLd0BdZU0ymTbee3AG4rQtk6foP0HzSACRsu/k0uY7YNfZ5 drnV0MMv1gkYM+qL5syjSTe6XUCKuTkMBHWS/m+CYGwd9fcllL0/yd79jooMiUR9kST3 aFy3kcBzIjEFdzxldsk/VbxX5tW1+mdYHX82B4Tgou3wr1jnIGFtxpO4oQDpuLGQmxLS 6aFPYLSTlduTGGcj+Us8nc3tvlbAJ7f1B+KggaNqMR1mkAZlCMLSzpWVUXu/jZfqo/En ynaQ== X-Gm-Message-State: AOAM532alkQMWpjObkPuvAFYRkX/yIEy1AOt2Obw6e9m9Rn0AE9uZjiO r41f2FaMgxKQBmQJ2zO7DCs6t2zw4ABSW2dhGLv/H4YwJrb+ X-Google-Smtp-Source: ABdhPJzXWtHUmy25Bth3OwNjK0uKAdxuBCagcjFJODWydCEc8L4B1+4x0BxzfngVQy45JYld0t8US1bOaSdNq4z2kCtV1Ep2txS3 MIME-Version: 1.0 X-Received: by 2002:a92:b008:: with SMTP id x8mr14945864ilh.297.1613431097349; Mon, 15 Feb 2021 15:18:17 -0800 (PST) Date: Mon, 15 Feb 2021 15:18:17 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006d5e6f05bb6833c3@google.com> Subject: UBSAN: shift-out-of-bounds in hid_report_raw_event From: syzbot To: benjamin.tissoires@redhat.com, jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@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: 291009f6 Merge tag 'pm-5.11-rc8' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17cd1098d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=6a218c95bd23063a dashboard link: https://syzkaller.appspot.com/bug?extid=ee5ce0deec4ff5aa64e1 compiler: Debian clang version 11.0.1-2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10410288d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13642124d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+ee5ce0deec4ff5aa64e1@syzkaller.appspotmail.com ================================================================================ UBSAN: shift-out-of-bounds in drivers/hid/hid-core.c:1315:20 shift exponent 4294967295 is too large for 32-bit type 'int' CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_shift_out_of_bounds+0x432/0x4d0 lib/ubsan.c:395 snto32 drivers/hid/hid-core.c:1315 [inline] hid_input_field drivers/hid/hid-core.c:1548 [inline] hid_report_raw_event+0xa9d/0x1480 drivers/hid/hid-core.c:1783 hid_input_report+0x3f6/0x4d0 drivers/hid/hid-core.c:1850 hid_irq_in+0x48d/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x375/0x520 drivers/usb/core/hcd.c:1656 dummy_timer+0xa22/0x2e70 drivers/usb/gadget/udc/dummy_hcd.c:1971 call_timer_fn+0x91/0x160 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers+0x6c0/0x8a0 kernel/time/timer.c:1731 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1744 __do_softirq+0x318/0x714 kernel/softirq.c:343 asm_call_irq_on_stack --- 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