From: Guoqing Jiang <guoqing.jiang@linux.dev>
To: "lizhijian@fujitsu.com" <lizhijian@fujitsu.com>,
Haris Iqbal <haris.iqbal@ionos.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
Bob Pearson <rpearsonhpe@gmail.com>,
Zhu Yanjun <zyjzyj2000@gmail.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Aleksei Marov <aleksei.marov@ionos.com>,
Jinpu Wang <jinpu.wang@ionos.com>
Subject: Re: [PATCH] RDMA/rxe: Use kzalloc() to alloc map_set
Date: Wed, 25 May 2022 12:11:44 +0800 [thread overview]
Message-ID: <94a5ea93-b8bb-3a01-9497-e2021f29598a@linux.dev> (raw)
In-Reply-To: <123f5c7e-c2eb-7703-ace9-bc5074a394dd@fujitsu.com>
On 5/25/22 9:31 AM, lizhijian@fujitsu.com wrote:
>
> On 24/05/2022 18:56, Haris Iqbal wrote:
>> On Tue, May 24, 2022 at 6:00 AM lizhijian@fujitsu.com
>> <lizhijian@fujitsu.com> wrote:
>>> Hi Jason & Bob
>>> CC Guoqing
>>>
>>> @Guoqing, It may correlate with your previous bug report: https://lore.kernel.org/all/20220210073655.42281-1-guoqing.jiang@linux.dev/T/
>>>
>>>
>>> It's observed that a same MR in rnbd server will trigger below code
>>> path:
>>> -> rxe_mr_init_fast()
>>> |-> alloc map_set() # map_set is uninitialized
>>> |...-> rxe_map_mr_sg() # build the map_set
>>> |-> rxe_mr_set_page()
>>> |...-> rxe_reg_fast_mr() # mr->state change to VALID from FREE that means
>>> # we can access host memory(such rxe_mr_copy)
>>> |...-> rxe_invalidate_mr() # mr->state change to FREE from VALID
>>> |...-> rxe_reg_fast_mr() # mr->state change to VALID from FREE,
>>> # but map_set was not built again
>>> |...-> rxe_mr_copy() # kernel crash due to access wild addresses
>>> # that lookup from the map_set
Yes, it could be similar issue thought I didn't get kernel crash, but it
was FMR relevant.
https://lore.kernel.org/all/20220210073655.42281-1-guoqing.jiang@linux.dev/T/#m5dc6898375cedf17fea13ccebf595aac0454c841
> Yes, this workaround should work but expensive.
> It seems Bob has started a new thread to discuss the FMRs in https://www.spinics.net/lists/linux-rdma/msg110836.html
Will give it a try, thanks for the link.
Thanks,
Guoqing
prev parent reply other threads:[~2022-05-25 4:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-18 4:37 [PATCH] RDMA/rxe: Use kzalloc() to alloc map_set Li Zhijian
2022-05-20 14:45 ` Jason Gunthorpe
2022-05-23 14:02 ` Li, Zhijian
2022-05-24 3:59 ` lizhijian
2022-05-24 10:56 ` Haris Iqbal
2022-05-25 1:31 ` lizhijian
2022-05-25 4:11 ` Guoqing Jiang [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=94a5ea93-b8bb-3a01-9497-e2021f29598a@linux.dev \
--to=guoqing.jiang@linux.dev \
--cc=aleksei.marov@ionos.com \
--cc=haris.iqbal@ionos.com \
--cc=jgg@nvidia.com \
--cc=jinpu.wang@ionos.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lizhijian@fujitsu.com \
--cc=rpearsonhpe@gmail.com \
--cc=zyjzyj2000@gmail.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