[PATCH] net/ice: fix segfault in secondary process by validating dev_private pointer

Bruce Richardson bruce.richardson at intel.com
Mon Aug 11 14:55:56 CEST 2025


On Mon, Jul 21, 2025 at 06:55:22AM -0400, Khadem Ullah wrote:
> In secondary processes, accessing 'dev->data->dev_private' directly can
> cause a segmentation fault if the primary process has exited or the
> shared memory is unavailable.
> 
> This patch adds a check for dev/data/dev_private and uses
> rte_mem_virt2phy to ensure the pointer is still valid.
> 
> Fixes: 690175ee51bf ('net/ice: support getting device information')
> Cc: stable at dpdk.org
> 
> Signed-off-by: Khadem Ullah <14pwcse1224 at uetpeshawar.edu.pk>
> ---
>  drivers/net/intel/ice/ice_ethdev.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
This is not something that drivers should need individual updates for. Once
a general solution (if any) is found, will consider a new patch for ice
driver in that case.

/Bruce


More information about the dev mailing list