* [BUG] scsi: iscsi: possible null-pointer dereference in iscsit_tpg_add_network_portal()
@ 2021-08-10 13:48 Tuo Li
0 siblings, 0 replies; only message in thread
From: Tuo Li @ 2021-08-10 13:48 UTC (permalink / raw)
To: martin.petersen; +Cc: baijiaju1990, linux-scsi, target-devel, Linux Kernel
Hello,
Our static analysis tool finds a possible null-pointer dereference in
the iscsi driver in Linux 5.14.0-rc3:
The variable tpg->tpg_tiqn is checked in:
496: if (tpg->tpg_tiqn)
This indicates that it can be NULL. If so, a null-pointer dereference
will occur:
508: pr_debug("CORE[%s] - Added Network Portal: %pISpc,%hu on %s\n",
tpg->tpg_tiqn->tiqn, ...)
I am not quite sure whether this possible null-pointer dereference is
real and how to fix it if it is real.
Any feedback would be appreciated, thanks!
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Best wishes,
Tuo Li
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-10 13:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 13:48 [BUG] scsi: iscsi: possible null-pointer dereference in iscsit_tpg_add_network_portal() Tuo Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®