[PATCH] dma/cnxk: fix crash on secondary process cleanup
Jerin Jacob
jerinjacobk at gmail.com
Mon Jun 8 18:09:00 CEST 2026
On Fri, Jun 5, 2026 at 2:11 PM <pbhagavatula at marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
>
> cnxk_dmadev_probe() ran in secondary processes too, overwriting the
> shared rdpi->pci_dev with a process-local pointer and marking the
> device ready. With buses now cleaned up on shutdown, the primary's
> roc_dpi_dev_fini() dereferences that stale pointer and crashes.
>
> Skip HW init in secondary processes: attach to the shared device data
> and return, leaving rdpi and the device state untouched.
>
> Fixes: 53f6d7328bf4 ("dma/cnxk: create and initialize device on PCI probing")
> Cc: stable at dpdk.org
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
Applied to dpdk-next-net-mrvl/for-main. Thanks
More information about the dev
mailing list