Spdk/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 iscsi: unregister login_timer when destroying connection 2022-11-23 08:22:04 +00:00
conn.h 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
init_grp.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi_rpc.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi_subsystem.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
iscsi.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
md5.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
md5.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
param.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
param.h 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
portal_grp.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_iscsi.map subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
task.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
task.h 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
tgt_node.h update Intel copyright notices 2022-11-10 08:28:53 +00:00