From: Mike Christie <michael.christie@oracle.com>
To: Zhong Jinghua <zhongjinghua@huaweicloud.com>,
lduncan@suse.com, cleech@redhat.com, jejb@linux.vnet.ibm.com,
martin.petersen@oracle.com
Cc: open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org, zhongjinghua@huawei.com,
yi.zhang@huawei.com, yukuai3@huawei.com, houtao1@huawei.com
Subject: Re: [PATCH] scsi: iscsi_tcp: Check the sock is correct before iscsi_set_param
Date: Wed, 29 Mar 2023 10:17:07 -0500 [thread overview]
Message-ID: <15e892ef-0ab4-b2c9-bfc7-6cc3ba221c4a@oracle.com> (raw)
In-Reply-To: <20230329071739.2175268-1-zhongjinghua@huaweicloud.com>
On 3/29/23 2:17 AM, Zhong Jinghua wrote:
> From: Zhong Jinghua <zhongjinghua@huawei.com>
>
> The correctness of sock should be checked before assignment to avoid
> assigning wrong values.
>
> Commit
> "scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()"
> introduced this change. This change may lead to inconsistent values of
> tcp_sw_conn->sendpage and conn->datadgst_en.
>
> Fix it by moving the position of the assignment.
>
> Fixes: 57569c37f0ad ("scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()")
> Signed-off-by: Zhong Jinghua <zhongjinghua@huawei.com>
Thanks.
Reviewed-by: Mike Christie <michael.christie@oracle.com>
prev parent reply other threads:[~2023-03-29 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 7:17 Zhong Jinghua
2023-03-29 15:17 ` Mike Christie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15e892ef-0ab4-b2c9-bfc7-6cc3ba221c4a@oracle.com \
--to=michael.christie@oracle.com \
--cc=cleech@redhat.com \
--cc=houtao1@huawei.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=lduncan@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=open-iscsi@googlegroups.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai3@huawei.com \
--cc=zhongjinghua@huawei.com \
--cc=zhongjinghua@huaweicloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®