HID: Replace deprecated create_singlethread_workqueue
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesNew
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueuedrivers/ | +1 | 0 replies | |
| 2/3 | HID: elo: Replace create_singlethread_workqueue with alloc_ordered_workqueuedrivers/ | +1 | 0 replies | |
| 3/3 | HID: logitech-hidpp: Replace create_singlethread_workqueue with alloc_ordered_workqueuedrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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