summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-08-14 15:58:37 +0800
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2026-09-21 10:58:00 -0700
commit93ce8ea70451e800601bc9444aa33043de15d67b (patch)
treee5b4721eda660cb2aca54b4be07c752e7c9734ea /tools/perf/scripts/python
parent1af8dc9ca726cf53767f9c0661171396f95c146a (diff)
downloadlinux-93ce8ea70451e800601bc9444aa33043de15d67b.tar.gz
linux-93ce8ea70451e800601bc9444aa33043de15d67b.zip
wifi: ath9k: reject short WMI command responses
ath9k_wmi_rsp_callback() removes the validated WMI header and copies the number of bytes expected by the waiting command into its response buffer. A device response shorter than that expectation can therefore be read beyond the skb payload. Record -EMSGSIZE for a short response, complete the waiter, and return the stored status from the command path. This also prevents callers from consuming stale response bytes as a successful reply. Fixes: fb9987d0f748 ("ath9k_htc: Support for AR9271 chipset.") Assisted-by: LLM Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260814075837.20005-1-pengpeng@iscas.ac.cn Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions