enable ASAN issue when run on a Virtio PCI device

David Marchand david.marchand at redhat.com
Thu Mar 9 15:43:42 CET 2023


On Thu, Mar 9, 2023 at 2:44 PM David Marchand <david.marchand at redhat.com> wrote:
> On Thu, Mar 9, 2023 at 2:05 PM Pei, Andy <andy.pei at intel.com> wrote:
> > I am running testpmd on a virtio PCI device, and encounter this issue when enable ASAN.
> >
> > I got this ERROR,
> >
> > check_vq_phys_addr_ok(): vring address shouldn't be above 16TB!
> > virtio_init_queue(): setup_queue failed
> > eth_virtio_pci_init(): Failed to init virtio device
> > EAL: Releasing PCI mapped resource for 0000:18:00.0
> > EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x7fc9c0000000
> > EAL: Calling pci_unmap_resource for 0000:18:00.0 at 0x7fc197a75000
> > EAL: Requested device 0000:18:00.0 cannot be used
> > EAL: Bus (pci) probe failed.
> > TELEMETRY: No legacy callbacks, legacy socket not created
> > testpmd: No probed ethernet devices
> >
> >
> > How to fix this issue when ASAN is enabled, huge pages are all mapped to very high address,  adding “--base-virtaddr” args does not works.
>
> I am not able to reproduce your issue.
> You'll have to share more details about your setup.

Actually, relooking at the code, I think we can do something on virtio
side, for modern devices and Maxime seemed to agree.

Can you have a try with:
https://patchwork.dpdk.org/project/dpdk/patch/20230309143604.2354288-1-david.marchand@redhat.com/


Thanks.

-- 
David Marchand



More information about the users mailing list