nvme-tcp: fix UAF when detecting digest errors
stable inclusion from stable-v5.10.143 commit 5914fa32ef1b7766fea933f9eed94ac5c00aa7ff category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0U6 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5914fa32ef1b7766fea933f9eed94ac5c00aa7ff -------------------------------- [ Upstream commit 160f3549 ] We should also bail from the io_work loop when we set rd_enabled to true, so we don't attempt to read data from the socket when the TCP stream is already out-of-sync or corrupted. Fixes: 3f2304f8 ("nvme-tcp: add NVMe over TCP host driver") Reported-by:Daniel Wagner <dwagner@suse.de> Signed-off-by:
Sagi Grimberg <sagi@grimberg.me> Reviewed-by:
Daniel Wagner <dwagner@suse.de> Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com> Reviewed-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment