Spdk/test/unit/lib/iscsi
melon.masou 565a44628d iscsi: fix segfault when r2t
Fixes #2781

This patch fixes two issue causing segfault on r2t:
1. pdu buffer is allocated from immediate_data_pool, but data_buf_len is set as data_out_pool
2. task->desired_data_transfer_length is rewrite by iscsi_send_r2t, which causes a wrong calculated pdu->data_buf_len

Signed-off-by: melon.masou <melon.masou@outlook.com>
Change-Id: I151859afff7104f29ad7f0ec57a8479d88b742bd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15542
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2022-11-29 17:21:18 +00:00
..
conn.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
init_grp.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi.c iscsi: fix segfault when r2t 2022-11-29 17:21:18 +00:00
param.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
portal_grp.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
tgt_node.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
common.c add Intel copyright notices (and/or SPDX lic) where missing 2022-11-10 08:28:53 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00