From: Ferruh Yigit <ferruh.yigit@amd.com>
To: longli@linuxonhyperv.com,
Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Cc: dev@dpdk.org, Long Li <longli@microsoft.com>, stable@dpdk.org
Subject: Re: [PATCH] net/mana: prevent values overflow returned from RDMA layer
Date: Mon, 22 Jan 2024 14:04:56 +0000 [thread overview]
Message-ID: <85e8acb2-d09d-45c6-816d-c3ce94506ac0@amd.com> (raw)
In-Reply-To: <1705601137-4235-1-git-send-email-longli@linuxonhyperv.com>
On 1/18/2024 6:05 PM, longli@linuxonhyperv.com wrote:
> From: Long Li <longli@microsoft.com>
>
> The device capabilities reported from RDMA layer are in int. Those values can
> overflow with the data types defined in dev_info_get().
>
> Fix this by doing a upper bound before returning those values.
>
> Fixes: 517ed6e2d590 ("net/mana: add basic driver with build environment")
> Cc: stable@dpdk.org
>
> Signed-off-by: Long Li <longli@microsoft.com>
>
Applied to dpdk-next-net/main, thanks.
'%lu' format specifiers replaced with 'PRIu64' for 'priv->max_mr_size'
while merging.
prev parent reply other threads:[~2024-01-22 14:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 18:05 longli
2024-01-22 14:04 ` Ferruh Yigit [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=85e8acb2-d09d-45c6-816d-c3ce94506ac0@amd.com \
--to=ferruh.yigit@amd.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=dev@dpdk.org \
--cc=longli@linuxonhyperv.com \
--cc=longli@microsoft.com \
--cc=stable@dpdk.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).