Re: [dpdk-dev] [PATCH] ethdev: fix invalid length write on dev detach

2017-07-31 Thread Gaƫtan Rivet
On Mon, Jul 31, 2017 at 03:27:29PM +0200, Thomas Monjalon wrote: > 31/07/2017 12:29, Gaetan Rivet: > > The name of a device is copied in a provided buffer within > > rte_eth_dev_detach(). The current sizeof is done on a pointer instead of > > the intended array usually pointed to. > > > > The name

Re: [dpdk-dev] [PATCH] ethdev: fix invalid length write on dev detach

2017-07-31 Thread Thomas Monjalon
31/07/2017 12:29, Gaetan Rivet: > The name of a device is copied in a provided buffer within > rte_eth_dev_detach(). The current sizeof is done on a pointer instead of > the intended array usually pointed to. > > The name field of an rte_device is not assured however to point an > rte_devargs name

[dpdk-dev] [PATCH] ethdev: fix invalid length write on dev detach

2017-07-31 Thread Gaetan Rivet
The name of a device is copied in a provided buffer within rte_eth_dev_detach(). The current sizeof is done on a pointer instead of the intended array usually pointed to. The name field of an rte_device is not assured however to point an rte_devargs name field. The almost correct length to base th