Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH 0/8] Input: adi - bounds checking fixes and driver cleanups
@ 2026-11-30  5:42 Dmitry Torokhov
  2026-11-30  5:42 ` [PATCH 1/8] Input: adi - fix out-of-bounds write in adi_read_packet() Dmitry Torokhov
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Dmitry Torokhov @ 2026-11-30  5:42 UTC (permalink / raw)
  To: linux-input; +Cc: Lee Jones, Vojtech Pavlik, Guanglei Zhu, linux-kernel

This series fixes packet bounds checking and ID packet validation in the
Logitech ADI joystick driver, followed by a few follow-up cleanups.

The first three patches fix the off-by-one packet buffer write in
adi_read_packet(), bound the two-stream merge in adi_move_bits(), and
consolidate the parallel model tables into a descriptor array so
adi_id_decode() can reject underflowing or out-of-range axis, pad, and
button counts. The remaining patches switch to explicit fixed-width types
and const tables, simplify device name formatting by dropping the
temporary buffer and dynamic format string, convert remaining warnings to
dev_warn(), adopt BIT() and GENMASK() for bitmasks and bit checks, and
clean up coding style across the driver.

Thanks.

Dmitry Torokhov (8):
  Input: adi - fix out-of-bounds write in adi_read_packet()
  Input: adi - bound two-stream packet merge in adi_move_bits()
  Input: adi - validate ID packet axis and button counts
  Input: adi - use explicit fixed-width types and const tables
  Input: adi - simplify device name formatting
  Input: adi - use dev_warn() in adi_id_decode()
  Input: adi - use BIT() and GENMASK() for bitmasks and bit checks
  Input: adi - clean up formatting

 drivers/input/joystick/adi.c | 301 +++++++++++++++++++++++++----------
 1 file changed, 214 insertions(+), 87 deletions(-)

-- 
2.56.1.839.g22a8290db9-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-30  5:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  5:42 [PATCH 0/8] Input: adi - bounds checking fixes and driver cleanups Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 1/8] Input: adi - fix out-of-bounds write in adi_read_packet() Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 2/8] Input: adi - bound two-stream packet merge in adi_move_bits() Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 3/8] Input: adi - validate ID packet axis and button counts Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 4/8] Input: adi - use explicit fixed-width types and const tables Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 5/8] Input: adi - simplify device name formatting Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 6/8] Input: adi - use dev_warn() in adi_id_decode() Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 7/8] Input: adi - use BIT() and GENMASK() for bitmasks and bit checks Dmitry Torokhov
2026-11-30  5:42 ` [PATCH 8/8] Input: adi - clean up formatting Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox