[PATCH] devargs: Fix crash due to global devargs uninitailization from secondary process
Ferruh Yigit
ferruh.yigit at intel.com
Mon Feb 14 18:33:03 CET 2022
On 2/14/2022 5:08 PM, madhuker.mythri at oracle.com wrote:
> From: Madhuker Mythri <madhuker.mythri at oracle.com>
>
> Failsafe pmd started crashing with global devargs syntax as devargs is
> not memset to zero. Access it to in rte_devargs_parse() resulted in a
> crash when called from secondary process.
>
> Bugzilla Id: 933
>
> Signed-off-by: Madhuker Mythri <madhuker.mythri at oracle.com>
This is duplication of Gaetan's patch:
https://patches.dpdk.org/project/dpdk/patch/20220210170131.2199922-1-grive@u256.net/
> ---
> lib/eal/common/eal_common_devargs.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/eal/common/eal_common_devargs.c b/lib/eal/common/eal_common_devargs.c
> index 69004b0a2d..ad60febad9 100644
> --- a/lib/eal/common/eal_common_devargs.c
> +++ b/lib/eal/common/eal_common_devargs.c
> @@ -190,6 +190,7 @@ rte_devargs_parse(struct rte_devargs *da, const char *dev)
>
> if (da == NULL)
> return -EINVAL;
> + memset(da, 0, sizeof(*da));
>
> /* First parse according global device syntax. */
> if (rte_devargs_layers_parse(da, dev) == 0) {
More information about the dev
mailing list