From: Sagi Grimberg <sagi@grimberg.me>
To: "Belanger, Martin" <Martin.Belanger@dell.com>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>
Subject: Re: nvme-tcp bricks my computer
Date: Mon, 15 Feb 2021 13:35:37 -0800 [thread overview]
Message-ID: <7f5ff08a-36f0-3b67-9753-20eedd4b6f4d@grimberg.me> (raw)
In-Reply-To: <SJ0PR19MB4544CAB0A539F84E54EC5208F2889@SJ0PR19MB4544.namprd19.prod.outlook.com>
> Hi Sagi,
Hey,
> Just to give you an update...
>
> We're still investigating the root cause of the crash.
>
> We found a bug in our Discovery Controller related to SGL format (format
> 0x5A vs. 0x01). When the host sends a "Set Feature" to configure AER/AEN
> with a SGL format of 0x5A,
This is coming from:
--
static void nvme_tcp_set_sg_null(struct nvme_command *c)
{
struct nvme_sgl_desc *sg = &c->common.dptr.sgl;
sg->addr = 0;
sg->length = 0;
sg->type = (NVME_TRANSPORT_SGL_DATA_DESC << 4) |
NVME_SGL_FMT_TRANSPORT_A;
}
--
the DC responds with an R2T, which is
> obviously a bug. This does not happen when the SGL format is 0x01. We
> believe that this R2T, because it is unexpected by the nvme-tcp module,
> causes the module to crash.
I'm assuming because the R2T has data length of 0? because set_features
does not pass any data (feature offset/value is in the sqe)...
> One of our engineers that is more familiar with kernel modules is
> currently trying to understand how the R2T would cause nvme-tcp to crash.
>
> I will let you know if/when I get more info.
Cool, thanks.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
next prev parent reply other threads:[~2021-02-15 21:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 19:04 nvme-tcp bricks my computer Belanger, Martin
2021-02-03 8:05 ` Sagi Grimberg
[not found] ` <SJ0PR19MB4544B86790800C6371E7F96AF2B49@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-03 22:36 ` Sagi Grimberg
2021-02-03 22:56 ` Sagi Grimberg
[not found] ` <SJ0PR19MB4544A3DF2B1B2A1EEB8D1B41F2B39@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-04 7:43 ` Sagi Grimberg
2021-02-05 18:49 ` Sagi Grimberg
[not found] ` <SJ0PR19MB45442A0B8E171B55A8AACACEF2B29@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-05 19:38 ` Sagi Grimberg
[not found] ` <SJ0PR19MB4544A653D3A84A19A28D3984F28E9@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-10 22:33 ` Sagi Grimberg
[not found] ` <SJ0PR19MB4544CAB0A539F84E54EC5208F2889@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-15 21:35 ` Sagi Grimberg [this message]
2021-02-15 21:42 ` Sagi Grimberg
[not found] ` <SJ0PR19MB45441A133999DA90186BCC11F2869@SJ0PR19MB4544.namprd19.prod.outlook.com>
2021-02-17 23:26 ` Sagi Grimberg
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=7f5ff08a-36f0-3b67-9753-20eedd4b6f4d@grimberg.me \
--to=sagi@grimberg.me \
--cc=Martin.Belanger@dell.com \
--cc=linux-nvme@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).