summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorChris Leech <cleech@redhat.com>2023-03-21 19:30:25 +0300
committerChristoph Hellwig <hch@lst.de>2023-04-13 09:55:05 +0300
commitaeacfcefa218f4ed11da478e9b7915a37d1afaff (patch)
treeb1a61cbfa402e121052872e729e305ca9bd6d5ac /scripts/lib
parentc5a9abfad9fb010c39defeee0c939bfa9430a5a3 (diff)
downloadlinux-aeacfcefa218f4ed11da478e9b7915a37d1afaff.tar.xz
nvme-tcp: fence TCP socket on receive error
Ensure that no further socket reads occur after a receive processing error, either from io_work being re-scheduled or nvme_tcp_poll. Failing to do so can result in unrecognised PDU payloads or TCP stream garbage being processed as a C2H data PDU, and potentially start copying the payload to an invalid destination after looking up a request using a bogus command id. Signed-off-by: Chris Leech <cleech@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: John Meneghini <jmeneghi@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions