From: Thomas Monjalon <thomas@monjalon.net>
To: Mingjin Ye <mingjinx.ye@intel.com>
Cc: dev@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com,
Cheng Jiang <honest.jiang@foxmail.com>
Subject: Re: [PATCH v2] app/dma-perf: fix lcores array out of bounds access
Date: Tue, 14 Nov 2023 15:37:49 +0100 [thread overview]
Message-ID: <6270681.mvXUDI8C0e@thomas> (raw)
In-Reply-To: <20231026095313.3053665-1-mingjinx.ye@intel.com>
26/10/2023 11:53, Mingjin Ye:
> The default size of the lcores array in the lcore dma map
> is MAX_WORKER_NB. However, when parsing configuration
> parameters, MAX_LCORE_NB is used as a constraint.
> Since MAX_LCORE_NB is greater than MAX_WORKER_NB, this
> causes array access to go out of bounds when the value
> of the `lcore_dma/lcore` configuration item in the
> parameter file is greater than MAX_WORKER_NB.
>
> This patch fixes the issue by removing the MAX_LCORE_NB
> macro and using MAX_WORKER_NB consistently.
>
> Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test")
>
> Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
Applied, thanks.
prev parent reply other threads:[~2023-11-14 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-20 10:09 [PATCH] app/dma-perf: fix dma mapping access overruns Mingjin Ye
2023-10-26 9:53 ` [PATCH v2] app/dma-perf: fix lcores array out of bounds access Mingjin Ye
2023-11-14 14:37 ` Thomas Monjalon [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=6270681.mvXUDI8C0e@thomas \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=honest.jiang@foxmail.com \
--cc=mingjinx.ye@intel.com \
--cc=qiming.yang@intel.com \
--cc=yidingx.zhou@intel.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.