diff options
| author | Zekun Shen <[email protected]> | 2020-06-16 09:25:43 -0400 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2020-06-23 10:43:17 +0300 |
| commit | aed95297250f0cac4c4861eef4a91708970aa1dc (patch) | |
| tree | b79809879d435080423278c2872e758acdd33ae2 /tools/perf/scripts/python | |
| parent | 93a5b668806c1d868f7f9f0438321006200c049f (diff) | |
ath10k: pci: fix memcpy size of bmi response
A compromized ath10k peripheral is able to control the size argument
of memcpy in ath10k_pci_hif_exchange_bmi_msg.
The min result from previous line is not used as the size argument
for memcpy. Instead, xfer.resp_len comes from untrusted stream dma
input. The value comes from "nbytes" in ath10k_pci_bmi_recv_data,
which is set inside _ath10k_ce_completed_recv_next_nolock with the line
nbytes = __le16_to_cpu(sdesc.nbytes);
sdesc is a stream dma region which device can write to.
Signed-off-by: Zekun Shen <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions