================================================================================ UBSAN: shift-out-of-bounds in drivers/media/rc/mceusb.c:704:13 shift exponent 510 is too large for 32-bit type 'unsigned int' CPU: 1 PID: 9932 Comm: syz-executor.2 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+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 mceusb_dev_printdata.cold+0x19/0x1e drivers/media/rc/mceusb.c:704 mceusb_process_ir_data drivers/media/rc/mceusb.c:1275 [inline] mceusb_dev_recv+0x3cf/0x18c0 drivers/media/rc/mceusb.c:1376 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1656 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1726 dummy_timer+0x11f4/0x32a0 drivers/usb/gadget/udc/dummy_hcd.c:1971 call_timer_fn+0x1a5/0x630 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers.part.0+0x67c/0xa10 kernel/time/timer.c:1731 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0x80/0x120 kernel/time/timer.c:1744 __do_softirq+0x1b0/0x944 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:420 [inline] irq_exit_rcu+0x110/0x1a0 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629 RIP: 0010:check_kcov_mode+0x2e/0x40 kernel/kcov.c:174 Code: 59 c2 7e 89 c2 81 e2 00 01 00 00 a9 00 01 ff 00 74 10 31 c0 85 d2 74 15 8b 96 dc 13 00 00 85 d2 74 0b 8b 86 b8 13 00 00 39 f8 <0f> 94 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 31 c0 65 8b RSP: 0018:ffffc90006067770 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88813b065040 RDX: 0000000000000000 RSI: ffff88813b065040 RDI: 0000000000000003 RBP: ffffea0004b67280 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815edb15 R11: 0000000000000000 R12: ffff888102b73ee0 R13: 0000000000000000 R14: dffffc0000000000 R15: 00007f12401dd000 write_comp_data kernel/kcov.c:218 [inline] __sanitizer_cov_trace_const_cmp1+0x22/0x80 kernel/kcov.c:270 mm_counter_file include/linux/mm.h:1915 [inline] mm_counter include/linux/mm.h:1924 [inline] zap_pte_range mm/memory.c:1263 [inline] zap_pmd_range mm/memory.c:1368 [inline] zap_pud_range mm/memory.c:1397 [inline] zap_p4d_range mm/memory.c:1418 [inline] unmap_page_range+0xbb5/0x1cc0 mm/memory.c:1439 unmap_single_vma+0x198/0x300 mm/memory.c:1484 unmap_vmas+0x16d/0x2f0 mm/memory.c:1516 exit_mmap+0x2b1/0x5a0 mm/mmap.c:3220 __mmput kernel/fork.c:1082 [inline] mmput+0xce/0x3d0 kernel/fork.c:1103 exit_mm kernel/exit.c:501 [inline] do_exit+0xb6f/0x2940 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x480/0x24c0 kernel/signal.c:2773 arch_do_signal_or_restart+0x2ad/0x18b0 arch/x86/kernel/signal.c:811 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x12b/0x1f0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x48a6e1 Code: Unable to access opcode bytes at RIP 0x48a6b7. RSP: 002b:00007ffedcd7f730 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 000000000022976c RCX: 000000000048a6e1 RDX: 00007ffedcd7f770 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000000 R09: 00007ffedcde8090 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000056bf60 R13: 000000000022843b R14: 000000000056c9e0 R15: 000000000056c008 ================================================================================