================================================================================ 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: 9122 Comm: syz-executor.5 Not tainted 5.10.0-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+0x2bc/0xa77 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+0x17f/0x200 kernel/softirq.c:420 irq_exit_rcu+0x5/0x20 kernel/softirq.c:432 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:clear_page_erms+0x7/0x10 arch/x86/lib/clear_page_64.S:49 Code: 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d9 90 c3 0f 1f 80 00 00 00 00 b9 00 10 00 00 31 c0 aa c3 cc cc cc cc cc cc 41 57 41 56 41 55 41 54 55 53 48 89 fb RSP: 0018:ffffc90000f0f120 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffea00006ee800 RCX: 0000000000000540 RDX: 1ffff11004797c78 RSI: 0000000000000001 RDI: ffff88801bba0ac0 RBP: ffff888023cbd040 R08: 0000000000000001 R09: ffffed1003774000 R10: fffff940000ddd06 R11: 0000000000000100 R12: ffffed1004797caa R13: dffffc0000000000 R14: ffffea00006ee840 R15: ffff888023cbe550 clear_page arch/x86/include/asm/page_64.h:49 [inline] clear_highpage include/linux/highmem.h:203 [inline] kernel_init_free_pages+0x99/0x120 mm/page_alloc.c:1208 prep_new_page mm/page_alloc.c:2300 [inline] get_page_from_freelist+0x1c86/0x3fc0 mm/page_alloc.c:3938 __alloc_pages_nodemask+0x2d6/0x740 mm/page_alloc.c:4988 alloc_pages_current+0x18c/0x2a0 mm/mempolicy.c:2267 alloc_pages include/linux/gfp.h:547 [inline] __vmalloc_area_node+0x3de/0x6e0 mm/vmalloc.c:2508 __vmalloc_node_range mm/vmalloc.c:2574 [inline] __vmalloc_node mm/vmalloc.c:2617 [inline] vzalloc+0x116/0x1a0 mm/vmalloc.c:2670 xt_counters_alloc+0x4c/0x70 net/netfilter/x_tables.c:1348 __do_replace+0x9a/0x8a0 net/ipv4/netfilter/ip_tables.c:1048 compat_do_replace.constprop.0+0x29c/0x470 net/ipv6/netfilter/ip6_tables.c:1530 do_ipt_set_ctl+0x595/0xb50 net/ipv4/netfilter/ip_tables.c:1624 nf_setsockopt+0x83/0xe0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x3c3/0x3ac0 net/ipv4/ip_sockglue.c:1435 tcp_setsockopt+0x136/0x2440 net/ipv4/tcp.c:3597 __sys_setsockopt+0x2db/0x610 net/socket.c:2115 __do_compat_sys_socketcall+0x4ef/0x660 net/compat.c:492 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x56/0x80 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fb0549 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000090bf6c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000066 RAX: ffffffffffffffda RBX: 000000000000000e RCX: 00000000090bf6dc RDX: 00000000090bf81c RSI: 00000000090bf788 RDI: 00000000090bfdac RBP: 0000000008161948 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================