From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: Bruce Richardson <bruce.richardson@intel.com>, <dev@dpdk.org>
Cc: <stable@dpdk.org>
Subject: Re: [PATCH] net/ice: fix overflow on storing device args
Date: Fri, 25 Sep 2026 11:36:51 +0200 [thread overview]
Message-ID: <eb5d85c9-ef87-457f-8966-8b5b7b742636@intel.com> (raw)
In-Reply-To: <20260914153019.4034539-1-bruce.richardson@intel.com>
On 9/14/2026 5:30 PM, Bruce Richardson wrote:
> Boolean device args to ice driver are sometimes stored as an int and
> sometimes as a uint8_t. The parse bool function stores them as an int,
> leading to overflow when storing a uint8_t value.
>
> Fix all these by standardizing on "bool" type, both for the arg values
> in the structure and inside the parsing function.
>
> Bugzilla ID: 2037
> Fixes: 603beeb970b5 ("net/ice: add safe mode devarg")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> Note: this fix is superceded by the kvargs numeric args patchset [1].
> However, that patchset relies on new kvargs features unlikely to be
> backported, so this standalone fix is useful for backporting or if the
> whole other set doesn't make the 26.11 release.
>
> [1] https://patches.dpdk.org/project/dpdk/list/?series=39247
> ---
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
--
Thanks,
Anatoly
next prev parent reply other threads:[~2026-09-25 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-2037-3@https.bugs.dpdk.org>
2026-09-14 15:30 ` [PATCH] net/ice: fix overflow on storing device args Bruce Richardson
2026-09-25 9:36 ` Burakov, Anatoly [this message]
2026-09-25 13:13 ` Bruce Richardson
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=eb5d85c9-ef87-457f-8966-8b5b7b742636@intel.com \
--to=anatoly.burakov@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--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