summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2026-07-15 22:04:28 +0300
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>2026-07-16 21:10:48 +0300
commitc00a5d65b7ada536eb488280fae53fcf1724a7c3 (patch)
tree1fa043a7f344e86684720d76d3a2f6cda5eb65ae /tools/perf/scripts/python/flamegraph.py
parent7d8cc301bcba233f31b589a45f4c1c97f2bb90d6 (diff)
wifi: iwlwifi: mei: skip data read if length is too short
When calculating the SAP data length, the code subtracts sizeof(*ethhdr) from len. If the SAP data header indicates a length that is shorter than ethernet header length, this will result in an unsigned underflow which will lead to a kernel panic when trying to put the data into the SKB. Fix it by skipping a message if the indicated length is too short. In addition, if the message type is not SAP_MSG_DATA_PACKET or skb allocation fails, the loop skips to the next message but without reading the message payload. This may result in reading the payload as the next message header, which will lead to errors in parsing the next messages. Fix it by skipping the message payload as well. Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20260715220243.f66b10736047.I4a1dde517c36561d41358dd82a5cec8b6c886c14@changeid
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions