[PATCH v2] net/af_packet: fix crash in secondary process

Thomas Monjalon thomas at monjalon.net
Fri Sep 12 19:01:58 CEST 2025


12/09/2025 13:35, Kerem Aksu:
> dumpcap crashes when trying to capture from af_packet devices. This is
> caused by allocating interface name with
> strdup (i.e. malloc). Interface name is not accessible from secondary
> process and causes segmentation fault. Use rte_malloc instead of
> strdup to fix the issue.
> 
> Bugzilla ID: 1786
> Fixes: 1b93c2aa81b4 ("net/af_packet: add interface name to internals")
> Cc: stable at dpdk.org
> 
> Reported-by: Kerem Aksu <kerem.aksu at i2i-systems.com>
> Signed-off-by: Kerem Aksu <kerem.aksu at i2i-systems.com>

Great, thank you.






More information about the dev mailing list