syzbot


UBSAN: shift-out-of-bounds in s32ton

Status: upstream: reported C repro on 2025/12/08 23:28
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+a0875f420b07dcb98b5d@syzkaller.appspotmail.com
First crash: 52d, last: 3d01h
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2025/12/09 lts (merge base) cc5ec8769306 C [report] UBSAN: shift-out-of-bounds in s32ton
2025/12/08 upstream (ToT) a110f942672c C Didn't crash
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: shift-out-of-bounds in s32ton usb input -1 18 339d 444d 0/29 auto-obsoleted due to no activity on 2025/05/23 12:14
upstream UBSAN: shift-out-of-bounds in s32ton (2) input usb -1 C 4 192d 199d 29/29 fixed on 2025/09/04 16:57
android-6-12 UBSAN: shift-out-of-bounds in s32ton origin:upstream -1 C 3 82d 199d 0/1 premoderation: reported C repro on 2025/07/14 11:42
android-6-1 UBSAN: shift-out-of-bounds in s32ton origin:lts -1 C error 3 34d 82d 0/2 upstream: reported C repro on 2025/11/08 09:31
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/12/23 20:36 7m retest repro android13-5.15-lts report log
2025/12/23 20:36 7m retest repro android13-5.15-lts report log
2025/12/23 20:36 7m retest repro android13-5.15-lts report log
2025/12/23 20:36 6m retest repro android13-5.15-lts report log

Sample crash report:
usb 3-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9
usb 3-1: New USB device found, idVendor=045e, idProduct=07da, bcdDevice= 0.00
usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 3-1: config 0 descriptor??
microsoft 0003:045E:07DA.0001: ignoring exceeding usage max
microsoft 0003:045E:07DA.0001: unsupported Resolution Multiplier 0
================================================================================
UBSAN: shift-out-of-bounds in drivers/hid/hid-core.c:1346:16
shift exponent 4294967295 is too large for 32-bit type '__s32' (aka 'int')
CPU: 0 PID: 6 Comm: kworker/0:0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 dump_stack+0x15/0x20 lib/dump_stack.c:113
 ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
 __ubsan_handle_shift_out_of_bounds+0x37c/0x400 lib/ubsan.c:321
 s32ton+0xe8/0x150 drivers/hid/hid-core.c:1346
 hid_output_field drivers/hid/hid-core.c:1615 [inline]
 hid_output_report+0x423/0x780 drivers/hid/hid-core.c:1647
 __hid_request+0x14f/0x400 drivers/hid/hid-core.c:1745
 hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1727 [inline]
 hidinput_connect+0x1e20/0x2ce0 drivers/hid/hid-input.c:2043
 hid_connect+0x46a/0xe10 drivers/hid/hid-core.c:1977
 hid_hw_start+0xaa/0x130 drivers/hid/hid-core.c:2084
 ms_probe+0x190/0x460 drivers/hid/hid-microsoft.c:391
 hid_device_probe+0x287/0x380 drivers/hid/hid-core.c:2312
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x285/0x970 drivers/base/dd.c:595
 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
 __device_attach+0x2b0/0x420 drivers/base/dd.c:979
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
 device_add+0xb31/0xed0 drivers/base/core.c:3422
 hid_add_device+0x356/0x4b0 drivers/hid/hid-core.c:2462
 usbhid_probe+0xb2e/0xee0 drivers/hid/usbhid/hid-core.c:1427
 usb_probe_interface+0x62e/0xb10 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x285/0x970 drivers/base/dd.c:595
 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
 __device_attach+0x2b0/0x420 drivers/base/dd.c:979
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
 device_add+0xb31/0xed0 drivers/base/core.c:3422
 usb_set_configuration+0x19c2/0x1f10 drivers/usb/core/message.c:2165
 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x285/0x970 drivers/base/dd.c:595
 __driver_probe_device+0x198/0x280 drivers/base/dd.c:755
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
 __device_attach+0x2b0/0x420 drivers/base/dd.c:979
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
 device_add+0xb31/0xed0 drivers/base/core.c:3422
 usb_new_device+0xd37/0x1650 drivers/usb/core/hub.c:2638
 hub_port_connect drivers/usb/core/hub.c:5555 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5695 [inline]
 port_event drivers/usb/core/hub.c:5861 [inline]
 hub_event+0x2ac8/0x4600 drivers/usb/core/hub.c:5943
 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325
 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472
 kthread+0x411/0x500 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
================================================================================
microsoft 0003:045E:07DA.0001: No inputs registered, leaving
microsoft 0003:045E:07DA.0001: hidraw0: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.2-1/input0
microsoft 0003:045E:07DA.0001: no inputs found
microsoft 0003:045E:07DA.0001: could not initialize ff, continuing anyway
usb 3-1: USB disconnect, device number 2

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/27 03:04 android13-5.15-lts fd7f3945989f efb3e894 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2026/01/24 19:04 android13-5.15-lts 00b50d06692d 40acda8a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2026/01/24 18:30 android13-5.15-lts 00b50d06692d 40acda8a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2025/12/09 01:21 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2025/12/09 00:46 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2025/12/09 00:08 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2025/12/08 23:26 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
2025/12/08 22:28 android13-5.15-lts 057fdbf6d3c7 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in s32ton
* Struck through repros no longer work on HEAD.