diff options
author | 2020-11-23 21:08:57 +0200 | |
---|---|---|
committer | 2020-11-24 16:07:13 -0800 | |
commit | 5b7022cf1dc0d721bd4b5f3bada05bd8ced82fe0 (patch) | |
tree | e482973b120cbc8c754033d915cb14ce687cae41 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nfc: s3fwrn5: use signed integer for parsing GPIO numbers (diff) | |
download | wireguard-linux-5b7022cf1dc0d721bd4b5f3bada05bd8ced82fe0.tar.xz wireguard-linux-5b7022cf1dc0d721bd4b5f3bada05bd8ced82fe0.zip |
net: ena: handle bad request id in ena_netdev
After request id is checked in validate_rx_req_id() its value is still
used in the line
rx_ring->free_ids[next_to_clean] =
rx_ring->ena_bufs[i].req_id;
even if it was found to be out-of-bound for the array free_ids.
The patch moves the request id to an earlier stage in the napi routine and
makes sure its value isn't used if it's found out-of-bounds.
Fixes: 30623e1ed116 ("net: ena: avoid memory access violation by validating req_id properly")
Signed-off-by: Ido Segev <idose@amazon.com>
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions