patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Khadem Ullah <14pwcse1224@uetpeshawar.edu.pk>
Cc: <dev@dpdk.org>, <anatoly.burakov@intel.com>, <stable@dpdk.org>
Subject: Re: [PATCH] net/ice: fix segfault in secondary process by validating dev_private pointer
Date: Mon, 11 Aug 2025 13:55:56 +0100	[thread overview]
Message-ID: <aJnoXIl_2iNqStfC@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20250721105522.1019515-1-14pwcse1224@uetpeshawar.edu.pk>

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@dpdk.org
> 
> Signed-off-by: Khadem Ullah <14pwcse1224@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

  reply	other threads:[~2025-08-11 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-21 10:55 Khadem Ullah
2025-08-11 12:55 ` Bruce Richardson [this message]
2025-08-11 13:01   ` Khadem Ullah

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=aJnoXIl_2iNqStfC@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=14pwcse1224@uetpeshawar.edu.pk \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --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;
as well as URLs for NNTP newsgroup(s).