Skip to content

HID: intel-thc-hid: validate ACPI buffer lengths

Tristan Madani linux-input stable 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/22 patches 0 repliesNew
  2. v3 posting 1/21 patch 0 repliesSuperseded
  3. v21 patch 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch0 repliesSuperseded

Changes in v3 from the cover letter

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

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2HID: intel-thc-hid: quickspi: validate ACPI buffer length before memcpydrivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c+23 -140 replies
2/2HID: intel-thc-hid: quicki2c: validate ACPI buffer length before memcpydrivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c+31 -110 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEven Xu
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] HID: intel-thc-hid: validate ACPI buffer lengths

From: Tristan Madani <[email protected]>

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(-)
Signature · 1 line
2.47.3