DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: fengchengwen <fengchengwen@huawei.com>
To: Artem Novikov <naa@amicon.ru>
Cc: <dev@dpdk.org>, <stable@dpdk.org>, <bruce.richardson@intel.com>
Subject: Re: [PATCH v2] argparse: fix null dereference in corelist parsing
Date: Mon, 16 Nov 2026 19:35:34 +0800	[thread overview]
Message-ID: <5e77e952-e82b-4662-ad37-ecf6cd60800b@huawei.com> (raw)
In-Reply-To: <20261116085852.16580-1-naa@amicon.ru>

Acked-by: Chengwen Feng <fengchengwen@huawei.com>

On 11/16/2026 4:58 PM, Artem Novikov wrote:
> Parsing a corelist without a value dereferences val_set even when no
> default is configured. This also occurs with
> rte_argparse_parse_type(NULL, RTE_ARGPARSE_VALUE_TYPE_CORELIST, &cpus).
> 
> Return -EINVAL when the default is missing. Reject a NULL input string
> or output pointer in rte_argparse_parse_type() before parsing the value.
> Add regression tests for both parsing APIs and copying a configured
> default.
> 
> Fixes: d78103fb9488 ("argparse: support core lists")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Artem Novikov <naa@amicon.ru>


      reply	other threads:[~2026-11-16 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12 15:30 [PATCH] argparse: fix null dereference in corelist parsing Artem Novikov
2026-11-16  1:17 ` fengchengwen
2026-11-16  8:58 ` [PATCH v2] " Artem Novikov
2026-11-16 11:35   ` fengchengwen [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=5e77e952-e82b-4662-ad37-ecf6cd60800b@huawei.com \
    --to=fengchengwen@huawei.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=naa@amicon.ru \
    --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