summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorCan Peng <pengcan@kylinos.cn>2026-07-23 13:56:17 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-08-02 18:50:14 +0200
commit32856f39fefdc75bd253cab999f996750628648e (patch)
treeff2dda25eb77db9d5f0557f954977c1af6479c7d /tools/perf/scripts/python/parallel-perf.py
parent3a006d09a21d857ca24c9446a4dfb88e88d8389f (diff)
wifi: brcmfmac: validate msgbuf flowring IDs before use
Firmware messages carry flow_ring_id values which brcmfmac converts to an internal flowid by subtracting BRCMF_H2D_MSGRING_FLOWRING_IDSTART. The resulting value is used as a bit index in txstatus_done_map and as an array index into msgbuf->flowrings and the flowring state. Validate the firmware supplied flow_ring_id before using it. This prevents flow_ring_id values below BRCMF_H2D_MSGRING_FLOWRING_IDSTART from underflowing and rejects values outside msgbuf->max_flowrings. In the tx status path, complete the packet with an error after removing a valid packet id so the skb is not leaked when the flow ring id is invalid. Signed-off-by: Can Peng <pengcan@kylinos.cn> Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com> Link: https://patch.msgid.link/20260723055618.550834-1-pengcan@kylinos.cn Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions