------------[ cut here ]------------ UBSAN: shift-out-of-bounds in ./include/linux/log2.h:57:13 shift exponent 64 is too large for 64-bit type 'unsigned long' CPU: 1 UID: 0 PID: 6478 Comm: kworker/1:3 Not tainted 6.15.0-rc6-syzkaller-ga82e92598ab1 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: usb_hub_wq hub_event Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 ubsan_epilogue+0x14/0x48 lib/ubsan.c:231 __ubsan_handle_shift_out_of_bounds+0x2b0/0x34c lib/ubsan.c:492 __roundup_pow_of_two include/linux/log2.h:57 [inline] __kfifo_alloc+0x190/0x214 lib/kfifo.c:32 wacom_devm_kfifo_alloc drivers/hid/wacom_sys.c:1308 [inline] wacom_parse_and_register+0x254/0x5320 drivers/hid/wacom_sys.c:2368 wacom_probe+0x6f0/0x8f8 drivers/hid/wacom_sys.c:2867 __hid_device_probe drivers/hid/hid-core.c:2717 [inline] hid_device_probe+0x334/0x5f8 drivers/hid/hid-core.c:2754 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x394/0x910 drivers/base/dd.c:657 __driver_probe_device+0x180/0x2d4 drivers/base/dd.c:799 driver_probe_device+0x78/0x330 drivers/base/dd.c:829 __device_attach_driver+0x290/0x4e0 drivers/base/dd.c:957 bus_for_each_drv+0x220/0x2b4 drivers/base/bus.c:462 __device_attach+0x26c/0x388 drivers/base/dd.c:1029 device_initial_probe+0x24/0x34 drivers/base/dd.c:1078 bus_probe_device+0x178/0x240 drivers/base/bus.c:537 device_add+0x71c/0xa60 drivers/base/core.c:3692 hid_add_device+0x310/0x4c8 drivers/hid/hid-core.c:2900 usbhid_probe+0xa44/0xea4 drivers/hid/usbhid/hid-core.c:1432 usb_probe_interface+0x584/0xa44 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x394/0x910 drivers/base/dd.c:657 __driver_probe_device+0x180/0x2d4 drivers/base/dd.c:799 driver_probe_device+0x78/0x330 drivers/base/dd.c:829 __device_attach_driver+0x290/0x4e0 drivers/base/dd.c:957 bus_for_each_drv+0x220/0x2b4 drivers/base/bus.c:462 __device_attach+0x26c/0x388 drivers/base/dd.c:1029 device_initial_probe+0x24/0x34 drivers/base/dd.c:1078 bus_probe_device+0x178/0x240 drivers/base/bus.c:537 device_add+0x71c/0xa60 drivers/base/core.c:3692 usb_set_configuration+0x1640/0x1bac drivers/usb/core/message.c:2210 usb_generic_driver_probe+0x8c/0x144 drivers/usb/core/generic.c:250 usb_probe_device+0x1a4/0x348 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x394/0x910 drivers/base/dd.c:657 __driver_probe_device+0x180/0x2d4 drivers/base/dd.c:799 driver_probe_device+0x78/0x330 drivers/base/dd.c:829 __device_attach_driver+0x290/0x4e0 drivers/base/dd.c:957 bus_for_each_drv+0x220/0x2b4 drivers/base/bus.c:462 __device_attach+0x26c/0x388 drivers/base/dd.c:1029 device_initial_probe+0x24/0x34 drivers/base/dd.c:1078 bus_probe_device+0x178/0x240 drivers/base/bus.c:537 device_add+0x71c/0xa60 drivers/base/core.c:3692 usb_new_device+0x7f0/0x1220 drivers/usb/core/hub.c:2663 hub_port_connect drivers/usb/core/hub.c:5531 [inline] hub_port_connect_change drivers/usb/core/hub.c:5671 [inline] port_event drivers/usb/core/hub.c:5831 [inline] hub_event+0x2148/0x3cf0 drivers/usb/core/hub.c:5913 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 ---[ end trace ]--- wacom 0003:056A:0044.0002: probe with driver wacom failed with error -22