numam-spdk/lib/iscsi
Tomasz Zawadzki a5a51c7b56 lib/iscsi: return immediately from iscsi_parse_params if len is 0
The spec does not disallow TEXT PDUs with no data.  In that
case, just return immediately from iscsi_parse_params.

This avoids a NULL pointer dereference with a TEXT PDU that has
no data, but CONTINUE flag is set.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6319 (master)

(cherry picked from commit f3fd56fc3c)
Change-Id: I2605293daf171633a45132d7b5532fdfc9128aff
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6601
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-03-03 08:11:04 +00:00
..
conn.c lib/iscsi: Support the Datain pdu sending in out of order case. 2021-01-07 13:36:39 +00:00
conn.h iscsi: Add the support for long text response. 2020-11-11 00:53:52 +00:00
init_grp.c subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
init_grp.h subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
iscsi_rpc.c lib/iscsi: Add wait parameter to iscsi_create_portal_group RPC 2020-11-24 08:20:37 +00:00
iscsi_subsystem.c lib: Use PRId64 for portability 2020-11-20 11:01:37 +00:00
iscsi.c lib/iscsi: directly use task->scsi.offset in iscsi_send_datain 2021-01-07 13:36:39 +00:00
iscsi.h subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
Makefile subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
md5.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
md5.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
param.c lib/iscsi: return immediately from iscsi_parse_params if len is 0 2021-03-03 08:11:04 +00:00
param.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in param.h 2020-04-20 07:38:29 +00:00
portal_grp.c lib/iscsi: Add portal_group_resume() and add pause parameter to portal_group_open() 2020-11-24 08:20:37 +00:00
portal_grp.h lib/iscsi: Add portal_group_resume() and add pause parameter to portal_group_open() 2020-11-24 08:20:37 +00:00
spdk_iscsi.map subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
task.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in task.h 2020-04-20 07:38:29 +00:00
task.h lib/iscsi: Replace the "spdk_" prefix by "iscsi_" for internal APIs declared in iscsi.h 2020-04-20 07:38:29 +00:00
tgt_node.c iscsi: get the member after the NULL check 2020-12-01 10:21:50 +00:00
tgt_node.h subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00