From: Shoaib Choudhary <shoaibsic@gmail.com>
To: dev@dpdk.org
Subject: Segmentation Fault in IPsec_MB PMD When Resetting Crypto Device Stats After Upgrade to DPDK 24.11.3
Date: Mon, 27 Oct 2025 22:29:00 +0530 [thread overview]
Message-ID: <CA+Hr-XBQmZWkZ=Q19soD6ugN=nLzAsYEpGkMpfcV3xcNq3_inA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]
*Description:*
After upgrading from DPDK 24.11 to 24.11.3, we are encountering a
segmentation fault in the IPsec_MB PMD (librte_crypto_ipsec_mb.so.25) when
attempting to reset crypto device statistics
using rte_cryptodev_stats_reset(). This issue was not observed in DPDK
24.11.
*Reproduction Context:*
The crash occurs during automated traffic tests that exercise GTP loopback
scenarios on a DPDK-based system. The test suite covers both fragmented and
non-fragmented packets, and uses multiple crypto algorithms (AES, SNOW3G,
ZUC) with Out-of-Place (OOP) processing enabled and disabled. Traffic is
sent through the datapath, and statistics are collected and reset as part
of the test flow. The segmentation fault is consistently triggered when
resetting crypto device stats after such traffic tests.
*Crash Details:*
- Faulting function: rte_cryptodev_stats_reset() (called from
application code)
- Faulting library: librte_crypto_ipsec_mb.so.25
- Fault address: 0x58
- Only occurs in DPDK 24.11.3; not seen in 24.11
*Workarounds Attempted:*
- Added device validation and error handling before stats reset
- Implemented workaround to avoid direct stats reset (using baseline
stats), Crash persists despite these changes
- After implementing logic to skip rte_cryptodev_stats_reset() for
IPsec_MB, SNOW3G, and AESNI_MB PMDs, the original segmentation fault was
avoided. However, we then observed a separate crash during subsequent
crypto device operations (such as session creation or device configuration).
*Request:*
Is this a known regression in DPDK 24.11.3? Are there any recommended fixes
or patches available? Any guidance on further debugging or mitigation would
be appreciated.
Regards,
Shoaib
[-- Attachment #2: Type: text/html, Size: 8809 bytes --]
reply other threads:[~2025-10-29 13:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CA+Hr-XBQmZWkZ=Q19soD6ugN=nLzAsYEpGkMpfcV3xcNq3_inA@mail.gmail.com' \
--to=shoaibsic@gmail.com \
--cc=dev@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).