[PATCH 3/3] net/vdev: fix insert vdev core dump

Jiang, YuX yux.jiang at intel.com
Fri Mar 15 06:51:59 CET 2024


> -----Original Message-----
> From: Mingjin Ye <mingjinx.ye at intel.com>
> Sent: Thursday, March 14, 2024 5:37 PM
> To: dev at dpdk.org
> Cc: Ye, MingjinX <mingjinx.ye at intel.com>; stable at dpdk.org
> Subject: [PATCH 3/3] net/vdev: fix insert vdev core dump
>
> Inserting a vdev device when the device arguments are already stored in
> devargs_list, the rte_devargs_insert function replaces the supplied new
> devargs with the found devargs and frees the new devargs. As a result, the use
> of free devargs results in a core dump.
>
> This patch fixes the issue by using valid devargs.
>
> Fixes: f3a1188cee4a ("devargs: make device representation generic")
> Cc: stable at dpdk.org
>
> Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>
> ---
>  drivers/bus/vdev/vdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Tested-by:  Yu Jiang <yux.jiang at intel.com>

Best regards,
Yu Jiang


More information about the stable mailing list