From: Leon Romanovsky <leon@kernel.org>
To: Junrui Luo <moonafterrain@outlook.com>
Cc: Chengchang Tang <tangchengchang@huawei.com>,
Junxian Huang <huangjunxian6@hisilicon.com>,
Jason Gunthorpe <jgg@ziepe.ca>, Xi Wang <wangxi11@huawei.com>,
Weihang Li <liweihang@huawei.com>, Wei Xu <xuwei5@hisilicon.com>,
Shengming Shu <shushengming1@huawei.com>,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
Yuhao Jiang <danisjiang@gmail.com>,
stable@vger.kernel.org
Subject: Re: [PATCH] RDMA/hns: fix out-of-bounds write in IRQ array during configuration
Date: Sun, 12 Apr 2026 15:50:05 +0300 [thread overview]
Message-ID: <20260412125005.GB21470@unreal> (raw)
In-Reply-To: <SYBPR01MB7881512F49EA80F0146EEEA1AF5CA@SYBPR01MB7881.ausprd01.prod.outlook.com>
On Sun, Apr 05, 2026 at 04:15:44PM +0800, Junrui Luo wrote:
> hns_roce_hw_v2_get_cfg() writes IRQ vector numbers into hr_dev->irq[]
> using handle->rinfo.num_vectors as the loop bound. num_vectors originates
> from firmware via hclge_query_pf_resource() without validation against
> the array size.
>
> If firmware reports more than 128 MSI-X vectors for RoCE, the loop
> overflows hr_dev->irq[], corrupting adjacent struct members in the
> heap-allocated hns_roce_dev structure.
Is this an actual issue, or just another imagined problem?
Thanks
next prev parent reply other threads:[~2026-04-12 12:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-05 8:15 [PATCH] RDMA/hns: fix out-of-bounds write in IRQ array during configuration Junrui Luo
2026-04-12 12:50 ` Leon Romanovsky [this message]
2026-04-13 7:09 ` Junrui Luo
2026-04-13 16:09 ` Leon Romanovsky
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=20260412125005.GB21470@unreal \
--to=leon@kernel.org \
--cc=danisjiang@gmail.com \
--cc=huangjunxian6@hisilicon.com \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=liweihang@huawei.com \
--cc=moonafterrain@outlook.com \
--cc=shushengming1@huawei.com \
--cc=stable@vger.kernel.org \
--cc=tangchengchang@huawei.com \
--cc=wangxi11@huawei.com \
--cc=xuwei5@hisilicon.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.