================================================================================ 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: 0 PID: 4910 Comm: systemd-udevd Not tainted 5.10.0-rc7-next-20201210-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 snto32.cold+0x37/0x3c drivers/hid/hid-core.c:1315 hid_input_field drivers/hid/hid-core.c:1548 [inline] hid_report_raw_event+0x7a9/0x11b0 drivers/hid/hid-core.c:1783 hid_input_report+0x360/0x4c0 drivers/hid/hid-core.c:1850 hid_irq_in+0x50e/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x38c/0x430 drivers/usb/core/hcd.c:1728 dummy_timer+0x11f4/0x32a0 drivers/usb/gadget/udc/dummy_hcd.c:1971 call_timer_fn+0x1a5/0x710 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers.part.0+0x692/0xa80 kernel/time/timer.c:1731 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1744 __do_softirq+0x2b7/0xa76 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+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:424 [inline] irq_exit_rcu+0x194/0x210 kernel/softirq.c:436 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0010:check_preemption_disabled+0xe/0x150 lib/smp_processor_id.c:14 Code: 0f 1f 44 00 00 85 db 75 ae 0f 1f 44 00 00 41 bc 01 00 00 00 e8 f3 ea a6 fa eb 9f cc 41 56 41 55 49 89 f5 41 54 55 48 89 fd 53 <0f> 1f 44 00 00 65 44 8b 25 c5 2f eb 76 65 8b 1d 1e 8a eb 76 81 e3 RSP: 0018:ffffc9000112f760 EFLAGS: 00000286 RAX: 0000000000000001 RBX: 1ffff92000225ef9 RCX: ffffffff81581b78 RDX: 0000000000000001 RSI: ffffffff89bf7aa0 RDI: ffffffff89bf7ae0 RBP: ffffffff89bf7ae0 R08: 0000000000000000 R09: ffffffff8d7d324f R10: fffffbfff1afa649 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff89bf7aa0 R14: 0000000000000000 R15: 0000000000000000 rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1161 [inline] rcu_lockdep_current_cpu_online+0x2d/0x150 kernel/rcu/tree.c:1152 rcu_read_lock_held_common kernel/rcu/update.c:110 [inline] rcu_read_lock_held_common kernel/rcu/update.c:100 [inline] rcu_read_lock_sched_held+0x25/0x70 kernel/rcu/update.c:121 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x5d3/0x750 kernel/locking/lockdep.c:5408 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x134/0x1110 kernel/locking/mutex.c:1103 kernfs_dop_revalidate+0x98/0x3a0 fs/kernfs/dir.c:563 d_revalidate fs/namei.c:768 [inline] d_revalidate fs/namei.c:765 [inline] lookup_fast+0x38e/0x6c0 fs/namei.c:1505 walk_component+0xc6/0x6a0 fs/namei.c:1857 link_path_walk.part.0+0x6b8/0xc20 fs/namei.c:2184 link_path_walk fs/namei.c:2112 [inline] path_lookupat+0xb7/0x830 fs/namei.c:2333 filename_lookup+0x19f/0x560 fs/namei.c:2367 user_path_at include/linux/namei.h:59 [inline] do_faccessat+0x129/0x870 fs/open.c:423 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f3a3f9289c7 Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffd508d13a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00005603c4590300 RCX: 00007f3a3f9289c7 RDX: 00746e657665752f RSI: 0000000000000000 RDI: 00007ffd508d13b0 RBP: 00007ffd508d1420 R08: 000000000000ec21 R09: 0000000000001010 R10: 00000000000000d0 R11: 0000000000000246 R12: 00005603c36e8856 R13: 00005603c4597860 R14: 00007ffd508d13b0 R15: 00007ffd508d14f0 ================================================================================