summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorHyeongJun An <sammiee5311@gmail.com>2026-10-28 15:55:12 +0800
committerJiri Kosina <jkosina@suse.com>2026-11-20 14:59:25 +0100
commit107274055fd9726f8f077529ae8c0da09237ad3e (patch)
tree5a7b290c2286d82aa447e97e531a1a155ebb95da /tools/perf/scripts/python/libxed.py
parent994baf0611c267040f9332358fc07237c16cd778 (diff)
HID: intel-thc-hid: intel-quickspi: validate GET REPORT response size
quickspi_handle_input_data() copies GET_FEATURE and GET_INPUT_REPORT responses into qsdev->report_buf. The response length is derived from data supplied by the controller, but was not checked against the destination buffer size. Adjust qsdev->report_buf_size to store the data length of report buffer, reject responses that exceed it before copying. This prevents an oversized response from overflowing report_buf. The rejected response does not complete the GET REPORT request, so quickspi_get_report() follows its existing timeout path. Fixes: 9d8d51735a3a ("HID: intel-thc-hid: intel-quickspi: Add HIDSPI protocol implementation") Cc: stable@vger.kernel.org Assisted-by: Claude:claude-opus-5 Signed-off-by: HyeongJun An <sammiee5311@gmail.com> Signed-off-by: Even Xu <even.xu@intel.com> Tested-by: Rui Zhang <rui1.zhang@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions