summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2025-02-26 14:42:18 +0100
committerKeith Busch <kbusch@kernel.org>2025-02-27 18:19:08 -0800
commitad95bab0cd28ed77c2c0d0b6e76e03e031391064 (patch)
tree3ba360d1fb8d066eb2e1d8b587095d2e7de012cb /tools/perf/scripts/python/parallel-perf.py
parentafb41b08c44e5386f2f52fa859010ac4afd2b66f (diff)
nvme-tcp: fix potential memory corruption in nvme_tcp_recv_pdu()
nvme_tcp_recv_pdu() doesn't check the validity of the header length. When header digests are enabled, a target might send a packet with an invalid header length (e.g. 255), causing nvme_tcp_verify_hdgst() to access memory outside the allocated area and cause memory corruptions by overwriting it with the calculated digest. Fix this by rejecting packets with an unexpected header length. Fixes: 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver") Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions