================================================================================ UBSAN: Undefined behaviour in drivers/usb/gadget/udc/dummy_hcd.c:2288:33 shift exponent 257 is too large for 32-bit type 'int' CPU: 0 PID: 10822 Comm: syz-executor.5 Not tainted 5.4.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x86/0xca lib/dump_stack.c:113 ubsan_epilogue+0xd/0x3a lib/ubsan.c:158 __ubsan_handle_shift_out_of_bounds.cold.13+0x21/0x68 lib/ubsan.c:404 dummy_hub_control.cold.8+0x1c/0xdd drivers/usb/gadget/udc/dummy_hcd.c:2288 rh_call_control drivers/usb/core/hcd.c:682 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:841 [inline] usb_hcd_submit_urb+0x807/0x2150 drivers/usb/core/hcd.c:1548 usb_submit_urb+0xa65/0x1280 drivers/usb/core/urb.c:569 usb_start_wait_urb+0x106/0x500 drivers/usb/core/message.c:57 usb_internal_control_msg drivers/usb/core/message.c:101 [inline] usb_control_msg+0x331/0x570 drivers/usb/core/message.c:152 proc_control+0x2a9/0x5b0 drivers/usb/core/devio.c:1163 usbdev_do_ioctl+0x166c/0x3130 drivers/usb/core/devio.c:2523 usbdev_ioctl+0x9/0x10 drivers/usb/core/devio.c:2696 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x196/0x1150 fs/ioctl.c:696 ksys_ioctl+0x62/0x90 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:718 do_syscall_64+0x93/0x4e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45e149 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7ba75edc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149 RDX: 0000000020000000 RSI: 00000000c0185500 RDI: 0000000000000003 RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffe6d5c95bf R14: 00007f7ba75ee9c0 R15: 000000000119bf8c ================================================================================