Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] HID: intel-thc-hid: validate ACPI buffer lengths
@ 2026-10-29 14:10 Tristan Madani
  2026-10-29 14:10 ` [PATCH v3 1/2] HID: intel-thc-hid: quickspi: validate ACPI buffer length before memcpy Tristan Madani
  2026-10-29 14:10 ` [PATCH v3 2/2] HID: intel-thc-hid: quicki2c: " Tristan Madani
  0 siblings, 2 replies; 3+ messages in thread
From: Tristan Madani @ 2026-10-29 14:10 UTC (permalink / raw)
  To: Even Xu, Xinpeng Sun, Jiri Kosina, Benjamin Tissoires
  Cc: Srinivas Pandruvada, Mark Pearson, linux-input, stable,
	Tristan Madani

From: Tristan Madani <tristan@talencesecurity.com>

The QuickSPI and QuickI2C ACPI helper functions copy firmware-returned
buffers without verifying their length.  This series adds buf_size
parameters and overflow checks.

Changes in v3:
- Split into two separate patches (QuickSPI and QuickI2C), per Even Xu
- Add kernel-doc @buf_size parameter descriptions

Changes in v2:
- Use overflow-only check (>) instead of exact-match (!=)
- Zero-initialize caller stack structures
- Add missing type validation and kfree in DSD helper

Tristan Madani (2):
  HID: intel-thc-hid: quickspi: validate ACPI buffer length before
    memcpy
  HID: intel-thc-hid: quicki2c: validate ACPI buffer length before
    memcpy

 .../intel-quicki2c/pci-quicki2c.c             | 42 ++++++++++++++-----
 .../intel-quickspi/pci-quickspi.c             | 37 +++++++++-------
 2 files changed, 54 insertions(+), 25 deletions(-)

-- 
2.47.3

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

end of thread, other threads:[~2026-10-29 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 14:10 [PATCH v3 0/2] HID: intel-thc-hid: validate ACPI buffer lengths Tristan Madani
2026-10-29 14:10 ` [PATCH v3 1/2] HID: intel-thc-hid: quickspi: validate ACPI buffer length before memcpy Tristan Madani
2026-10-29 14:10 ` [PATCH v3 2/2] HID: intel-thc-hid: quicki2c: " Tristan Madani

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