gspca_cpia1: usb_control_msg a1, error -32 gspca_cpia1: usb_control_msg 05, error -71 gspca_cpia1: usb_control_msg 03, error -71 ================================================================================ UBSAN: shift-out-of-bounds in drivers/media/usb/gspca/cpia1.c:1031:27 shift exponent 245 is too large for 32-bit type 'int' CPU: 0 PID: 1611 Comm: kworker/0:2 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: usb_hub_wq hub_event Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:387 set_flicker+0x11d8/0x12c0 drivers/media/usb/gspca/cpia1.c:1031 sd_s_ctrl+0x8ac/0x1714 drivers/media/usb/gspca/cpia1.c:1782 __v4l2_ctrl_handler_setup+0x570/0x674 drivers/media/v4l2-core/v4l2-ctrls-core.c:2481 v4l2_ctrl_handler_setup+0x58/0x94 drivers/media/v4l2-core/v4l2-ctrls-core.c:2498 gspca_set_default_mode drivers/media/usb/gspca/gspca.c:908 [inline] gspca_dev_probe2+0x814/0x1084 drivers/media/usb/gspca/gspca.c:1541 gspca_dev_probe+0x140/0x210 drivers/media/usb/gspca/gspca.c:1610 sd_probe+0x38/0x48 drivers/media/usb/gspca/benq.c:258 usb_probe_interface+0x500/0x984 drivers/usb/core/driver.c:396 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_set_configuration+0x15cc/0x1b38 drivers/usb/core/message.c:2211 usb_generic_driver_probe+0x8c/0x148 drivers/usb/core/generic.c:238 usb_probe_device+0x120/0x25c drivers/usb/core/driver.c:293 really_probe+0x394/0xa7c drivers/base/dd.c:658 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:798 driver_probe_device+0x78/0x330 drivers/base/dd.c:828 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:956 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:457 __device_attach+0x2b4/0x434 drivers/base/dd.c:1028 device_initial_probe+0x24/0x34 drivers/base/dd.c:1077 bus_probe_device+0x178/0x240 drivers/base/bus.c:532 device_add+0xa44/0xdf0 drivers/base/core.c:3625 usb_new_device+0x904/0x142c drivers/usb/core/hub.c:2590 hub_port_connect drivers/usb/core/hub.c:5422 [inline] hub_port_connect_change drivers/usb/core/hub.c:5566 [inline] port_event drivers/usb/core/hub.c:5726 [inline] hub_event+0x24f8/0x4638 drivers/usb/core/hub.c:5808 process_one_work+0x800/0x1480 kernel/workqueue.c:2600 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2751 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:853 ================================================================================ input: cpia1 as /devices/platform/dummy_hcd.0/usb1/1-1/input/input2 usb 1-1: USB disconnect, device number 6 usb 1-1: new high-speed USB device number 7 using dummy_hcd usb 1-1: New USB device found, idVendor=0553, idProduct=0002, bcdDevice=b0.11 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? gspca_main: cpia1-2.14.0 probing 0553:0002 cpia1 1-1:0.0: unexpected state after lo power cmd: 01 gspca_cpia1: usb_control_msg 01, error -32 gspca_cpia1: usb_control_msg 01, error -32 gspca_cpia1: usb_control_msg 01, error -32 gspca_cpia1: usb_control_msg 01, error -32 cpia1 1-1:0.0: unexpected state after hi power cmd: f5 cpia1: probe of 1-1:0.0 failed with error -5 usb 1-1: USB disconnect, device number 7 usb 1-1: new high-speed USB device number 8 using dummy_hcd usb 1-1: New USB device found, idVendor=0553, idProduct=0002, bcdDevice=b0.11 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? gspca_main: cpia1-2.14.0 probing 0553:0002