enable ASAN issue when run on a Virtio PCI device

Pei, Andy andy.pei at intel.com
Fri Mar 10 07:05:41 CET 2023


HI David,

It works>
Thanks a lot for your very quick response.

> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Thursday, March 9, 2023 10:44 PM
> To: Pei, Andy <andy.pei at intel.com>
> Cc: users at dpdk.org; Burakov, Anatoly <anatoly.burakov at intel.com>; David
> Christensen <drc at linux.vnet.ibm.com>; Volodymyr Fialko
> <vfialko at marvell.com>; Maxime Coquelin <maxime.coquelin at redhat.com>;
> Xia, Chenbo <Chenbo.Xia at intel.com>
> Subject: Re: enable ASAN issue when run on a Virtio PCI device
> 
> 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 at redhat.com/
> 
> 
> Thanks.
> 
> --
> David Marchand



More information about the users mailing list