[PATCH 21.11] test/mbuf: fix crash in a forked process

Kevin Traynor ktraynor at redhat.com
Tue Jul 25 11:17:13 CEST 2023


On 25/07/2023 09:53, Ruifeng Wang wrote:
> [ upstream commit b6c419dde10e9f5dec7a02098c48060a7493420c ]
> 
> test/mbuf: fix crash in a forked process
> 
> Access of any memory in the hugepage shared file-backed area will trigger
> an unexpected forked child process segment fault. The root cause is DPDK
> doesn't support fork model [1] (calling rte_eal_init() before fork()).
> Forked child process can't be treated as a secondary process.
> 
> Hence fix it by avoiding fork and doing verification in the main process.
> 
> [1]https://mails.dpdk.org/archives/dev/2018-July/108106.html
> 
> Fixes: af75078fece3 ("first public release")
> 
> Signed-off-by: Jia He<justin.he at arm.com>
> Signed-off-by: Ruifeng Wang<ruifeng.wang at arm.com>
> Acked-by: Anatoly Burakov<anatoly.burakov at intel.com>
> ---

Thanks for the backport. Queued, and will push to 21.11 dpdk.org branch 
in coming days.



More information about the stable mailing list