Skip to content

6.19: Add HID uniq sanitization fix#148

Open
LarsSoeMikkelsen wants to merge 1 commit intoCachyOS:masterfrom
LarsSoeMikkelsen:master
Open

6.19: Add HID uniq sanitization fix#148
LarsSoeMikkelsen wants to merge 1 commit intoCachyOS:masterfrom
LarsSoeMikkelsen:master

Conversation

@LarsSoeMikkelsen
Copy link
Copy Markdown

Some USB HID devices return a serial string from usb_string() containing control characters, which propagate as UNIQ= in the kernel uevent. This causes systemd-logind TakeDevice to fail with ENODEV for all associated input event devices, making the device non-functional at boot.

Sanitizes hid->uniq after the usb_string() call to strip non-printable characters. Generic fix — affects any HID device with control chars in its USB serial.
Refs: systemd/systemd#41296, https://bugzilla.redhat.com/show_bug.cgi?id=2448678

6.19: Add HID uniq sanitization fix
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.

1 participant