Skip to content

[FROM-ML] HID: gpd: fix report descriptor on GPD Win handheld (2f24:0137)#31

Open
KyleGospo wants to merge 1 commit intoogc-7.0.yfrom
gpd-win
Open

[FROM-ML] HID: gpd: fix report descriptor on GPD Win handheld (2f24:0137)#31
KyleGospo wants to merge 1 commit intoogc-7.0.yfrom
gpd-win

Conversation

@KyleGospo
Copy link
Copy Markdown
Member

https://lore.kernel.org/all/20260324013847.68024-1-honjow311@gmail.com/

The OEM USB HID interface found on GPD Win handhelds (VID 2f24, registered to ShenZhen HuiJiaZhi / GameSir, PID 0137) declares 63-byte Input and Feature reports for Report ID 1, but the firmware only transfers 11 data bytes per interrupt.

Since commit 0a3fe97 ("HID: core: Mitigate potential OOB by removing bogus memset()"), the HID core rejects undersized reports instead of zero- padding them. This breaks the device entirely on kernels >= v7.0-rc5.

Fix it by patching the report descriptor in report_fixup(), reducing Report Count from 63 to 11 for both Input and Feature.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221271

…137)

The OEM USB HID interface found on GPD Win handhelds (VID 2f24, registered
to ShenZhen HuiJiaZhi / GameSir, PID 0137) declares 63-byte Input and
Feature reports for Report ID 1, but the firmware only transfers 11 data
bytes per interrupt.

Since commit 0a3fe97 ("HID: core: Mitigate potential OOB by removing
bogus memset()"), the HID core rejects undersized reports instead of zero-
padding them. This breaks the device entirely on kernels >= v7.0-rc5.

Fix it by patching the report descriptor in report_fixup(), reducing
Report Count from 63 to 11 for both Input and Feature.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221271
Signed-off-by: honjow <honjow311@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants