Skip to content

HID: Replace deprecated create_singlethread_workqueue

George Karagounis linux-input lkml 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Addressed Sashiko bot review regarding WQ_MEM_RECLAIM misuse. Changed flags to 0 since these queues do not participate in memory reclaim.
- Fixed a critical format string vulnerability in hid-haptic.c by passing the format string directly to alloc_ordered_workqueue() and removing the unnecessary kmalloc/sprintf.
- Verified runtime behavior by compiling a minimal kernel and booting in QEMU. Confirmed successful initialization and safe HID descriptor parsing via a uhid fuzzer. But needs testing on real hardware.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueuedrivers/hid/hid-haptic.c+1 -70 replies
2/3HID: elo: Replace create_singlethread_workqueue with alloc_ordered_workqueuedrivers/hid/hid-elo.c+1 -10 replies
3/3HID: logitech-hidpp: Replace create_singlethread_workqueue with alloc_ordered_workqueuedrivers/hid/hid-logitech-hidpp.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] HID: Replace deprecated create_singlethread_workqueue

Hi maintainers,

This patch series replaces the deprecated create_singlethread_workqueue() with the more efficient alloc_ordered_workqueue() in three HID drivers.

Changes in v2:
- Addressed Sashiko bot review regarding WQ_MEM_RECLAIM misuse. Changed flags to 0 since these queues do not participate in memory reclaim.
- Fixed a critical format string vulnerability in hid-haptic.c by passing the format string directly to alloc_ordered_workqueue() and removing the unnecessary kmalloc/sprintf.
- Verified runtime behavior by compiling a minimal kernel and booting in QEMU. Confirmed successful initialization and safe HID descriptor parsing via a uhid fuzzer. But needs testing on real hardware.

Best regards,
George

George Karagounis (3):
HID: haptic: Replace create_singlethread_workqueue with
alloc_ordered_workqueue
HID: elo: Replace create_singlethread_workqueue with
alloc_ordered_workqueue
HID: logitech-hidpp: Replace create_singlethread_workqueue with
alloc_ordered_workqueue

 drivers/hid/hid-elo.c            | 2 +-
 drivers/hid/hid-haptic.c         | 8 +-------
 drivers/hid/hid-logitech-hidpp.c | 2 +-
 3 files changed, 3 insertions(+), 9 deletions(-)
Signature · 1 line
2.56.0