syzbot


UBSAN: shift-out-of-bounds in s32ton

Status: upstream: reported C repro on 2025/11/08 09:31
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+eec5b146521c20a05929@syzkaller.appspotmail.com
First crash: 63d, last: 15d
Bug presence (2)
Date Name Commit Repro Result
2025/11/09 lts (merge base) 882efbdd9d34 C [report] UBSAN: shift-out-of-bounds in s32ton
2025/11/09 upstream (ToT) f850568efe3a 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 input usb -1 18 320d 425d 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 173d 180d 29/29 fixed on 2025/09/04 16:57
android-6-12 UBSAN: shift-out-of-bounds in s32ton origin:upstream -1 C 3 63d 180d 0/1 premoderation: reported C repro on 2025/07/14 11:42
android-5-15 UBSAN: shift-out-of-bounds in s32ton origin:lts -1 C 5 17d 32d 0/2 upstream: reported C repro on 2025/12/08 23:28
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/11/22 15:06 9m retest repro android14-6.1 report log
2025/11/22 15:06 7m retest repro android14-6.1 report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/12/26 11:59 2h07m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
microsoft 0003:045E:07DA.0001: unknown main item tag 0x0
microsoft 0003:045E:07DA.0001: unknown main item tag 0x0
microsoft 0003:045E:07DA.0001: unknown main item tag 0x0
microsoft 0003:045E:07DA.0001: unsupported Resolution Multiplier 0
================================================================================
UBSAN: shift-out-of-bounds in drivers/hid/hid-core.c:1351:16
shift exponent 4294967295 is too large for 32-bit type '__s32' (aka 'int')
CPU: 0 PID: 19 Comm: kworker/0:1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 __dump_stack+0x21/0x24 lib/dump_stack.c:88
 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106
 dump_stack+0x15/0x24 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:1351
 hid_output_field drivers/hid/hid-core.c:1829 [inline]
 hid_output_report+0x423/0x780 drivers/hid/hid-core.c:1861
 __hid_request+0x152/0x450 drivers/hid/hid-core.c:1959
 hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1951 [inline]
 hidinput_connect+0x22c4/0x31b0 drivers/hid/hid-input.c:2328
 hid_connect+0x496/0x1960 drivers/hid/hid-core.c:2191
 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2304
 ms_probe+0x190/0x460 drivers/hid/hid-microsoft.c:391
 hid_device_probe+0x268/0x390 drivers/hid/hid-core.c:2635
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2cb/0x960 drivers/base/dd.c:639
 __driver_probe_device+0x198/0x280 drivers/base/dd.c:808
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
 bus_for_each_drv+0x183/0x210 drivers/base/bus.c:429
 __device_attach+0x2a2/0x400 drivers/base/dd.c:1038
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
 device_add+0xb4d/0xef0 drivers/base/core.c:3698
 hid_add_device+0x38f/0x540 drivers/hid/hid-core.c:2787
 usbhid_probe+0xbb6/0xfa0 drivers/hid/usbhid/hid-core.c:1427
 usb_probe_interface+0x610/0xaf0 drivers/usb/core/driver.c:397
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2cb/0x960 drivers/base/dd.c:639
 __driver_probe_device+0x198/0x280 drivers/base/dd.c:808
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
 bus_for_each_drv+0x183/0x210 drivers/base/bus.c:429
 __device_attach+0x2a2/0x400 drivers/base/dd.c:1038
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
 device_add+0xb4d/0xef0 drivers/base/core.c:3698
 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+0x159/0x270 drivers/usb/core/driver.c:294
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2cb/0x960 drivers/base/dd.c:639
 __driver_probe_device+0x198/0x280 drivers/base/dd.c:808
 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
 bus_for_each_drv+0x183/0x210 drivers/base/bus.c:429
 __device_attach+0x2a2/0x400 drivers/base/dd.c:1038
 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
 device_add+0xb4d/0xef0 drivers/base/core.c:3698
 usb_new_device+0xa70/0x1520 drivers/usb/core/hub.c:2684
 hub_port_connect drivers/usb/core/hub.c:5594 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5734 [inline]
 port_event drivers/usb/core/hub.c:5898 [inline]
 hub_event+0x2850/0x4350 drivers/usb/core/hub.c:5980
 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302
 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449
 kthread+0x281/0x320 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </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 (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/08 09:41 android14-6.1 50ba6c46f3ac 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: shift-out-of-bounds in s32ton
2025/11/08 09:22 android14-6.1 50ba6c46f3ac 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: shift-out-of-bounds in s32ton
2025/11/08 09:03 android14-6.1 50ba6c46f3ac 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: shift-out-of-bounds in s32ton
* Struck through repros no longer work on HEAD.